Fix health check after unsubscribe

What do these changes do?
Returns None for health check response.

Are there changes in behavior for the user?
Maybe. If someone used to check the health check response after unsubscribing (for some odd reason), then yes. But for most people, no. And I can't imagine why since we usually return None for health checks.

Related issue number

Fixes #1206
Checklist

[X] I think the code is well written
[ ] Unit tests for the changes exist
[X] Documentation reflects the changes
[X] If you provide code modification, please add yourself to CONTRIBUTORS.txt

The format is <Name> <Surname>.
Please keep alphabetical order, the file is sorted by names.

[x] Add a new news fragment into the CHANGES/ folder

name it <issue_id>.<type> (e.g. 588.bugfix)
if you don't have an issue_id change it to the pr id after creating the PR
ensure type is one of the following:

.feature: Signifying a new feature.
.bugfix: Signifying a bug fix.
.doc: Signifying a documentation improvement.
.removal: Signifying a deprecation or removal of public API.
.misc: A ticket has been closed, but it is not of interest to users.

Make sure to use full sentences with correct case and punctuation, for example:
Fix issue with non-ascii contents in doctest text files.

The code LGTM for this specific issue, but it is probably worth adding a comment explaining why you're checking for two possible responses.

not sure what's going on. Will come back later if no one else figures out what's wrong. Branch should be open for anyone to change...


Add right padding on search table cell

Coverage remained the same at 82.133% when pulling 9f25446d054c560413307e9ab8a6d13f26c3c556 on feature/CAB-3585 into d4de2d75e92937db8b80d8dac67851599960ce77 on develop.


Light rays skip the surface of the lens

Dear All,
I found that the rays skip one surface of the bi-convex lens and directly reach the imager, given a specific cone-angle (e.g. 0.1, 0.01) for the light source in the type "ConeOfRays".
The  codes reflecting the bug are enclosed in the attached file. You can trace the ray propagation process to find out what I said.
Does somebody know why it happens and how to get it fixed?
Many thanks in advance.
Bug example.txt

Hi Meidihku,
Thanks for pointing out this bug! I was able to replicate it on my own set-up and will try and get to the root of it in the next couple of weeks.
If you're able to find the bug before that, feel free to submit a pull request and I'll look it over.
-Ryan

Dear rfrazier716,
I am reading your codes and getting into the details of the aforementiond bug.
In pyrayt.py, there is one sentence in the function "_st_propagate(self)" goes as follows,
shape_hits, shape_surfaces = shape.intersect(self._ray_set.rays)
May I know what are the physical meanings of "shape_hits" and "shape_surfaces".
It seems that they have something to do with the " Constructive Solid Geometry", but I can not get their exac physical menings.
Thanks
Yours,
Mei Di

Dear rfrazier716,
I am reading your codes and getting into the details of the aforementiond bug.
In pyrayt.py, there is one sentence in the function "_st_propagate(self)" goes as follows,
shape_hits, shape_surfaces = shape.intersect(self._ray_set.rays)
May I know what the physical meanings of "shape_hits" and "shape_surfaces" are?
It seems that they have something to do with the " Constructive Solid Geometry", but I can not get their exac physical meanings (https://www.fotonixx.com/posts/efficient-csg/).
Currently, I am confused about how you determine the intersection point of a ray and the lens surface, and also how you modify the ray propagation angle according to the Snell's law.
Hope you can shed more light on these two aspects.
Thanks a lot
Yours,
Mei Di

Dear Dear rfrazier716,
Though I did not completely solved the problem, I have got this problem mitigated by the simple modification toward your code.
In the function "binomial_root(a, b, c, disc=None)" of the file "operations.py", I made the following modifactions:
'''original code '''
polyroots = np.where(linear_cases, np.tile(-c / (b + (b == 0)), (2, 1)), polyroots)
'''modified code by Mei Di'''
polyroots = np.where(linear_cases, np.tile(-c / (b + np.isclose(b, 0, atol=1e-06)), (2, 1)), polyroots)
# correct for cases that have neither a or b terms
# if there's not a or b and the discriminant is positive, return +/-inf, otherwise just + inf
# this is for cylinder intersections cases
'''original code '''
## c_terms_only = np.logical_and(linear_cases, np.isclose(b, 0))  ###numpy.isclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False)
'''modified code by Mei Di'''
c_terms_only = np.logical_and(linear_cases, np.isclose(b, 0, atol=1e-05))  ###numpy.isclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False)
Then the situation is much better when you set a larger threshold for the judgement whehter b is equal to 0.
Even though, a radical solution is still needed. Please try to work on this in your convinience.

operations_modified_python_.txt
Yours,
Mei Di

Dear rfrazier716,
Though I did not completely solve the problem, I have got this problem mitigated by the simple modification toward your codes.
In the function "binomial_root(a, b, c, disc=None)" of the file "operations.py", I made the following modifactions:
'''original code '''
polyroots = np.where(linear_cases, np.tile(-c / (b + (b == 0)), (2, 1)), polyroots)
'''modified code by Mei Di'''
polyroots = np.where(linear_cases, np.tile(-c / (b + np.isclose(b, 0, atol=1e-06)), (2, 1)), polyroots)
correct for cases that have neither a or b terms
if there's not a or b and the discriminant is positive, return +/-inf, otherwise just + inf
this is for cylinder intersections cases
'''original code '''
c_terms_only = np.logical_and(linear_cases, np.isclose(b, 0)) ###numpy.isclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False)
'''modified code by Mei Di'''
c_terms_only = np.logical_and(linear_cases, np.isclose(b, 0, atol=1e-05)) ###numpy.isclose(a, b, rtol=1e-05, atol=1e-08, equal_nan=False)
Then the situation is much better when you set a larger threshold for the judgement whether b is equal to 0.
Even so, a radical solution is still needed. Please try to work on this at your convinience.
Yours,
Mei Di
operations_modified_python_.txt

Dear rfrazier716,,
Please check the attached file to see the further modification. It seems that the problem is solved, but I do not know whether the result is correct.
Have a nice day.
Yours,
Mei Di

operations_modified.txt

Dear rfrazier716,,
Please check the attached file to see the further modification. It seems that the problem is solved, but I do not know whether the result is correct.
Have a nice day.
Yours,
Mei Di

operations_modified.txt


Javascript Error - Material-select with Angular in Dependent Dropdown

I am getting the following error:
Uncaught TypeError: Cannot read property 'top' of undefined

$.fn.scrollTo @ dropdown.js?body=1:6

$.fn.material_select.$.each.activateOption @ forms.js?body=1:325

(anonymous function) @ forms.js?body=1:314

jQuery.event.dispatch @ jquery.js?body=1:4436

jQuery.event.add.elemData.handle @ jquery.js?body=1:4122

States is javascript object
window.States =
   "New York":
     ["Buffalo","Rochester"]
   "California":
     ["San Jose", "Los Angeles"]

Slim syntax of my applications code
 .input-field.col.s12.l6
   select#state material-select="" ng-model="centre.state" valueattr="value" ng-options="state for (state,city) in states"
      option value="" disabled="" selected="" Select State
 .input-field.col.s12.l6
    select#cities material-select=""  ng-model="centre.city" valueattr="value" ng-options="city for city in states[centre.state]"
       option value="" disabled="" selected="" Select City

This feature is a dependent dropdown which is not working with material-select i.e. Once State is selected then cities are to populated, It is working perfectly fine with Browser-default but not with Material select
Because of this i am unable to use material-select and have to fallback to browser-default which is giving a bad UI look throughout my application

A jsfiddle or a link would be nice.

This is a duplicate of #29 and properly related to #47.
The TypeError that you had is caused by Materialize trying to focus an <li> tag that no longer exists.
I'm looking a bit at it now, but continue discussion of this issue on #29.

@webbiesdk Thanks :+1:


Update v0.19.8 changelog:

Issue #, if available:
Description of changes:
Missed some version updates.
Testing (if applicable):
Documentation added/planned (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/approve

/lgtm


add desktop_organizer

I would like to add a new script that when run, organizes your desktop. It would be an interesting addition to this repository.

This project gets into : https://github.com/prathimacode-hub/Awesome_Python_Scripts. This repository is not open source. Over there create an issue using an issue template along with relevant description on the project with information asked here : https://github.com/prathimacode-hub/Awesome_Python_Scripts/blob/main/.github/issue_template/feature_request.md
Looking forward to assign you an issue. Hope the process is clear until now. @ovirandunu


JavaScript Standard Style

Enforce a consistent style by adding one command (standard) to the "npm test" script.
See: https://github.com/feross/standard
What do you think?

Eh, sure. I honestly prefer tabs, semicolons, this and double-quoted strings (I need ' more often than " inside a string), but I guess the other contributers prefer the style you propose (hence how it got inconsistent), so I guess I might as well give in. Looking at the diff, there's currently quite a few inconsistencies in the styling, so this isn't altogether a bad thing.

Yeah, I don't feel strongly about any particular style, just that consistency is preferable when possible.
I think most people who are using this module are like: "meh, don't agree with all the rules, but at least there's no dot config files to manage, it's easy to add, then the code will always be consistent"


Pypi package is broken

The package seems broken :
pip install nnpy
...
Installed /tmp/pip-build-d7cwxvvy/nnpy/.eggs/pycparser-2.14-py3.4.egg
error in nnpy setup command: 'generate.py' does not name an existing file
...
From a freshly downloaded tarball :
tar -tzf /home/elbarto/nnpy-0.9.tar.gz
nnpy-0.9/
nnpy-0.9/nnpy/
nnpy-0.9/nnpy/constants.py
nnpy-0.9/nnpy/socket.py
nnpy-0.9/nnpy/init.py
nnpy-0.9/PKG-INFO
nnpy-0.9/setup.cfg
nnpy-0.9/README.rst
nnpy-0.9/setup.py
nnpy-0.9/nnpy.egg-info/
nnpy-0.9/nnpy.egg-info/PKG-INFO
nnpy-0.9/nnpy.egg-info/dependency_links.txt
nnpy-0.9/nnpy.egg-info/SOURCES.txt
nnpy-0.9/nnpy.egg-info/top_level.txt
nnpy-0.9/nnpy.egg-info/requires.txt
generate.py doesn't seems to exists.

Thanks for the report, it should be better now!


ctapipe-merge does not treat metadata

Describe the bug
After merging, contact and site info are empty defaults. We should take them from the input files if no other information is provided via the config system.
To Reproduce
Merge files that do have contact info / subarray info defined and look at ctapipe-fileinfo merged_file.h5

@maxnoe did #2179 solve this issue?

Yes, indeed, thanks!


Adapter cannot be installed with the latest version of ioBroker

Hi,
I could manually add the adapter to my ioBroker instance. But I cannot see / add my Smartmi Standing Fan 2S that is connected to the same network via WiFi. I tried to manually add it with its IP address but it didn't work. Also I'm not sure how retrive the miIO ID. Any idea how to get it working?
Thanks for your support
Florian

I was able to add the Smartmi Fan 2S manually and now I can cantrol it with ioBroker.

I was able to add the Smartmi Fan 2S manually and now I can cantrol it with ioBroker.


Add assocWith and assocPathWith functions

References #1998
Similar to assoc and assocPath. These functions are used to apply a
function to a value at a given property/path. If there is no previous
value, then the function will be given undefined as its argument.

Need to revise the type signatures


No application encryption key has been specified.

Describe the Bug
I'm trying to setup bookstack in docker, but can't get further than the error "" after loading the webinterface. It's running on top of a Raspberry Pi 4b. This is my docker-compose file:

---
version: "2"
services:
  bookstack:
    image: lscr.io/linuxserver/bookstack
    container_name: bookstack
    security_opt:
      - seccomp:unconfined
    environment:
      - PUID=1000
      - PGID=1000
      - APP_URL=http://<IP_ADDRESS>:6875
      - DB_HOST=bookstack_db
      - DB_USER=bookstack
      - DB_PASS=xxx
      - DB_DATABASE=bookstackapp
      - APP_DEBUG=true
    volumes:
      - /home/pi/bookstack:/config
    ports:
      - 6875:80
    restart: unless-stopped
    depends_on:
      - bookstack_db
  bookstack_db:
    image: lscr.io/linuxserver/mariadb
    container_name: bookstack_db
    security_opt:
      - seccomp:unconfined
    environment:
      - PUID=1000
      - PGID=1000
      - MYSQL_ROOT_PASSWORD=xxx
      - TZ=Europe/Berlin
      - MYSQL_DATABASE=bookstackapp
      - MYSQL_USER=bookstack
      - MYSQL_PASSWORD=xxx
    volumes:
      - /home/pi/bookstack:/config
    restart: unless-stopped

After opening the webinterface, I'm welcomed with:
Error
Illuminate\Encryption\MissingAppKeyException
No application encryption key has been specified.
After some googling, I found out that it has something to do with artisan. But when I connect into the container over bash and run 'php artisan', it tells me 'Could not open input file: artisan'.
Does anyone knows a fix for this?
Steps to Reproduce

Load docker-compose on pi4
Go to webinterface

Expected Behaviour
Error
Illuminate\Encryption\MissingAppKeyException
No application encryption key has been specified.
Screenshots or Additional Context
No response
Browser Details
No response
Exact BookStack Version
v22.07.1
PHP Version
7.4.26
Hosting Environment
Docker on pi4b

Hi @dd-gamer,
The app key should be auto-generated during start-up when using the linuxserver container image, so the lack of this may indicate an issue (Perhaps that mentioned below). You can re-generate this key yourself using the command php artisan key:generate from within the /var/www/html directory within container.
Within your provided docker-compose file I noticed you are mapping the volumes for both containers to the same host directory. I'd heavily advise against this, as it might be causing you issues or cause future issues. Map these volumes to two different host directories.

That worked, awesome! Is there a way to include this in the docker compose, so I don't need to redo this step if I made a change to the compose file?

Awesome, Will therefore close this off.
The key should be persistent. Somewhere within your BookStack mounted volume folder you should find a .env file, which will contain this key value. As long as that exists and is mounted to your container, you should not need to re-run the command.


Patch 1

As discussed, seems to solve a strange dependency issue.

Yeah, it's weird. This dependency should be automatically be pulled in by Groovy, but I have had situations where I needed this too.


GAE Standard Implementation

In order to run this package in GAE Standard as a stand alone use only standard and supported python libs is essential. The requests lib was substituted by urllib, urllib2 and json. These modifications were tested and are working fine in this website. Some observations were added in the readme file

Thanks for your pull request, I will update this version and the version in the Pypi with your updates tonight.

I'll get your update but I'll make some modifications, because removing the requests breaks the compatibility between Python versions.


October 1st edit broke me

The latest version, OCT 1st, is coming up with a LUA error and a blank window on startup, and the command /gsse does nothing.  I tried deleting everything and re-loading several times is GS saving stuff somewhere else besides the plug-in directory?

Hi Brad,
I;ve just pushed an update to Curse.  If this happens, I really need a copy of the error.  WIthout it I'm blind trying to solve the problem as I just don't have any insight into what is happening.


Elixir vs mix oddity

Why does the elixir helper return a string, but the mix helper returns HtmlString?

Looks like it has been like that since the beginning: https://github.com/laravel/framework/commit/6ea4997fcf7cf0ae4c18bce9418817ff00e4727f.

Let's keep these discussions on slack etc and not on the issue tracker


deserializing arrays should be part of the library

This code should not be necessary:
template <typename T, std::size_t N>
struct adl_serializer<std::array<T, N>>
{
  static auto from_json(json const& j)
  {
    if (j.is_array() && (N == j.size()))
    {
      std::array<T, N> r;

      std::copy(std::cbegin(j), std::cend(j), std::begin(r));

      return r;
    }
    else
    {
      return std::array<T, N>{};
    }
  }

  static void to_json(json& j, std::array<T, N> const& a)
  {
    std::copy(std::cbegin(a), std::cend(a),
      std::back_inserter(j = json::array()));
  }
};

I consider this an oversight that needs to be fixed. The same applies to standard arrays (i.e. T[N]).

I may misunderstand the issue, but this works without the serializer you propose:
json j = {1,2,3};
std::array<int, 3> a = j;
json k = a;

I may misunderstand the issue, but this works without the serializer you propose:
json j = {1,2,3};
std::array<int, 3> a = j;
json k = a;

The issue was my idiom:
auto const a(j.get<std::array<int, 3>());
So, I'll close this issue, but it's a good idea, you're aware of the idiom :)

The issue was my idiom:
auto const a(j.get<std::array<int, 3>());
So, I'll close this issue, but it's a good idea, you're aware of the idiom :)

Hmm...
json j = {1,2,3};
auto const a(j.get<std::array<int, 3>>());
json k = a;

also works out of the box. Am I overlooking anything?

Hmm...
json j = {1,2,3};
auto const a(j.get<std::array<int, 3>>());
json k = a;

also works out of the box. Am I overlooking anything?

Could be I had an outdated version of your library. Just this morning I was getting errors, but didn't save them :(

Could be I had an outdated version of your library. Just this morning I was getting errors, but didn't save them :(


Added info to Cloudstor when using Docker Cluster

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Deploy preview for docsdocker ready!
Built with commit 9edb9a3bbadf68076f14b4f957b4f5b6a1829d27
https://deploy-preview-9553--docsdocker.netlify.com


CPOL-44 Adds filtering to Policy

Shouldn't there some update to the OpenAPI for getPolicies()?
Also can you add the filter options to the readme please?

Ah, I think so, the new request params.


Updates to arrow annotation.

This PR updates the annotation tool to use a better callback system rather than the 'prompt' it used before.
Changes:

Removed prompt in favour of dialog callback.
Added drawHandles and arrowFirst options to allow customization
Switched from setToPixelCoordinateSystem to pixelToCanvas for placing tool
Switched to using tool configuration to manage callback and other options

Live demo:
https://rawgit.com/swederik/cornerstoneTools/bf/annotation/examples/annotation/index.html

Seems to work fine, merging this.


Fix FROM_ISO8601_TIMESTAMP example

Issue #, if available:
Description of changes:
FROM_ISO8601_TIMESTAMP does not accept 2020-07-01 01:23:45 (other examples in the file are valid).
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Make sense. Merging. Thanks


localization with Blazor Hybrid

Any chance to add some notes about localization with Blazor Hybrid?

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

ID: e66171ce-7dca-bf91-36be-f02e38c00678
Version Independent ID: e66171ce-7dca-bf91-36be-f02e38c00678
Content: Build a .NET MAUI Blazor app
Content Source: aspnetcore/blazor/hybrid/tutorials/maui.md
Product: aspnet-core
Technology: aspnetcore-tutorials
GitHub Login: @guardrex
Microsoft Alias: riande

Hello @ErikApption ... This is a duplicate of https://github.com/dotnet/AspNetCore.Docs/issues/25679.


Ensure diagnosis values are IRIs

I can enter any string in the annotator as a diagnosis value. But we really only want to get IRIs that point to controlled terms. So we should make sure that in the json output, the string is of type URL.

Related, we should take a look at and follow the namespaces in identifiers.org. For example for SNOMED-CT: https://registry.identifiers.org/registry/snomedct

There are two sides to this:

We need to update the annotator to generate valid neurobagel json data -> needs a separate issue
The neurobagel model has to be updated to require an IRI for diagnoses and the bagelbids merge tool has to handle that.

The second point is now addressed.

The first point has  PR: https://github.com/neurobagel/annotation_tool/pull/191

There is a follow up point here about making sure that the annotation tool validates the value I enter for diagnosis.


sudo on remote host [feature]

I want to deploy to hosts where I don't have ssh access to the root user, but I have passwordless sudo.
I have implemented a hard-coded version here:
https://github.com/nyantec/krops/commit/b4d8f75d6a805796a5a9cbc2a43326682ca63371

I think the main question is how to make this configurable. I'm not sure if we can sanely configure it via the target string, i.e. somewhere within "user@host:port/path", but we certainly could accept pre-parsed target arguments in writeDeploy & co.. Then sudo could be enabled like this:
pkgs.krops.writeDeploy "deploy" {
  source = /* ... */;
  target = lib.mkTarget "user@host/path" // {
    sudo = true;
  };
}


Union type resolution error

// @flow

export type Location = { city: string } | { country: [string, string] };

const b: Location = { country: ["Sweden", "Malmo"] };

if(b.country) {
  const pair = b.country;
  const [_1, _2] = pair;
}

Emits two errors:
9:   const [_1, _2] = pair;
            ^ element 0. Computed property/element cannot be accessed on
9:   const [_1, _2] = pair;
                      ^ property `country` of unknown type
9:   const [_1, _2] = pair;
                ^ element 1. Computed property/element cannot be accessed on
9:   const [_1, _2] = pair;
                      ^ property `country` of unknown type

The union type has distinct set of keys used for each variation. How can one get around that without going through any?

Corrected code
Docs

@apsavin ah thanks a lot! I didn't realize using exact {| .. |} would refine the union! 🎉


Publish alongside > 5 biological discoveries made by partners using the census

including an LLM trained on the census

Context: Demonstrate the value of the CELLxGENE data corpus and its features

Completed in 2023.


Use "fiber" for user space threads

This patch replaced occurrences of "fibres" with "fiber", which is
commonly used for lightweight thread of execution in computer science.

Also you should rename user/include/fibre.h and user/fibre.c:
$ find -name "*fibre*"
./demos/fibres
./demos/fibres/fibres.c
./include/user/fibre.h
./src/user/fibre.c

Also you should rename user/include/fibre.h and user/fibre.c:
$ find -name "*fibre*"
./demos/fibres
./demos/fibres/fibres.c
./include/user/fibre.h
./src/user/fibre.c


Incorrect reading frames from Raspberry

I have a problem with the library. After installing the latest version of Raspbian on Raspberry (I did tests about a year / two years ago and did not notice this problem), from time to time the library receives an incorrect frame. I have altbeacon devices that broadcast frames. Every once in a while (e.g. once every half hour, hour) I get the wrong frame and even the wrong RSSI value (although this is not always the case, though it usually occurs together). I use event: discover and receive data:
peripheral.advertisement.manufacturerData.toString ('hex')
and rssi:
peripheral.rssi
Sometimes rssi is positive (e.g. 30, and it should be around -70, -60). There is a wrong frame with rssi, e.g. my device gives a fixed value:
5900beacdba5190470d94f9294f004c02145cc29c908182ac3f4
And once in a while he receives:
5900beacdba5190470d94f9294f004c02145cc29c908c300f4a3
Where do I know that the device did not give a 100% other value. What could the problem be?

I have more logs, this time the whole peripheral object (here you can see that RSSI is wrong, the value in plus and data in manufacturerData is less:
{"id":"c0730d2f3666","address":"c0:73:0d:2f:36:66","addressType":"random","connectable":false,"advertisement":{"manufacturerData":{"type":"Buffer","data":[89,0,190,172,219,165,25,4,112,217,79,146,148,240,4,192,33,69,204,35,224,178,203,62,195,192]},"serviceData":[],"serviceUuids":[],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"rssi":-60,"state":"disconnected"}
Here is the correct reading:
{"id":"c0730d2f3666","address":"c0:73:0d:2f:36:66","addressType":"random","connectable":false,"advertisement":{"manufacturerData":{"type":"Buffer","data":[89,0,190,172,219,165,25,4,112,217,79,146,148,240,4,192,33,69,204,35,224,178,203,62,4,0]},"serviceData":[],"serviceUuids":[],"solicitationServiceUuids":[],"serviceSolicitationUuids":[]},"rssi":62,"state":"disconnected"}
Of course, I could verify the correctness of RSSI, but I know that it will do about 90% of cases, but sometimes RSSI is ok and the reading is incorrect.

to be compared with:
https://github.com/noble/noble/issues/923


[zh] Update admission-controllers.md

related PR：
https://github.com/kubernetes/website/pull/30741

Please synchronize the Chinese version of the document after the English version of the document is merged.
/hold

Please synchronize the Chinese version of the document after the English version of the document is merged.

Done

Thank you for proposing this fix. However, we will not merge partial fixes. To find out what are the upstream changes to be synced, do this on the main branch:
./scripts/lsync.sh content/zh/docs/reference/access-authn-authz/admission-controllers.md

diff --git a/content/en/docs/reference/access-authn-authz/admission-controllers.md b/content/en/docs/reference/access-authn-authz/admission-controllers.md
index 324de2e0d..6f8bf5b8b 100644
--- a/content/en/docs/reference/access-authn-authz/admission-controllers.md
+++ b/content/en/docs/reference/access-authn-authz/admission-controllers.md
@@ -30,9 +30,9 @@ mutating and validating (respectively)
 which are configured in the API.

 Admission controllers may be "validating", "mutating", or both. Mutating
-controllers may modify the objects they admit; validating controllers may not.
+controllers may modify related objects to the requests they admit; validating controllers may not.

-Admission controllers limit requests to create, delete, modify or connect to (proxy). They do not support read requests.
+Admission controllers limit requests to create, delete, modify objects or connect to proxy. They do not limit requests to read objects.

 The admission control process proceeds in two phases. In the first phase,
 mutating admission controllers are run. In the second phase, validating
@@ -583,7 +583,8 @@ subresource of the referenced *owner* can change it.
 This admission controller implements additional validations for checking incoming `PersistentVolumeClaim` resize requests.

 {{< note >}}
-Support for volume resizing is available as an alpha feature. Admins must set the feature gate `ExpandPersistentVolumes`
+Support for volume resizing is available as a beta feature. As a cluster administrator,
+you must ensure that the feature gate `ExpandPersistentVolumes` is set
 to `true` to enable resizing.
 {{< /note >}}

@@ -696,8 +697,22 @@ PodNodeSelector allows forcing pods to run on specifically labeled nodes. Also s
 admission plugin, which allows preventing pods from running on specifically tainted nodes.
 {{< /note >}}

+### PodSecurity {#podsecurity}
+
+{{< feature-state for_k8s_version="v1.23" state="beta" >}}
+
+This is the replacement for the deprecated [PodSecurityPolicy](#podsecuritypolicy) admission controller
+defined in the next section. This admission controller acts on creation and modification of the pod and
+determines if it should be admitted based on the requested security context and the
+[Pod Security Standards](/docs/concepts/security/pod-security-standards/).
+
+See the [Pod Security Admission documentation](/docs/concepts/security/pod-security-admission/)
+for more information.
+
 ### PodSecurityPolicy {#podsecuritypolicy}

+{{< feature-state for_k8s_version="v1.21" state="deprecated" >}}
+
 This admission controller acts on creation and modification of the pod and determines if it should be admitted
 based on the requested security context and the available Pod Security Policies.

@mengjiao-liu
I don't know what to do.
Can't understand the guide.
I don't get the idea [英文原文的保留].

@mengjiao-liu
I don't know what to do. Can't understand the guide.
I don't get the idea [英文原文的保留].

You need to update what you want to update at the same time, and the English and Chinese versions are out of sync, and then make them the content your PR needs to submit.

Now that the English version of the content has been merged into the mian branch, you only need to sync the English version page to the Chinese page.
Otherwise, treating this PR as an incomplete PR will destroy our tracking of upstream changes.

Suggestions
Remove English contents from the zh docs.
英文原文的保留
contraries to the following principles:

Single Source of Truth
One thing at a time

In this case, I have to sync the corresponding English contents which are not this PR's concern.
I can't 100% believe the page is synced so I have to check the  English contents anyway.
So what's the point of syncretizing English content?

为便于译文审查和变更追踪

cons might outweigh the pros.

I close this PR cause can't follow the guideline for the zh contents.


Created contract must has at least one allocations or inflation seal

create_rgb20() allows an issued_supply of 0 but in my opinion that should be treated as invalid and return an error, e.g. InvalidIssuanceSupply

It is valid under RGB20 schema to issue 0 assets in genesis. Why API shouldn't allow things which are allowed by the schema?
The rational for 0-supply issue is to allow issuers postponing the real issue from claiming asset name and creating asset it. The asset can be issued later via secondary issuance.
I propose the following: add to RGB20 library a standardness rule that either there should be non-zero supply in genesis - or secondary issuance allowed; otherwise error.

I was not considering secondary issuance, it makes perfect sense now
I agree that the actual issue can be framed as having either a non-zero supply in genesis or secondary issuance allowed

Not relevant with the move to interfaces in https://github.com/RGB-WG/rgb-wallet/ v0.10


more useful errors on big failures in metab_bayes

metab_bayes shouldn't try to make predictions and should tell the user more about what went wrong if the MCMC step fails badly, e.g., if JAGS is missing

we now have this:
> dat <- data_metab(num_days='3', res='15', day_start=4, day_end=28, attach.units=TRUE)
> bayes_specs <- specs(bayes_name, burnin_steps=100, saved_steps=200, GPP_daily_mu=3, GPP_daily_sigma=2)

> bayes_specs$split_dates=FALSE
> bayes_fit <- metab(bayes_specs, data=dat)
Warning message:
In metab_fun(specs = specs, data = data, data_daily = data_daily,  :
  Modeling failed:
JAGS not found. Install and/or seek help from sourceforge.net/projects/mcmc-jags

> bayes_specs$split_dates=TRUE
> bayes_fit <- metab(bayes_specs, data=dat)
Warning message:
In metab_fun(specs = specs, data = data, data_daily = data_daily,  :
  Modeling failed:
JAGS not found. Install and/or seek help from sourceforge.net/projects/mcmc-jags


fs.exists(hub_model_id, refresh=True) does not work correctly after deleting a repository

Describe the bug
The following code outputs "True" twice, even though the repo is deleted. See this  internal thread for details.
Reproduction
from huggingface_hub import HfApi, HfFileSystem
import time

api = HfApi()
hfs = HfFileSystem()
hub_model_id = "MoritzLaurer/test-repo"

api.create_repo(hub_model_id, repo_type='model')
print(hfs.exists(hub_model_id, refresh=True))
time.sleep(5)
api.delete_repo(repo_id=hub_model_id, repo_type="model")
time.sleep(5)
print(hfs.exists(hub_model_id, refresh=True))
# output True, True

Logs
No response
System info
huggingfac_hub==0.25.0

In case someone finds this issue later: the current recommended approach is using api.repo_exists instead of hfs.exists. HfApi is generally more used and better maintained than HfFileSystem so we recommend checking the docs for HfApi first.
This works correctly:
from huggingface_hub import HfApi, HfFileSystem
import time

api = HfApi()
hfs = HfFileSystem()
hub_model_id = "MoritzLaurer/test-repo"

api.create_repo(hub_model_id, repo_type='model')
print(api.repo_exists(repo_id=hub_model_id))
time.sleep(5)
api.delete_repo(repo_id=hub_model_id, repo_type="model")
time.sleep(5)
print(api.repo_exists(repo_id=hub_model_id))

Thanks for reporting @MoritzLaurer. This is indeed a bug in HfFileSystem implementation (not correctly refreshing the cache in this case).
@hanouticelina would you like to have a look when you have some time? (not urgent). It'll require to dive a bit in the fsspec internals.


page 135 "Posted Sales Cr. Memo Subform" - OnAfterSetDimensionsVisibility - Event Request

page 135 "Posted Sales Cr. Memo Subform"
{
AutoSplitKey = true;
Caption = 'Lines';
Editable = false;
LinksAllowed = false;
PageType = ListPart;
SourceTable = "Sales Cr.Memo Line";
layout
{
    area(content)
    {
        repeater(Control1)
        {
            ShowCaption = false;
            field(Type; Type)
            {
                ApplicationArea = Advanced;
                ToolTip = 'Specifies the line type.';
            }
            field(FilteredTypeField; FormatType)
            {
                ApplicationArea = Basic, Suite;
                Caption = 'Type';
                ToolTip = 'Specifies the type of transaction that was posted with the line.';
                Visible = IsFoundation;
            }
            field("No."; "No.")
            {
                ApplicationArea = All;
                ToolTip = 'Specifies the number of the involved entry or record, according to the specified number series.';
            }

#if not CLEAN17
field("Cross-Reference No."; "Cross-Reference No.")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the cross-referenced item number. If you enter a cross reference between yours and your vendor''s or customer''s item number, then this number will override the standard item number when you enter the cross-reference number on a sales or purchase document.';
ObsoleteReason = 'Cross-Reference replaced by Item Reference feature.';
ObsoleteState = Pending;
ObsoleteTag = '17.0';
}
#endif
field("Item Reference No."; "Item Reference No.")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the referenced item number.';
Visible = ItemReferenceVisible;
}
field("IC Partner Code"; "IC Partner Code")
{
ApplicationArea = Intercompany;
ToolTip = 'Specifies the code of the intercompany partner that the transaction is related to if the entry was created from an intercompany transaction.';
Visible = false;
}
field("Variant Code"; "Variant Code")
{
ApplicationArea = Planning;
ToolTip = 'Specifies the variant of the item on the line.';
Visible = false;
}
field(Description; Description)
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the name of the item or general ledger account, or some descriptive text.';
}
field("Return Reason Code"; "Return Reason Code")
{
ApplicationArea = Suite;
ToolTip = 'Specifies the code explaining why the item was returned.';
}
field("Package Tracking No."; "Package Tracking No.")
{
ToolTip = 'Specifies the Package Tracking No. field on the sales line.';
Visible = false;
}
field(Quantity; Quantity)
{
ApplicationArea = Basic, Suite;
BlankZero = true;
ToolTip = 'Specifies the number of units of the item specified on the line.';
}
field("Unit of Measure Code"; "Unit of Measure Code")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies how each unit of the item or resource is measured, such as in pieces or hours. By default, the value in the Base Unit of Measure field on the item or resource card is inserted.';
}
field("Unit of Measure"; "Unit of Measure")
{
ApplicationArea = Suite;
ToolTip = 'Specifies the name of the item or resource''s unit of measure, such as piece or hour.';
Visible = false;
}
field("Unit Cost (LCY)"; "Unit Cost (LCY)")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the cost, in LCY, of one unit of the item or resource on the line.';
}
field("Unit Price"; "Unit Price")
{
ApplicationArea = Basic, Suite;
BlankZero = true;
ToolTip = 'Specifies the price of one unit of the item or resource. You can enter a price manually or have it entered according to the Price/Profit Calculation field on the related card.';
}
field("Tax Liable"; "Tax Liable")
{
ApplicationArea = SalesTax;
ToolTip = 'Specifies if the customer or vendor is liable for sales tax.';
Visible = false;
}
field("Tax Area Code"; "Tax Area Code")
{
ApplicationArea = SalesTax;
ToolTip = 'Specifies the tax area that is used to calculate and post sales tax.';
}
field("Tax Group Code"; "Tax Group Code")
{
ApplicationArea = SalesTax;
ToolTip = 'Specifies the tax group that is used to calculate and post sales tax.';
}
field("Line Amount"; "Line Amount")
{
ApplicationArea = Basic, Suite;
BlankZero = true;
ToolTip = 'Specifies the net amount, excluding any invoice discount amount, that must be paid for products on the line.';
}
field("Amount Including VAT"; "Amount Including VAT")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the sum of the amounts in the Amount Including VAT fields on the associated sales lines.';
}
field("Line Discount %"; "Line Discount %")
{
ApplicationArea = Basic, Suite;
BlankZero = true;
ToolTip = 'Specifies the discount percentage that is granted for the item on the line.';
}
field("Line Discount Amount"; "Line Discount Amount")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the discount amount that is granted for the item on the line.';
Visible = false;
}
field("Allow Invoice Disc."; "Allow Invoice Disc.")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies whether the credit memo line could have included a possible invoice discount calculation.';
Visible = false;
}
field("Job No."; "Job No.")
{
ApplicationArea = Jobs;
ToolTip = 'Specifies the number of the related job.';
Visible = false;
}
field("Job Task No."; "Job Task No.")
{
ApplicationArea = Jobs;
ToolTip = 'Specifies the number of the related job task.';
Visible = false;
}
field("Appl.-from Item Entry"; "Appl.-from Item Entry")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the number of the item ledger entry that the document or journal line is applied from.';
Visible = false;
}
field("Appl.-to Item Entry"; "Appl.-to Item Entry")
{
ApplicationArea = Basic, Suite;
ToolTip = 'Specifies the number of the item ledger entry that the document or journal line is applied to.';
Visible = false;
}
field("Deferral Code"; "Deferral Code")
{
ApplicationArea = Suite;
ToolTip = 'Specifies the deferral template that governs how revenue earned with this sales document is deferred to the different accounting periods when the good or service was delivered.';
}
field("Shortcut Dimension 1 Code"; "Shortcut Dimension 1 Code")
{
ApplicationArea = Dimensions;
ToolTip = 'Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window.';
Visible = DimVisible1;
}
field("Shortcut Dimension 2 Code"; "Shortcut Dimension 2 Code")
{
ApplicationArea = Dimensions;
ToolTip = 'Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window.';
Visible = DimVisible2;
}
field("ShortcutDimCode[3]"; ShortcutDimCode[3])
{
ApplicationArea = Dimensions;
CaptionClass = '1,2,3';
TableRelation = "Dimension Value".Code WHERE("Global Dimension No." = CONST(3),
"Dimension Value Type" = CONST(Standard),
Blocked = CONST(false));
Visible = DimVisible3;
}
field("ShortcutDimCode[4]"; ShortcutDimCode[4])
{
ApplicationArea = Dimensions;
CaptionClass = '1,2,4';
TableRelation = "Dimension Value".Code WHERE("Global Dimension No." = CONST(4),
"Dimension Value Type" = CONST(Standard),
Blocked = CONST(false));
Visible = DimVisible4;
}
field("ShortcutDimCode[5]"; ShortcutDimCode[5])
{
ApplicationArea = Dimensions;
CaptionClass = '1,2,5';
TableRelation = "Dimension Value".Code WHERE("Global Dimension No." = CONST(5),
"Dimension Value Type" = CONST(Standard),
Blocked = CONST(false));
Visible = DimVisible5;
}
field("ShortcutDimCode[6]"; ShortcutDimCode[6])
{
ApplicationArea = Dimensions;
CaptionClass = '1,2,6';
TableRelation = "Dimension Value".Code WHERE("Global Dimension No." = CONST(6),
"Dimension Value Type" = CONST(Standard),
Blocked = CONST(false));
Visible = DimVisible6;
}
field("ShortcutDimCode[7]"; ShortcutDimCode[7])
{
ApplicationArea = Dimensions;
CaptionClass = '1,2,7';
TableRelation = "Dimension Value".Code WHERE("Global Dimension No." = CONST(7),
"Dimension Value Type" = CONST(Standard),
Blocked = CONST(false));
Visible = DimVisible7;
}
field("ShortcutDimCode[8]"; ShortcutDimCode[8])
{
ApplicationArea = Dimensions;
CaptionClass = '1,2,8';
TableRelation = "Dimension Value".Code WHERE("Global Dimension No." = CONST(8),
"Dimension Value Type" = CONST(Standard),
Blocked = CONST(false));
Visible = DimVisible8;
}
}
group(Control29)
{
ShowCaption = false;
group(Control25)
{
ShowCaption = false;
field("Invoice Discount Amount"; TotalSalesCrMemoHeader."Invoice Discount Amount")
{
ApplicationArea = Basic, Suite;
AutoFormatExpression = TotalSalesCrMemoHeader."Currency Code";
AutoFormatType = 1;
CaptionClass = DocumentTotals.GetInvoiceDiscAmountWithVATCaption(TotalSalesCrMemoHeader."Prices Including VAT");
Caption = 'Invoice Discount Amount';
Editable = false;
ToolTip = 'Specifies a discount amount that is deducted from the value of the Total Incl. VAT field, based on sales lines where the Allow Invoice Disc. field is selected.';
}
}
group(Control7)
{
ShowCaption = false;
field("Total Amount Excl. VAT"; TotalSalesCrMemoHeader.Amount)
{
ApplicationArea = Basic, Suite;
AutoFormatExpression = TotalSalesCrMemoHeader."Currency Code";
AutoFormatType = 1;
CaptionClass = DocumentTotals.GetTotalExclVATCaption(TotalSalesCrMemoHeader."Currency Code");
Caption = 'Total Amount Excl. VAT';
DrillDown = false;
Editable = false;
ToolTip = 'Specifies the sum of the value in the Line Amount Excl. VAT field on all lines in the document minus any discount amount in the Invoice Discount Amount field.';
}
field("Total VAT Amount"; VATAmount)
{
ApplicationArea = Basic, Suite;
AutoFormatExpression = TotalSalesCrMemoHeader."Currency Code";
AutoFormatType = 1;
CaptionClass = DocumentTotals.GetTotalVATCaption(TotalSalesCrMemoHeader."Currency Code");
Caption = 'Total VAT';
Editable = false;
ToolTip = 'Specifies the sum of VAT amounts on all lines in the document.';
}
field("Total Amount Incl. VAT"; TotalSalesCrMemoHeader."Amount Including VAT")
{
ApplicationArea = Basic, Suite;
AutoFormatExpression = TotalSalesCrMemoHeader."Currency Code";
AutoFormatType = 1;
CaptionClass = DocumentTotals.GetTotalInclVATCaption(TotalSalesCrMemoHeader."Currency Code");
Caption = 'Total Amount Incl. VAT';
Editable = false;
Style = Strong;
StyleExpr = TRUE;
ToolTip = 'Specifies the sum of the value in the Line Amount Incl. VAT field on all lines in the document minus any discount amount in the Invoice Discount Amount field.';
}
}
}
}
}
actions
{
    area(processing)
    {
        action(DeferralSchedule)
        {
            ApplicationArea = Suite;
            Caption = 'Deferral Schedule';
            Image = PaymentPeriod;
            ToolTip = 'View the deferral schedule that governs how revenue made with this sales document was deferred to different accounting periods when the document was posted.';

            trigger OnAction()
            begin
                ShowDeferrals;
            end;
        }
        group("&Line")
        {
            Caption = '&Line';
            Image = Line;
            action(Dimensions)
            {
                AccessByPermission = TableData Dimension = R;
                ApplicationArea = Dimensions;
                Caption = 'Dimensions';
                Image = Dimensions;
                ShortCutKey = 'Alt+D';
                ToolTip = 'View or edit dimensions, such as area, project, or department, that you can assign to sales and purchase documents to distribute costs and analyze transaction history.';

                trigger OnAction()
                begin
                    ShowDimensions();
                end;
            }
            action(Comments)
            {
                ApplicationArea = Comments;
                Caption = 'Co&mments';
                Image = ViewComments;
                ToolTip = 'View or add comments for the record.';

                trigger OnAction()
                begin
                    ShowLineComments();
                end;
            }
            action(ItemTrackingEntries)
            {
                ApplicationArea = ItemTracking;
                Caption = 'Item &Tracking Entries';
                Image = ItemTrackingLedger;
                ToolTip = 'View serial or lot numbers that are assigned to items.';

                trigger OnAction()
                begin
                    ShowItemTrackingLines;
                end;
            }
            action(ItemReturnReceiptLines)
            {
                AccessByPermission = TableData "Return Shipment Header" = R;
                ApplicationArea = SalesReturnOrder, PurchReturnOrder;
                Caption = 'Item Return Receipt &Lines';
                Image = ReceiptLines;
                ToolTip = 'View posted return receipts for the item.';

                trigger OnAction()
                begin
                    PageShowItemReturnRcptLines;
                end;
            }
            action(DocumentLineTracking)
            {
                ApplicationArea = Basic, Suite;
                Caption = 'Document &Line Tracking';
                Image = Navigate;
                ToolTip = 'View related open, posted, or archived documents or document lines.';

                trigger OnAction()
                begin
                    ShowDocumentLineTracking();
                end;
            }
            action(DocAttach)
            {
                ApplicationArea = All;
                Caption = 'Attachments';
                Image = Attach;
                ToolTip = 'Add a file as an attachment. You can attach images as well as documents.';

                trigger OnAction()
                var
                    DocumentAttachmentDetails: Page "Document Attachment Details";
                    RecRef: RecordRef;
                begin
                    RecRef.GetTable(Rec);
                    DocumentAttachmentDetails.OpenForRecRef(RecRef);
                    DocumentAttachmentDetails.RunModal;
                end;
            }
        }
    }
}

trigger OnAfterGetCurrRecord()
begin
    DocumentTotals.CalculatePostedSalesCreditMemoTotals(TotalSalesCrMemoHeader, VATAmount, Rec);
end;

trigger OnAfterGetRecord()
begin
    ShowShortcutDimCode(ShortcutDimCode);
end;

trigger OnInit()
var
    ApplicationAreaMgmtFacade: Codeunit "Application Area Mgmt. Facade";
begin
    IsFoundation := ApplicationAreaMgmtFacade.IsFoundationEnabled;
end;

trigger OnOpenPage()
begin
    SetDimensionsVisibility();
    SetItemReferenceVisibility();
end;

var
    DocumentTotals: Codeunit "Document Totals";
    VATAmount: Decimal;
    IsFoundation: Boolean;
    [InDataSet]
    ItemReferenceVisible: Boolean;

protected var
    TotalSalesCrMemoHeader: Record "Sales Cr.Memo Header";
    ShortcutDimCode: array[8] of Code[20];
    DimVisible1: Boolean;
    DimVisible2: Boolean;
    DimVisible3: Boolean;
    DimVisible4: Boolean;
    DimVisible5: Boolean;
    DimVisible6: Boolean;
    DimVisible7: Boolean;
    DimVisible8: Boolean;

local procedure PageShowItemReturnRcptLines()
begin
    if not (Type in [Type::Item, Type::"Charge (Item)"]) then
        TestField(Type);
    ShowItemReturnRcptLines;
end;

procedure ShowDocumentLineTracking()
var
    DocumentLineTracking: Page "Document Line Tracking";
begin
    Clear(DocumentLineTracking);
    DocumentLineTracking.SetDoc(
      10, "Document No.", "Line No.", "Blanket Order No.", "Blanket Order Line No.", "Order No.", "Order Line No.");
    DocumentLineTracking.RunModal;
end;

local procedure SetDimensionsVisibility()
var
    DimMgt: Codeunit DimensionManagement;
begin
    DimVisible1 := false;
    DimVisible2 := false;
    DimVisible3 := false;
    DimVisible4 := false;
    DimVisible5 := false;
    DimVisible6 := false;
    DimVisible7 := false;
    DimVisible8 := false;

    DimMgt.UseShortcutDims(
      DimVisible1, DimVisible2, DimVisible3, DimVisible4, DimVisible5, DimVisible6, DimVisible7, DimVisible8);

    Clear(DimMgt);
    //NPO begin
    OnAfterSetDimensionsVisibility()
    //NPO end
end;

local procedure SetItemReferenceVisibility()
var
    ItemReferenceMgt: Codeunit "Item Reference Management";
begin
    ItemReferenceVisible := ItemReferenceMgt.IsEnabled();
end;

//NPO begin
[IntegrationEvent(true, false)]
local procedure OnAfterSetDimensionsVisibility()
begin
end;
//NPO end

}

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Release shell scripts to the releases page

Do this instead of relying on whatever is on master.

:+1:


Customize filters' position

Current: User can put the filters in the footer.
Wanted: User has three choice:

filters in footer
filters in header
filters in a centralized div container outside of the table

Finished in commit bf5691d0a6f162eeb4d2385477c973dd09897126


react-navigation in "react-native": "0.43.2"show error  code 500

react-navigation in "react-native": "0.43.2"show error code；
code message："Unable to resolve modele 'react/lib/ReactComponentWithPureRenderMixin';"
is react-native error or react-navigation error?

This is solved if you use the master branch, so I guess it will be in the next release.

#923

#923

Same mistake on not master branch

Since this question has been asked numerous times, what is preventing master branch from being released to NPM?

please check rn-diff https://github.com/ncuillery/rn-diff
"react": "16.0.0-alpha.6",
    "react-native": "0.43.1",

This is serious problem <.<

Same issue occurred even when I pulled from master branch in node_modules folder
versions:
"react": "16.0.0-alpha.6",
"react-native": "0.43.4",
"react-navigation": "^1.0.0-beta.7"
Detailed error:
error: bundling: UnableToResolveError: Unable to resolve module prop-types from App/node_modules/react-navigation/src/views/withNavigation.js: Module does not exist in the module map or in these directories

Hi there! This issue is being closed because it has been inactive for a while. We're closing issues after a period of inactivity. Please do not take this personally :)
If you think this issue should remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:

Does the issue still reproduce on the latest release? Post a comment with the version you tested.
If so, is there any information missing from the bug report? Post a comment with all the information required by the issue template.
Is there a pull request that addresses this issue? Post a comment with the PR number so we can follow up.
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contributors guide, and feel free to hop into #react-navigation if you need help planning your contribution.


Corrected a typo in update multi-service_container.md

Fixed a typo.

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Kicking off Netlify again.


Companion v3 Rewrite

https://github.com/bitfocus/companion-module-newtek-tricaster/commit/68161f8813028a872660c281dce44df844e6184c


docker-machine start fails on Mac OSX 10.10.5

Starting a docker machine fails. It looks like a VirtualBox error. I was able to find the error, and solution, on this virtualbox issue ticket. The solution was to install  a VirtualBox TestBuild.
From  VBox.log
VirtualBox VM 5.0.2 r102096 darwin.amd64 (Aug 13 2015 18:38:03) release log
00:00:00.020443 Log opened 2015-08-18T13:12:36.637753000Z
00:00:00.020443 Build Type: release
00:00:00.020454 OS Product: Darwin
00:00:00.020459 OS Release: 14.5.0
00:00:00.020464 OS Version: Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64
00:00:00.020547 DMI Product Name: MacBookPro12,1
00:00:00.020588 DMI Product Version: 1.0
00:00:00.020594 Host RAM: 8192MB total, 3388MB available
00:00:00.020596 Executable: /Applications/VirtualBox.app/Contents/MacOS/VBoxHeadless
00:00:00.020596 Process ID: 631
00:00:00.020597 Package type: DARWIN_64BITS_GENERIC
00:00:00.021787 Installed Extension Packs:
00:00:00.021796   None installed!
00:00:00.022561 Console: Machine state changed to 'Starting'
00:00:00.028158 SUP: Loading failed for VMMR0.r0 (/Applications/VirtualBox.app/Contents/MacOS/VMMR0.r0) rc=VERR_VMM_SMAP_BUT_AC_CLEAR
00:00:00.028201 PDMLdr: pdmR3LoadR0U: pszName="VMMR0.r0" rc=VERR_VMM_SMAP_BUT_AC_CLEAR szErr="SUPR3LoadModule: supLoadModule returned VERR_VMM_SMAP_BUT_AC_CLEAR"
00:00:00.028209 VMSetError: /Users/vbox/tinderbox/mac-rel/src/VBox/VMM/VMMR3/VM.cpp(595) int vmR3CreateU(UVM*, uint32_t, int (*)(UVM*, VM*, void*), void*); rc=VERR_VMM_SMAP_BUT_AC_CLEAR
00:00:00.028214 VMSetError: Failed to load VMMR0.r0
00:00:00.028299 ERROR [COM]: aRC=NS_ERROR_FAILURE (0x80004005) aIID={872da645-4a9b-1727-bee2-5585105b9eed} aComponent={ConsoleWrap} aText={Failed to load VMMR0.r0 (VERR_VMM_SMAP_BUT_AC_CLEAR)}, preserve=false aResultDetail=0
00:00:00.028374 Console: Machine state changed to 'PoweredOff'
00:00:00.030367 Power up failed (vrc=VERR_VMM_SMAP_BUT_AC_CLEAR, rc=NS_ERROR_FAILURE (0X80004005))

/var/log/system.log
kernel[0]: vboxdrv: Bad CPU context error at line 4886 in SUPDrv.cpp: EFLAGS.AC is 0!

Argh, rough.  Thanks for filing the ticket to let us know!

Thanks for the feedback!

Closing. This was fixed in VBox 5.0.4


Add to_parquet

If we're looking to have a realistic workload then my guess is that the read_parquet -> shuffle -> to_parquet pipeline seems like a good first one.  @rjzamora maybe something to think about?

Closed by #137


h5py Dockerfile

h5py is a quite hard dependency buy it is not in all the flavors of TF Dockerfile.
I.e. https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/keras/_impl/keras/applications/vgg16.py#L50-L51
See https://github.com/keras-team/keras/pull/9830
/cc @fchollet

/cc @lenlen

Nagging Assignee @aselle: It has been 14 days with no activity and this issue has an assignee. Please update the label and/or status accordingly.

@angersson, do you know who is working on docker right now?

@av8ramit?

See also https://github.com/tensorflow/tensorflow/pull/11360

@caisq Do you know why it was not introduced in all the Dockerfile on #11360 review process.

@bhack @av8ramit I'm fine with adding h5py to the devel Docker images if users require it.

I'll put together a change to add the dependencies to the dockerfiles.

https://github.com/tensorflow/tensorflow/pull/18868

Resolved by #18868. Thanks Amit!


validation section not correct

In section "Validate user inputs"

"Expand Recognizers and select Add alternative. Then enter the following text:" this text is never displayed, instead you have to use "Expand Prompt Configurations and select Add alternative. Then enter the following text:"
The text doesn't include what the default text selected actually is
"The last thing you'll want to do for validation, is set a default value for the postal code. Expand Prompt configuration and locate Default value, then enter the following text:". Inputting 90210 gives a validation error since that is an int, and it expects a string, so the correct value to paste is "90210" including quotes.

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

ID: 1636bda0-c8ee-5632-bb87-d7972f87e9d7
Version Independent ID: c8ab72b1-f10a-b0a7-1424-d86a6978621a
Content: Tutorial: Create a weather bot with Bot Framework Composer
Content Source: composer-docs/tutorial-create-weather-bot.md
Service: bot-composer
GitHub Login: @JonathanFingold
Microsoft Alias: v-eolshefski

Suggestion for item 2: "Sorry, I do not understand '${this.value}'. Let's use ${%DefaultValue} instead!"


General improvements - V2

Changes since v1:

Fixing typos
Platform node - Register service monitor if service name changes.
Sol-bus: always call bus_initialized function.

The bus patch deserves an extra +1, the rest should be fine.

:+1: (just a minor improvement (optional)) on the sol-bus patch.

merged


Update to Microsoft.Azure.Functions.Worker.Core version 1.18 breaks Open Telemetry Tracing for .net8 isolated function

Description
We are using the standard OpenTelemetry instrumentation (using the code below) to add tracing to our Azure functions and send these to an Otel collector. This works fine for Worker.Core versions <= 1.17 but updating to any package that has a dependency on Worker.Core >= 1.18 means that we no longer see traces appearing.
Worker.Core 1.17

Worker.Core 1.18

Steps to reproduce
Create a new .NET8 Isolated HTTP Trigger azure function (make sure it's using Microsoft.Azure.Functions.Worker.Core version <=1.17 i.e. Microsoft.Azure.Functions.Worker meta package version <=1.21)
Add the opentelemetry packages
    <PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.9.0" />
    <PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.9.0" />
    <PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.9.0" />

Add opentelemetry in the program.cs using code similar to below
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using OpenTelemetry.Resources;
using OpenTelemetry.Trace;

var host = new HostBuilder()
    .ConfigureFunctionsWebApplication()
    .ConfigureServices(services =>
    {
        services.AddOpenTelemetry().WithTracing(tracing =>
        {
            tracing.ConfigureResource(resource => resource.AddService("FunctionAppWithTelemetry"))
                .AddSource("FunctionAppWithTelemetry")
                .AddConsoleExporter();
        });
    })
    .Build();

host.Run();

Add an Activity to the function1.cs
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Azure.Functions.Worker;
using Microsoft.Extensions.Logging;
using System.Diagnostics;

namespace FunctionAppWithTelemetry;

public class Function1
{
    private readonly ILogger<Function1> _logger;
    private ActivitySource _activitySource;

    public Function1(ILogger<Function1> logger)
    {
        _logger = logger;
        _activitySource = new ActivitySource("FunctionAppWithTelemetry");
    }

    [Function("Function1")]
    public IActionResult Run([HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")] HttpRequest req)
    {
        using var activity = _activitySource.StartActivity("FunctionAppWithTelemetry.Run");
        return new OkObjectResult("Welcome to Azure Functions!");
    }
}

If you run and make a get call to the function you will see console output of a trace span.
Upgrading the Microsoft.Azure.Functions.Worker to version 1.22 and re-running you will not see any console output from telemetry

@RohitRanjanMS This issue still seems to be present in the latest version (1.19.0) of Microsoft.Azure.Functions.Worker.Core

Hi @frozenskys , did you try with trace flag 01?

@RohitRanjanMS So testing further this seems to work if I supply a valid traceparent HTTP header on the call to the function, however my reading of the W3C spec (https://www.w3.org/TR/trace-context/#no-traceparent-received) says I'd expect that if I didn't supply a traceparent that a span should be generated anyway with new trace-id and parent-id values, which doesn't seem to happen in this case.


Lambda parameter type inferred as Object when should be Null

If I analyze this with --enable-experiment=non-nullable:
void then(void Function(Null) callback) {}

main() {
  then((_) {});
}

Then I get:
error • The argument type 'Null Function(Object)' can't be assigned to the parameter type 'void Function(Null)'. • temp.dart:4:8 • argument_type_not_assignable

I would expect the closure's parameter type to be inferred as Null. This isn't an entirely contrived use case. As the name of the function above implies, if you call .then() on a Future<Null>, you will run into this.

https://dart-review.googlesource.com/c/sdk/+/136461


Template update?

This is a good template, any plans in the future to update it?

This is a good template, any plans in the future to update it?

Sorry I can't plan to update this template in the future.


Teradata Connector - Vantage version 15

Is your feature request related to a problem? Please describe.
For the existing replication pipeline type in mage, we need the ability to connect to Teradata vantage version 15. As a workaround we tried using the regular pipeline type, but this is not feasible due to mage putting all data into memory. Initial replications are too big for this method.
Describe the solution you'd like
We need the ability to connect to Teradata vantage version 15.
Describe alternatives you've considered
As a workaround, we tried using the regular pipeline type, but this is not feasible because Mage puts all data into memory. Initial replications are too big for this method.

Without a Teradata connector for the replication type pipeline, we tried to satisfy our objective using multiple jobs run to replicate large datasets. This was impossible due to Mage not keeping state, so it doesn't know where it left off.
We tried to satisfy our objective using parallel mode. This was problematic as Mage infinitely loops in parallel mode

Additional context
Add any other context or screenshots about the feature request here.

duplicate enhancement request closing this

duplicate enhancement request closing this


Fails to return Graphql results

Description
Some queries throw a JS error and never return results. While I use the example notebook for the example below, I also observed this behavior with a new notebook.
First example fails:

With a JS error

Second example works fine:

Steps to Reproduce

Open the Graphql Notebook
Run the first example
Notice that it never returns results

Expected Behaviour
The Graphql results are displayed.
Relevant Logs / Console output
Your Environment

NR1 CLI version used: @datanerd/nr1/1.32.0 darwin-x64 node-v10.16.3
Browser name and version: Chrome 89.0.4389.90 (Official Build) (x86_64)
Operating System and version: MacOS Big Sur 11.2.3

After further investigation, this appears to have something to do with the NerdGraphQuery module from the nr1 package.
When querying for something like
{
    actor {
        user {
           name
        }
   }
}

The correct values are returned, but they include an extra id field for the user, which breaks the response parsing of this application.

I resolved this issue by first checking if there was a contextNode object, and then checking if it had contextNode.context, this has resolved the issue


docs: Update OWNERS

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 47.52%. Comparing base (40a2eb3) to head (724c26f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #234      +/-   ##
==========================================
+ Coverage   47.40%   47.52%   +0.11%
==========================================
  Files          58       58
  Lines        5010     5010
==========================================
+ Hits         2375     2381       +6
+ Misses       2454     2447       -7
- Partials      181      182       +1

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

🚨 Try these New Features:

Flaky Tests Detection - Detect and resolve failed and flaky tests


⚠ Bofrost.be has degraded performance

In 261b9a9, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1804 ms

Resolved: Bofrost.be performance has improved in a0a4da6.


something wrong with mIoU

For some reason, I received a negative number for mIoU. I am not sure what is wrong with it

hmm weird...what dataset are you running and with what command-line options?

Im using cityscapes, have not change anything, so most of the stuff are the default ones.
I am also looking into it to see if I can figure it out.

I would suggest looking into what's happening in the IoU class during training.
As for command-line options, you should have something like this:
--mode train
--batch_size 4
--dataset cityscapes
--dataset_dir <path_to_cityscapes_root>

Thanks!
yes, the command line is similar to what provided.
Yup, I am looking into it, I will let you know when I figure that out.

ran the code several times and did not observe that behavior anymore, so I am going to close this issue.


Add footer to all pages

The footer is shown only on the home. It should be shown on every page.

This could be a component. The paths and captions for the links on the footer should probably reside on config.js.


How about implementing GT.pipe()?

Currently, we can call the methods of GT multiple times, such as GT.tab_style().tab_style()..., which is a common pattern. However, this approach makes it difficult to programmatically call the method.
Here is an example to illustrate my question:
import polars as pl
from great_tables import GT, html, style, loc
from great_tables.data import towny

towny_mini = pl.from_pandas(towny).head(10)

(
    GT(
        towny_mini[["name", "land_area_km2", "density_2021"]],
        rowname_col="name",
    )
    .tab_header(
        title="The Municipalities of Ontario",
        subtitle="The top 10 highest population density in 2021",
    )
    .tab_stubhead(label="Municipality")
    .fmt_number(columns=["land_area_km2", "density_2021"], decimals=1)
    .cols_label(
        land_area_km2=html("land area,
km2"),
        density_2021=html("density,
people/km2"),
    )
    .tab_style(
        style=style.fill(color="lightgray"),
        locations=loc.body(
            columns="land_area_km2",
            rows=pl.col("land_area_km2").eq(pl.col("land_area_km2").max()),
        ),
    )
    .tab_style(
        style=style.fill(color="lightblue"),
        locations=loc.body(
            columns="density_2021",
            rows=pl.col("density_2021").eq(pl.col("density_2021").max()),
        ),
    )
)

In this example, I want to highlight the max value of the land_area_km2 and density_2021 columns with different styles. This requires invoking GT.tab_style() twice.

However, if we had GT.pipe(), we could encapsulate the styling logic in a function and pass it to GT.pipe(). Here is a draft concept for the idea:
from typing import Callable

def pipe(gtbl: GT, *callables: Callable[[GT], GT]) -> GT:
    for callable_ in callables:
        gtbl = callable_(gtbl)
    return gtbl

GT.pipe = pipe

def tbl_style(gtbl: GT) -> GT:
    cols = ["land_area_km2", "density_2021"]
    colors = ["lightgray", "lightblue"]
    for col, color in zip(cols, colors):
        gtbl = gtbl.tab_style(
            style=style.fill(color=color),
            locations=loc.body(columns=col, rows=pl.col(col).eq(pl.col(col).max())),
        )
    return gtbl

(
    GT(
        towny_mini[["name", "land_area_km2", "density_2021"]],
        rowname_col="name",
    )
    .tab_header(
        title="The Municipalities of Ontario",
        subtitle="The top 10 highest population density in 2021",
    )
    .tab_stubhead(label="Municipality")
    .fmt_number(columns=["land_area_km2", "density_2021"], decimals=1)
    .cols_label(
        land_area_km2=html("land area,
km2"),
        density_2021=html("density,
people/km2"),
    )
    .pipe(tbl_style)
)

With the help of GT.pipe(), we can even pass multiple functions to it. I'm curious whether this is a good idea or if there is an existing pattern that I might have overlooked to achieve this goal.

This is a great idea and would certainly be widely appreciated and used!

This feature was merged in v0.15.0, so I’ll close this issue.


fermitools local installation cannot be moved

Hi all,
 we use the "--prefix" option when calling "conda install fermitools" as we

need to keep different versions of fermitools, in different directories to apply
some tests .
When we try to move a given fermitools version, by giving another name to the directory,
for example renaming 1.0.0-beta to 1.0.0, we get an error message, when doing "source activate" :
[landriu@sappcfermi] ~ > source activate /dsm/saplxglast/glast/fermitools/1.0.0

root: can't start ROOT -- check that /dsm/saplxglast/glast/fermitools/1.0.0-beta/bin/root.exe exists!
and also iostream error when calling gtlike :
Error: cannot open file "iostream"  (tmpfile):2:
*** Interpreter error recovered ***
.../...
Is it possible to avoid these problems, so we can manage the different directories
without being obliged to reinstall fermitools version and reapply possibly done
modifications on it ?

Have you tried using different conda environments to contain each of the different fermitools versions?  Using those you shouldn't need to move the location of the tools themselves to switch (since you can just activate a different environment).

Yes, we can reinstall everything each time we have a modification not corresponding to
an offical version, but it would have been more convenient just to rename an existing
installation, to say it is an intermediary delivery, instead restarting the whole process
each time.

I think I might not be following the workflow properly, so I'd like to clarify:
You wish to install different versions of the tools in different locations, test them, and then use one of those installed versions as a production version?
Are you making additional modifications to the version of the tools installed by Conda?  Or do you have other versions of the tools obtained separately (such as older releases from the FSSC) and the Conda release is just one of many on this system?
Does the production version of the tools need to be in a specific immutable directory?  Or do you just need a way to make sure that the one you wish to use is the current active version?
Is this just on one machine?  Or on a distributed computing environment?
Thanks!

For the moment, we have two versions : fermitools-1.0.0 and a modified fermitools-1.0.0-alpha generated from official fermitools-1.0.0 with an update provided by Eric Charles for testing:
conda update -c conda-forge -c fermi/label/alpha -c fermi fermitools
in fact I have tried to apply the update on official  installation and tried to rename it, but it
did not give a valid installation, and had to restart from the beginning with the option
--prefix=fermitools-alpha . (Of course the official version has also to be regenarated in all cases
if still needed).
We could imagine we want to keep a modified working environment with some conda updates or other operations : this means that we need to redo the whole thing before storing this installation in a
dedicated place for reuse to compare for example different methods on source detection.

Are the two installations living in their own separate conda environments?  Unfortunately Conda does not allow the renaming of environments themselves.  I'm surprised the update didn't work from the official release to the alpha release, do you happen to have any error output from that?  It shouldn't have to reinstall everything for an update, it should just replace the old Fermitools binary with the new one.  All dependencies should remain the same.

HI Joe,
sorry if I have not been clear enough, but I got at first a valid installation after the update, but
it became unvalid after the renaming and I had to recreate a special version with the new name
--prefix=fermitools-alpha : restarting from the beginning : initial installation + update.
I have then two different installations fermittols-1.0.0 and fermi-1.0.0-alpha including both their
own dependencies .

Hi Jon,
for some months now, we have adopted the use of conda environments, and then the
locations  of releases are related to the anaconda installation, and once we have
chosen a consistent place where to put anaconda, there should not be now problems of room .
This topic was due to the fact I was not accustomed to the conda philosophy and had to adapt
coming from my old work organisation.
I think we can then close this issue.


Suggest bc breaks

Fixes #180

Actually I think it would be better to keep the usual keepachangelog style AND:

add the [BC] tag before each change which is BC breaking
optionally make it bold
also a big fat warning that most of the library is rewritten, so apart from the big breaks, there might be minor ones (refer to docs plz)

Good idea, will change it.

Thank you!  I'm so glad that users can more readily see breaking changes in the changelog.  We had to find the change to GetAmount's returning a string by reading the code because nothing was obvious in the changelog.

@sagikazarmark The PR is updated to your suggestions. My suggestion would be to repeat the BC breaks in the changelog when we release 3.0.0.

My suggestion would be to repeat the BC breaks in the changelog when we release 3.0.0.

Sounds like a sensible idea. :+1:

@sagikazarmark Updated. I qualified all removed features as BC breaks. Because any removed feature is breaking, right?


Add endpoints to check valid target, target membership

Valid user endpoint caters to the need of checking the given
target(user/mailing-list/team) is valid or not.
Memebership endpoint takes a user and lists and returns whether the given
user is a member of any of those.

Testing: make test.

@jrgp Updated Comments.


Vectors are Matrices with a single column not just an array

How to fix?
probably start by making a matrix class as it will be useful in the future.
then inherit it to make a vector?
have to think about this

OpenGL uses a different class for matrices and arrays so it has potentially been fixed in d14143f


Feature: Create vignette for running/customizing HTMLWidgets

Feature Details
Details TBD
Example Code

Possible Implementation

Additional Comments

I think this is mostly addressed in the new plugin vignette and the roxygen examples.


Error in sh setup.sh,resampy

I have install paddlepaddle2.0.
I also have
sudo apt-get install -y pkg-config libflac-dev libogg-dev libvorbis-dev libboost-dev swig python3-dev
but when I run
python -m pip install -r requirements.txt
The error occur,but I use
`pip install resampy'
The are correct
TheError
Building wheels for collected packages: resampy
  Building wheel for resampy (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/mocai/.conda/envs/GraProPy37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_9d9_e87/resampy_23028cdbed534bb79ae27cfda3de1e78/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_9d9_e87/resampy_23028cdbed534bb79ae27cfda3de1e78/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-5ezne7_7
       cwd: /tmp/pip-install-_9d9_e87/resampy_23028cdbed534bb79ae27cfda3de1e78/
  Complete output (123 lines):
  /tmp/pip-install-_9d9_e87/resampy_23028cdbed534bb79ae27cfda3de1e78/setup.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.7
  creating build/lib.linux-x86_64-3.7/resampy
  copying resampy/version.py -> build/lib.linux-x86_64-3.7/resampy
  copying resampy/core.py -> build/lib.linux-x86_64-3.7/resampy
  copying resampy/__init__.py -> build/lib.linux-x86_64-3.7/resampy
  copying resampy/filters.py -> build/lib.linux-x86_64-3.7/resampy
  creating build/lib.linux-x86_64-3.7/resampy/data
  copying resampy/data/kaiser_best.npz -> build/lib.linux-x86_64-3.7/resampy/data
  copying resampy/data/kaiser_fast.npz -> build/lib.linux-x86_64-3.7/resampy/data
  running build_ext
  building 'resampy.interp' extension
  creating build/temp.linux-x86_64-3.7
  creating build/temp.linux-x86_64-3.7/resampy
  gcc -pthread -B /home/mocai/.conda/envs/GraProPy37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include -I/home/mocai/.conda/envs/GraProPy37/include/python3.7m -c resampy/interp.c -o build/temp.linux-x86_64-3.7/resampy/interp.o
  In file included from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1944:0,
                   from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                   from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                   from resampy/interp.c:286:
  /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
   #warning "Using deprecated NumPy API, disable it with " \
    ^~~~~~~
  resampy/interp.c: In function ‘__Pyx__ExceptionSave’:
  resampy/interp.c:20816:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
       *type = tstate->exc_type;
                       ^~~~~~~~
                       curexc_type
  resampy/interp.c:20817:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
       *value = tstate->exc_value;
                        ^~~~~~~~~
                        curexc_value
  resampy/interp.c:20818:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       *tb = tstate->exc_traceback;
                     ^~~~~~~~~~~~~
                     curexc_traceback
  resampy/interp.c: In function ‘__Pyx__ExceptionReset’:
  resampy/interp.c:20825:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tmp_type = tstate->exc_type;
                          ^~~~~~~~
                          curexc_type
  resampy/interp.c:20826:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tmp_value = tstate->exc_value;
                           ^~~~~~~~~
                           curexc_value
  resampy/interp.c:20827:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tmp_tb = tstate->exc_traceback;
                        ^~~~~~~~~~~~~
                        curexc_traceback
  resampy/interp.c:20828:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tstate->exc_type = type;
               ^~~~~~~~
               curexc_type
  resampy/interp.c:20829:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tstate->exc_value = value;
               ^~~~~~~~~
               curexc_value
  resampy/interp.c:20830:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tstate->exc_traceback = tb;
               ^~~~~~~~~~~~~
               curexc_traceback
  resampy/interp.c: In function ‘__Pyx__GetException’:
  resampy/interp.c:20885:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tmp_type = tstate->exc_type;
                          ^~~~~~~~
                          curexc_type
  resampy/interp.c:20886:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tmp_value = tstate->exc_value;
                           ^~~~~~~~~
                           curexc_value
  resampy/interp.c:20887:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tmp_tb = tstate->exc_traceback;
                        ^~~~~~~~~~~~~
                        curexc_traceback
  resampy/interp.c:20888:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tstate->exc_type = local_type;
               ^~~~~~~~
               curexc_type
  resampy/interp.c:20889:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tstate->exc_value = local_value;
               ^~~~~~~~~
               curexc_value
  resampy/interp.c:20890:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tstate->exc_traceback = local_tb;
               ^~~~~~~~~~~~~
               curexc_traceback
  resampy/interp.c: In function ‘__Pyx__ExceptionSwap’:
  resampy/interp.c:22495:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tmp_type = tstate->exc_type;
                          ^~~~~~~~
                          curexc_type
  resampy/interp.c:22496:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tmp_value = tstate->exc_value;
                           ^~~~~~~~~
                           curexc_value
  resampy/interp.c:22497:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tmp_tb = tstate->exc_traceback;
                        ^~~~~~~~~~~~~
                        curexc_traceback
  resampy/interp.c:22498:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
       tstate->exc_type = *type;
               ^~~~~~~~
               curexc_type
  resampy/interp.c:22499:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
       tstate->exc_value = *value;
               ^~~~~~~~~
               curexc_value
  resampy/interp.c:22500:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
       tstate->exc_traceback = *tb;
               ^~~~~~~~~~~~~
               curexc_traceback
  In file included from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:21:0,
                   from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                   from resampy/interp.c:286:
  At top level:
  /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1464:1: warning: ‘_import_array’ defined but not used [-Wunused-function]
   _import_array(void)
   ^~~~~~~~~~~~~
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for resampy
  Running setup.py clean for resampy
Failed to build resampy
Installing collected packages: resampy, python-speech-features
  Attempting uninstall: resampy
    Found existing installation: resampy 0.2.2
    Uninstalling resampy-0.2.2:
      Successfully uninstalled resampy-0.2.2
    Running setup.py install for resampy ... error
    ERROR: Command errored out with exit status 1:
     command: /home/mocai/.conda/envs/GraProPy37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_9d9_e87/resampy_23028cdbed534bb79ae27cfda3de1e78/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_9d9_e87/resampy_23028cdbed534bb79ae27cfda3de1e78/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-xhz6ua1b/install-record.txt --single-version-externally-managed --compile --install-headers /home/mocai/.conda/envs/GraProPy37/include/python3.7m/resampy
         cwd: /tmp/pip-install-_9d9_e87/resampy_23028cdbed534bb79ae27cfda3de1e78/
    Complete output (123 lines):
    /tmp/pip-install-_9d9_e87/resampy_23028cdbed534bb79ae27cfda3de1e78/setup.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
      import imp
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/resampy
    copying resampy/version.py -> build/lib.linux-x86_64-3.7/resampy
    copying resampy/core.py -> build/lib.linux-x86_64-3.7/resampy
    copying resampy/__init__.py -> build/lib.linux-x86_64-3.7/resampy
    copying resampy/filters.py -> build/lib.linux-x86_64-3.7/resampy
    creating build/lib.linux-x86_64-3.7/resampy/data
    copying resampy/data/kaiser_best.npz -> build/lib.linux-x86_64-3.7/resampy/data
    copying resampy/data/kaiser_fast.npz -> build/lib.linux-x86_64-3.7/resampy/data
    running build_ext
    building 'resampy.interp' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/resampy
    gcc -pthread -B /home/mocai/.conda/envs/GraProPy37/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include -I/home/mocai/.conda/envs/GraProPy37/include/python3.7m -c resampy/interp.c -o build/temp.linux-x86_64-3.7/resampy/interp.o
    In file included from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1944:0,
                     from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                     from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from resampy/interp.c:286:
    /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
     #warning "Using deprecated NumPy API, disable it with " \
      ^~~~~~~
    resampy/interp.c: In function ‘__Pyx__ExceptionSave’:
    resampy/interp.c:20816:21: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
         *type = tstate->exc_type;
                         ^~~~~~~~
                         curexc_type
    resampy/interp.c:20817:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
         *value = tstate->exc_value;
                          ^~~~~~~~~
                          curexc_value
    resampy/interp.c:20818:19: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
         *tb = tstate->exc_traceback;
                       ^~~~~~~~~~~~~
                       curexc_traceback
    resampy/interp.c: In function ‘__Pyx__ExceptionReset’:
    resampy/interp.c:20825:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
         tmp_type = tstate->exc_type;
                            ^~~~~~~~
                            curexc_type
    resampy/interp.c:20826:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
         tmp_value = tstate->exc_value;
                             ^~~~~~~~~
                             curexc_value
    resampy/interp.c:20827:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
         tmp_tb = tstate->exc_traceback;
                          ^~~~~~~~~~~~~
                          curexc_traceback
    resampy/interp.c:20828:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
         tstate->exc_type = type;
                 ^~~~~~~~
                 curexc_type
    resampy/interp.c:20829:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
         tstate->exc_value = value;
                 ^~~~~~~~~
                 curexc_value
    resampy/interp.c:20830:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
         tstate->exc_traceback = tb;
                 ^~~~~~~~~~~~~
                 curexc_traceback
    resampy/interp.c: In function ‘__Pyx__GetException’:
    resampy/interp.c:20885:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
         tmp_type = tstate->exc_type;
                            ^~~~~~~~
                            curexc_type
    resampy/interp.c:20886:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
         tmp_value = tstate->exc_value;
                             ^~~~~~~~~
                             curexc_value
    resampy/interp.c:20887:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
         tmp_tb = tstate->exc_traceback;
                          ^~~~~~~~~~~~~
                          curexc_traceback
    resampy/interp.c:20888:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
         tstate->exc_type = local_type;
                 ^~~~~~~~
                 curexc_type
    resampy/interp.c:20889:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
         tstate->exc_value = local_value;
                 ^~~~~~~~~
                 curexc_value
    resampy/interp.c:20890:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
         tstate->exc_traceback = local_tb;
                 ^~~~~~~~~~~~~
                 curexc_traceback
    resampy/interp.c: In function ‘__Pyx__ExceptionSwap’:
    resampy/interp.c:22495:24: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
         tmp_type = tstate->exc_type;
                            ^~~~~~~~
                            curexc_type
    resampy/interp.c:22496:25: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
         tmp_value = tstate->exc_value;
                             ^~~~~~~~~
                             curexc_value
    resampy/interp.c:22497:22: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
         tmp_tb = tstate->exc_traceback;
                          ^~~~~~~~~~~~~
                          curexc_traceback
    resampy/interp.c:22498:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_type’; did you mean ‘curexc_type’?
         tstate->exc_type = *type;
                 ^~~~~~~~
                 curexc_type
    resampy/interp.c:22499:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_value’; did you mean ‘curexc_value’?
         tstate->exc_value = *value;
                 ^~~~~~~~~
                 curexc_value
    resampy/interp.c:22500:13: error: ‘PyThreadState {aka struct _ts}’ has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
         tstate->exc_traceback = *tb;
                 ^~~~~~~~~~~~~
                 curexc_traceback
    In file included from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:21:0,
                     from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                     from resampy/interp.c:286:
    At top level:
    /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/numpy/core/include/numpy/__multiarray_api.h:1464:1: warning: ‘_import_array’ defined but not used [-Wunused-function]
     _import_array(void)
     ^~~~~~~~~~~~~
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
  Rolling back uninstall of resampy
  Moving to /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/resampy-0.2.2.dist-info/
   from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/~esampy-0.2.2.dist-info
  Moving to /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/resampy/
   from /home/mocai/.conda/envs/GraProPy37/lib/python3.7/site-packages/~esampy
ERROR: Command errored out with exit status 1: /home/mocai/.conda/envs/GraProPy37/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-_9d9_e87/resampy_23028cdbed534bb79ae27cfda3de1e78/setup.py'"'"'; __file__='"'"'/tmp/pip-install-_9d9_e87/resampy_23028cdbed534bb79ae27cfda3de1e78/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-xhz6ua1b/install-record.txt --single-version-externally-managed --compile --install-headers /home/mocai/.conda/envs/GraProPy37/include/python3.7m/resampy Check the logs for full command output.

pip install resampy 安装最新的版本试试。

pip install resampy 安装最新的版本试试。

具体情况是这样的：我之前装了一遍paddle和DeepSpeech在Ubuntu18.04+python2.7，但后面为了项目开发，我用conda新建了一个python3.7的环境，然后重装了paddle和DeepSpeech，就提示这个错误。我也有尝试
pip install resampy
然后再运行
python -m pip install -r requirements.txt
又出现这个错误，并且把我用pip安装好的resampy卸载掉了

pushd tools; make ; popd
source tools/venv/bin/activate
bash setup.sh

在docker里，用这个试试吧，我这儿没啥问题的。
resampy                0.2.2