InputManager's keyname() method does not work as expected.

The method generally returns a single character relating to the key, instead of the SDL keycode as intended.

What is an example of a key that is returned as a single character but which shouldn't be?

All of them. I had hoped it would return the keycode values beginning with SDLK_, but it only returns an ascii or unicode character. I also can't figure out what it's using for the lookup table. Put in a number, a character comes out. I still haven't found any codes that don't correspond to a character, actually.
I want it to give us back the same codes we use to define keys, but I'm not even sure SDL has a mechanism for that now.

I still don't understand what you're looking for, but here's the code & lookup table for SDL_GetKeyName() if that helps:

https://github.com/spurious/SDL-mirror/blob/20bc7eea50ad7459d28c6e3c15e1bf2babe68fdf/src/events/SDL_keyboard.c#L943
https://github.com/spurious/SDL-mirror/blob/20bc7eea50ad7459d28c6e3c15e1bf2babe68fdf/src/events/SDL_keyboard.c#L905
https://github.com/spurious/SDL-mirror/blob/20bc7eea50ad7459d28c6e3c15e1bf2babe68fdf/src/events/SDL_keyboard.c#L282

The function clearly returns a single character string for some input values.

Could you describe a bit more how you are intending to use keyname()?

I think I'm misunderstanding some things. I'll re-purpose this for handling text input instead.


[BUG]: deleting a workflow causes errors

On prod
To Reproduce
Steps to reproduce the behavior:

Add a new workflow
Delete it by clicking on the x in the resources panel
=> see errors

Screenshots

Non reproducible


dart:html navigator.getBattery returns a Future not a Future

When running
window.navigator.getBattery().then((battery) => print(battery.charging));

It returns:
NoSuchMethodError: method not found: 'get$charging' (battery.get$charging is not a function)

battery.runtimeType is Interceptor
The getBattery docs says it returns a Future without referring to the actual BatteryManager class also defined on dart:html.

CC @terrylucas
@marcelduran – what's the SDK version you're on?

This issue still exists in Dart SDK version: 2.13.4 (stable) (Unknown timestamp) on "linux_x64", installed from Google's Repositories on Linux 5.4.72-microsoft-standard-WSL2.
Built with
targets:
  $default:
    builders:
      build_web_compilers:entrypoint:
        # These are globs for the entrypoints you want to compile.
        generate_for:
        - web/**.dart
        options:
          compiler: dart2js
          # List any dart2js specific args here, or omit it.
          dart2js_args:
          - -O0
          - --legacy-javascript
          - --csp


ci: update CI to publish android artifacts

What does this PR introduce?

delete java/ folder and move build.gradle under scripts/

@Jenea keeping this PR as a draft until we manage to resolve publishing the android artifacts. on Maven registry.

The CI will always fail as we have multiple Transfer events defined for LSP7CompatibleERC20 / LSP8CompatibleERC721
Maybe we should skip them for the time being in the Android artifacts.
https://github.com/web3j/web3j/issues/1781


No tools_call in message 这个报错是为什么？

使用的ollama本地部署方式，模型：llama3.1:8b
No tools_call in message [{"message":{"lc":1,"type":"constructor","id":["langchain_core","messages","AIMessage"],"kwargs":{"content":"Based on the provided npm ls command output, I've identified the dependencies of the current file (visa-h5/src/components/address.vue) and retrieved the required information. Here it is:\n\nDependency file path:\n\nNo specific dependency file was mentioned in the output. However, based on the package names, we can assume that the relevant dependency might be from one of the following<EMAIL_ADDRESS>(from<EMAIL_ADDRESS>(from<EMAIL_ADDRESS>(from \"dataService-js\")\n\nPlease note that I had to infer the package names based on their dependencies, as they are not explicitly mentioned in the output.\n\nThree most useful file paths:\n\nBased on the output and my analysis above, here are three potential file paths that might be relevant:\n\n1. visa-h5/src/components/address.vue (current file) - This is the file you're currently editing.\n2. visa-h5/src/common/base.vue - Assuming this package has dependencies related to addressing or layout management in a Vue environment.\n3. visa-h5/src/views/overCard/order/orderDetail.vue - A potentially relevant component file from another part of the app.\n\nLet me know if you have any questions or if there's anything else I can help with!","tool_calls":[],"invalid_tool_calls":[],"additional_kwargs":{},"response_metadata":{"tokenUsage":{"completionTokens":280,"promptTokens":1026,"totalTokens":1306},"finish_reason":"stop","system_fingerprint":"fp_ollama"},"id":"chatcmpl-240"}},"text":"Based on the provided npm ls command output, I've identified the dependencies of the current file (visa-h5/src/components/address.vue) and retrieved the required information. Here it is:\n\nDependency file path:\n\nNo specific dependency file was mentioned in the output. However, based on the package names, we can assume that the relevant dependency might be from one of the following<EMAIL_ADDRESS>(from<EMAIL_ADDRESS>(from<EMAIL_ADDRESS>(from \"dataService-js\")\n\nPlease note that I had to infer the package names based on their dependencies, as they are not explicitly mentioned in the output.\n\nThree most useful file paths:\n\nBased on the output and my analysis above, here are three potential file paths that might be relevant:\n\n1. visa-h5/src/components/address.vue (current file) - This is the file you're currently editing.\n2. visa-h5/src/common/base.vue - Assuming this package has dependencies related to addressing or layout management in a Vue environment.\n3. visa-h5/src/views/overCard/order/orderDetail.vue - A potentially relevant component file from another part of the app.\n\nLet me know if you have any questions or if there's anything else I can help with!"}]

某些功能依赖于模型的 function_call 能力，假如模型没有这个能力则会报此错误，建议更换具有 function_call 能力的模型，比如 OpenAI 的 gpt-4o 或者国产 deepseek 的模型

按照您的推荐，我使用了deepseek的模型，然后报了另一个错误

422 Failed to deserialize the JSON body into the target type: messages[0]: invalid type: sequence, expected a string at line 24 column 3

你是否在使用智能粘贴图转代码，这个功能目前很多国产模型都不支持，这个功能我只推荐open AI的gpt-4o，如果你很想用但又很难获取openAI key，你可以看一下这里：https://aide.nicepkg.cn/zh/guide/use-another-llm/aide-models
目前没有库存，可能今天晚上才能补充库存


[kjobctl] Add Slurm mode

What type of PR is this?

/kind feature
What this PR does / why we need it:
Add Slurm mode on kjobctl.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?

NONE

/cc @mbobrovskyi

@IrvingMg Thank you for this effort. BTW, could you share the context, objectives, and motivations for this enhancement in the dedicated issue?

@IrvingMg Thank you for this effort. BTW, could you share the context, objectives, and motivations for this enhancement in the dedicated issue?

Sure. The summary is that this enhancement is part of KJobctl, an experimental tool to submit batch jobs quickly. Over the last couple of months, we've been adding support for some job types such as the plain K8s Job, RayJob, among others; so now we want to allow execution of bash scripts following a SLURM-like approach, making the experience of using Kjobctl similar to the sbatch command.
However, I think @mwielgus is the right person to provide more information, if needed :)

@IrvingMg Thank you for this effort. BTW, could you share the context, objectives, and motivations for this enhancement in the dedicated issue?

Yeah, I would like to clarify the motivations and context for this feature since we do not support Slurm in the Kueue controller manager, and we used to claim that the K8s has many advantages for the HPC environments rather than Slurm, then we used to recommended use the K8s instead of Slurm.

/test pull-kueue-test-kjobctl

Good job! LGTM.

@mwielgus Could you please check?

Just one question - where the set of environment variables is built?

We are building it on the slurm builder:
https://github.com/kubernetes-sigs/kueue/blob/6670fb4b2ca1424bbe459500b0f7b53aa5799980/cmd/experimental/kjobctl/pkg/builder/slurm_builder.go#L456-L474
This will create an entrypoint.sh wrapper, set and export environment variables, and execute the script.sh.

Cool, thanks!
/lgtm

/cc @alculquicondor

/lgtm
/approve

@IrvingMg Thank you for this effort. BTW, could you share the context, objectives, and motivations for this enhancement in the dedicated issue?

Yeah, I would like to clarify the motivations and context for this feature since we do not support Slurm in the Kueue controller manager, and we used to claim that the K8s has many advantages for the HPC environments rather than Slurm, then we used to recommended use the K8s instead of Slurm.

Ah, now I understand that this PR motivation. This command simulates the slurm command. So, even if we use this command, we keep using the Kubernetes cluster, right?

Ah, now I understand that this PR motivation. This command simulates the slurm command. So, even if we use this command, we keep using the Kubernetes cluster, right?

Exactly.

Ah, now I understand that this PR motivation. This command simulates the slurm command. So, even if we use this command, we keep using the Kubernetes cluster, right?

Exactly.

Thanks for the confirmation. That is a great feature!

It's a command line translation layer, there is no actual slurm involved.


Doc enhance for gpt

Added a chunk of Architecture & Design documentation which really helps LASER-GPT produce decent code. Also added a decent bit of sample code for gravity migration function.

Also, you should do whatever you need to do to make sure the PR can be rebased. Currently GitHub says that it cannot "due to conflicts".

Also, you should do whatever you need to do to make sure the PR can be rebased. Currently GitHub says that it cannot "due to conflicts".

The git team should fix their issue.

@clorton I think your concerns have been addressed. Thanks for taking a look promptly on Friday.


WIP: Add skip bootstrapkubeconfig option in klusterlet manifests.

With this feature and we can set any bootstrap kubeconfig we want using Manifestwork.
TODO: the annotation should be added in clusterlifecycle-api repo.

Conclusion: Still using Multiplehubs as the only interface to interact with bootstrapkubeconfigs.


Error using newly created DynamoDB tables

I'm getting an error working with a newly created dynamoDB.
2017-11-02 18:18:03.604 (+00:00)	2a8333a9-bffa-11e7-a1e5-51dac69da33d	TypeError: Cannot read property 'userData' of null
    at /var/task/node_modules/jovo-framework/lib/jovo.js:226:37
    at DynamoDb.checkResourceNotFound (/var/task/node_modules/jovo-framework/lib/integrations/db/dynamoDb.js:328:13)
    at Response.<anonymous> (/var/task/node_modules/jovo-framework/lib/integrations/db/dynamoDb.js:209:22)
    at Request.<anonymous> (/var/runtime/node_modules/aws-sdk/lib/request.js:364:18)
    at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
    at Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
    at Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:683:14)
    at Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /var/runtime/node_modules/aws-sdk/lib/state_machine.js:26:10

I've been trying to dig into this a bit to figure out what is happening and I'm not sure. When I run the same code locally using a webhook and local file store it's running fine. Please let me know what type of diagnostics I can do to troubleshoot the issue.
Edited to fix styling

Hi @funkymonkeymonk, thanks! So this didn't happen before with a previous table, or is it the first time you're using the DynamoDB integration?

This happens on a brand new table. I had a previous working table, which this started to fail on and as a diagnostic step I tried deleting the table and letting the framework recreate it. It performs the recreate on the first invocation though fails due to a race condition between table creation and table access, then fails the same way on the second invocation.

Thanks for the further explanation. We will investigate and fix as soon as possible.
cc @aswetlow

Hi @funkymonkeymonk, still trying to reproduce this. Can you tell us which version of the framework you're using?

Hey @funkymonkeymonk, could you please log the error object in checkResourceNotFound(error, callback) in /node_modules/jovo-framework/lib/integrations/db/dynamoDb.js (Line 326)
I think it's an aws-error that is not handled by the framework.

For sure. I'll try to do it tonight when I get home from work.

Hi @funkymonkeymonk, any news on this issue?

Hey. I haven't been able to get time to check it out but I will be over the
weekend.
On Fri, Nov 10, 2017, 2:29 AM Jan König<EMAIL_ADDRESS>wrote:

Hi @funkymonkeymonk https://github.com/funkymonkeymonk, any news on
this issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jovotech/jovo-framework-nodejs/issues/36#issuecomment-343395653,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AFHumeMJtC5iseK5YmG12SRA1BpKrtz8ks5s0_tzgaJpZM4QQJDv
.

Sounds good, thanks! Have a great weekend

@aswetlow @jankoenig I believe this is the object you're requesting.
{ ValidationException: The provided key element does not match the schema
at Request.extractError (/var/runtime/node_modules/aws-sdk/lib/protocol/json.js:48:27)
at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:105:20)
at Request.emit (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:77:10)
at Request.emit (/var/runtime/node_modules/aws-sdk/lib/request.js:683:14)
at Request.transition (/var/runtime/node_modules/aws-sdk/lib/request.js:22:10)
at AcceptorStateMachine.runTo (/var/runtime/node_modules/aws-sdk/lib/state_machine.js:14:12)
at /var/runtime/node_modules/aws-sdk/lib/state_machine.js:26:10
at Request. (/var/runtime/node_modules/aws-sdk/lib/request.js:38:9)
at Request. (/var/runtime/node_modules/aws-sdk/lib/request.js:685:12)
at Request.callListeners (/var/runtime/node_modules/aws-sdk/lib/sequential_executor.js:115:18)
message: 'The provided key element does not match the schema',
code: 'ValidationException',
time: 2017-11-12T18:28:17.865Z,
requestId: '04CQ0NE44QG6VM0S93N9D6FDB7VV4KQNSO5AEMVJF66Q9ASUAAJG',
statusCode: 400,
retryable: false,
retryDelay: 16.131448494598168 }

Hi @funkymonkeymonk, thanks, can you please delete the table again and let the voice app create a new one (not manually, will be done by running the app) and send the logs again?

Closing this for now


test-branch/execute-job/quoted-authorization/be33be09-29b1-4bfd-9a49-9227771bd66b

PR for testing 5a9dde9de085ff9b9195e6170250489bb9051a1e

/canonical/self-hosted-runners/run-workflows 5a9dde9de085ff9b9195e6170250489bb9051a1e


Fix a typo and refactor multiple greps into one

The original fix for #88 introduced a new bug in the form of a
missing pipe before a line continuation. This combined the
arguments for two grep calls into one.
Clean up the code by using a single grep -vE instead of multiple
piped grep -v.
Fixes #88.

Thanks for the patch!


Visualize interprets some texts

In the dataset "Peaks Bundesratsgeschäfte", there is a key dimension "Woche" represented by a string containing the year and the number of the week separated by a dash. Example: "2019-01".
In step 2, chart type selection, Visualize interprets this dimension and shows it as a date with month and year separated by a dot:

The dataset contains only data from years 2019 and 2020, so the representation of the x-axis is clearly false.
In the next steps, I define a color and this dimension is no more interpreted. The values on the x-axis are now correct:

I've never seen this notation 😄 – I don't think it's a valid ISO date and has no representation as XSD datatype?

That's a string.
As I don't know how to represent a week of the year in RDF, I decided to publish it as a string.
Just defined as a Key Dimension, but not temporal, not Interval or something else.
In the second snapshot it is correct, in the first, it is interpreted.
The goal is exactly what Visualize produce at the end. A column chart with 3 "categories", so it's really a very small thing.


Adding Pathname#empty? specs

added on MRI 2.4 as the Feature #12596 - Add Pathname#empty? to be consistent with Dir.empty? and File.empty?
Part of #473

That's a neat concise spec, thank you!


Cannot unzip vsitu_all_11_frames_feats

When I try to unzip vsitu_all_11_frames_feats.zip, I get the following error:
$ unzip vsitu_all_11_frames_feats.zip
Archive:  vsitu_all_11_frames_feats.zip
warning [vsitu_all_11_frames_feats.zip]:<PHONE_NUMBER>1 extra bytes at beginning or within zipfile
  (attempting to process anyway)
error [vsitu_all_11_frames_feats.zip]:  start of central directory not found;
  zipfile corrupt.
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)

However, I can download individual files from vsitu_all_11_frames_feats, just not the entire directory. How do I download the entire directory?

Actually I had to do this:
zip -FF vsitu_all_11_frames_feats.zip -O fixed_vistu_all_11_frames_feats.zip
unzip fixed_vistu_all_11_frames_feats.zip


Use distinct types for RealInfinity

This change will make it easier to handle ambiguities and conflicts. Old interface is reserved, except for x.signbit fully replaced by signbit(x).

#5

Wouldn't this be a breaking change? Why not just introduce new types, and keep RealInfinity as is?


build fails with IA_IMAGING not found

Attempting to build on a Fedora36 system, and the initial cmake command fails:
$ make -DCMAKE_BUILD_TYPE=Release -DIPU_VER=${IPU6_VER} -DENABLE_VIRTUAL_IPU_PIPE=OFF -DUSE_PG_LITE_PIPE=ON -DUSE_STATIC_GRAPH=OFF -DCMAKE_INSTALL_PREFIX=/usr ..
CMake Deprecation Warning at CMakeLists.txt:17 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- install prefix: /usr
INFOadd definition -DIPU_SYSVER_ipu6v5 for ipu6ep
-- Checking for module 'ia_imaging'
--   Package 'ia_imaging', required by 'virtual:world', not found
CMake Error at cmake/FindIA_IMAGING.cmake:28 (message):
  IA_IMAGING not found
Call Stack (most recent call first):
  CMakeLists.txt:269 (find_package)

-- Configuring incomplete, errors occurred!

I've definitely got the headers installed from ipu6-camera-bins, so I'm not clear why they're not being found:
'ipu6ep/include/ia_imaging/ia_types.h' -> '/usr/include/ia_imaging/ia_types.h'
'ipu6ep/include/ia_imaging/ia_view.h' -> '/usr/include/ia_imaging/ia_view.h'
'ipu6ep/include/ia_imaging/ia_view_types.h' -> '/usr/include/ia_imaging/ia_view_types.h'

@netllama, I believe you need the content of this repo at compile time: https://github.com/intel/ipu6-camera-bins

Yes, that's understood, and I thought that I already installed that repo
per its README.  Do I need to set some sort of env variable to point to the
actual repo, or should copying into /usr/lib and /usr/include (per the
README) be sufficient?
On Mon, Jul 25, 2022 at 9:05 AM Christoph Jechlitschek <
@.***> wrote:

@netllama https://github.com/netllama, I believe you need the content
of this repo at compile time: https://github.com/intel/ipu6-camera-bins
—
Reply to this email directly, view it on GitHub
https://github.com/intel/ipu6-camera-hal/issues/18#issuecomment-1194292083,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAARLSKF3YTM6LY2PCU5UZ3VV23NVANCNFSM54QGZBZQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Copying should be sufficient. Note that you can only build for IPU6 or IPU6ep at any one time.
It seems that your cmake is not picking up the ia_imaging.pc from the binary repo. Can you check why that is?

I don't understand why.  Its present:
$ ls -l  /usr/lib/pkgconfig/ia_imaging.pc
-rw-r--r-- 1 root root 220 Jul 24 13:23 /usr/lib/pkgconfig/ia_imaging.pc

Should it be in a different location?  Do I need to set some env variable to put to the location?
If I manually copy the pc files into /usr/share/pkgconfig/ then the failure goes away, but this is definitely not what the README recommends for that project.

@netllama On Fedora, you need to place the ipu6-camera-bins in /usr/lib64/

If I manually copy the pc files into /usr/share/pkgconfig/ then the failure goes away, but this is definitely not what the README recommends for that project.

Well, the README for that project is not great. AFAICT, the pkgconfig directory is distro-specific. Anyway, it's a problem in the intel/ipu6-camera-bins repo, not here.

You should try installing pkgconf first. Some distros might require it. Arch/Manjaro does at least.

same issue here installing via pacman on spectre x360 2024 metor lake arch linux zen karnel
uname -r
6.11.6-zen1-1-zen

-- Checking for module 'ia_imaging'
--   Package 'ia_imaging', required by 'virtual:world', not found
-- Could NOT find IA_IMAGING (missing: IA_IMAGING_LIBS)
CMake Error at cmake/FindIA_IMAGING.cmake:90 (message):
  IA_IMAGING not found
Call Stack (most recent call first):
  CMakeLists.txt:332 (find_package)

-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: intel-ipu6-camera-hal-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
intel-ipu6-camera-hal-git - exit status 4

I do have aur/intel-ipu6-camera-bin aur/intel-ipu6-dkms-git installed but I can't install any of aur/intel-ipu6ep-camera-hal-git aur/intel-ipu6-camera-hal-git

Same as 👆🏼 on Arch Linux mainline kernel:
❯ uname -r
6.12.4-arch1-1


potential dataframe apply bug

I seem to have a weird problem with DataFrame.apply(.., axis=1) not matching the axes/columns correctly, ONLY if there's a time column in the dataframe?
See details here: http://nbviewer.ipython.org/gist/anonymous/a0bcaa95a48327fadc63
but basically I try to apply this:
def combine_binning_data(row):
    return tuple(int(row[col]) for col in [0,1,2])

to the dataframe.And if there's another axis with time I get this error:
ValueError: Shape of passed values is (5, 3), indices imply (5, 5)

Version: '0.16.2-15-g2fea54a'

You probably want something like this.
In [41]: np.rint(df.loc[:,[0,1,2,3]])
Out[41]:
   0  1  2  3
0  0  2 -1  1
1 -1  0  0 -2
2  1  1 -2  1
3  0  2  1 -0
4  0 -2 -1  2

If you defined like this would works as well (but would be generally slower than the above)
In [44]: def combine_binning_data2(row):
    return Series(int(row[col]) for col in [0,1,2,3])
   ....:

In [46]: df.apply(combine_binning_data2,axis=1)
Out[46]:
   0  1  2  3
0  0  1 -1  1
1  0  0  0 -1
2  0  0 -1  1
3  0  1  1  0
4  0 -2  0  1

You are returning a tuple from the apply, which is then interpreted as a Series. Not sure how otherwise would be able to infer the correct results here. Not a bug, rather an ambiguous return from an apply.

But why does it suddenly work when I just make the timeseries the index of the dataframe? (see last cell in the linked notebook).


Introduce of the deprecated FG: MergeCLIArgumentsWithConfig

The feature gate is added by this change: https://github.com/kubernetes/kubernetes/pull/119946
Also see the link for the comments: https://github.com/kubernetes/kubernetes/pull/119946#discussion_r1360184126

/cc @pacoxu @neolit123

/sig cluster-lifecycle

thanks @windsonsea and @neolit123  for the comments, all comments was applied in the new PR: https://github.com/kubernetes/website/pull/43515


Manually deleted /.venv/ path in project folder breaks startup permanently without providing a guide

Type: Bug

I previously had a .venv folder that was made in the root of my project.
I deleted that .venv folder from my project root, after realizing that I needed to use the real Python local environment in my particular case for concurrency testing of a project (which needed native libs and local environment for concurrency performance testing with locust and psycopg).
After deleting the .venv folder, I now get an error starting the extension I think whenever I open the project and click on a .py file:

Sorry, something went wrong activating IntelliCode support for Python. Please check the "Python" and "VS IntelliCode" output windows for details.

and when inspecting the Python output window as requested, I can see the following error:
2024-12-14 08:24:55.669 [info] Experiment 'pythonaacf' is active
2024-12-14 08:24:55.669 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-12-14 08:24:55.669 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-12-14 08:24:55.669 [info] Experiment 'pythonTestAdapter' is active
2024-12-14 08:24:55.669 [info] Native locator: Refresh started
2024-12-14 08:24:55.669 [info] Native locator: Refresh started
2024-12-14 08:24:55.669 [info] > pyenv which python
2024-12-14 08:24:55.669 [info] cwd: .
2024-12-14 08:24:56.185 [info] Native locator: Refresh finished in 1131 ms
2024-12-14 08:24:56.190 [error] [
  'getActivatedEnvironmentVariables, Class name = M, completed in 120ms, has a falsy return value, Arg 1: <Uri:f:\\GitHubRepos\\various-text-projects>, Arg 2: undefined, Arg 3: undefined, Arg 4: "C:\\\\Program Files\\\\PowerShell\\\\7\\\\pwsh.exe"',
  [l [Error]: Failed to resolve env "f:\\GitHubRepos\\various-text-projects\\.venv\\Scripts\\python.exe"

Upon inspecting further this morning, I looked into my Code - Insiders/User/globalStorage/ms-python.python/pythonLocator folder and saw the latest JSON still having the setting for the \.venv\ folder that I had manually deleted:
{
  "environment": {
    "executable": "F:\\GitHubRepos\\various-text-projects\\.venv\\Scripts\\python.exe",
    "prefix": "F:\\GitHubRepos\\various-text-projects\\.venv",
    "version": "3.13.0.final.0",
    "is64Bit": true,
    "symlinks": [
      "F:\\GitHubRepos\\various-text-projects\\.venv\\Scripts\\python.exe"
    ]
  },
  "symlinks": [
    [
      "F:\\GitHubRepos\\various-text-projects\\.venv\\Scripts\\python.exe",
      {
        "secs_since_epoch":<PHONE_NUMBER>,
        "nanos_since_epoch": 0
      },
      {
        "secs_since_epoch":<PHONE_NUMBER>,
        "nanos_since_epoch": 347269600
      }
    ]
  ]
}

Expected Handling
Rather than having the "Reactivating Terminals..." notification stay in a busy loop, I would have expected that upon starting the extension, that I would get a WARNING notification that would say something like:

Could not find Python in the environment prefix F:\\GitHubRepos\\various-text-projects\\.venv.  Perhaps the environment was relocated, or you have deleted it?  Click to choose the new environment path where your Python executable is located to update your user/workspace setting.

It seems like there should be more done under https://github.com/microsoft/vscode-python/blob/2c801b8d173813c248f7ab80d3b6156e451b4508/src/client/terminals/envCollectionActivation/indicatorPrompt.ts#L45 or perhaps earlier directly inside getActivatedEnvironmentVariables ?
I would not expect the Python extension to automatically change to PYTHONHOME if found, but it would be nice perhaps for it to offer that as a further suggestion:

Could not find Python in the environment prefix F:\\GitHubRepos\\various-text-projects\\.venv.  Perhaps the environment was relocated, or you have deleted it?  Click to choose the new environment path where Python executable is located or Choose to use existing PYTHONHOME that was found.

Extension version: 2024.23.2024121201
VS Code version: Code - Insiders 1.97.0-insider (b425f4802fcbcccb11ad991208fa262c06255be3, 2024-12-13T05:04:19.453Z)
OS version: Windows_NT x64 10.0.26100
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: enabled_ondirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_graphite: disabled_offvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: enabledwebnn: disabled_off

Load (avg)
undefined

Memory (System)
63.93GB (48.00GB free)

Process Argv
--crash-reporter-id 96284b49-7b08-4321-89ff-d2d541197ff3

Screen Reader
no

VM
0%

A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
vsaa593cf:30376535
py29gd2263:31024238
c4g48928:30535728
2i9eh265:30646982
962ge761:30841072
pythonnoceb:30776497
dsvsc014:30777825
dsvsc015:30821418
pythonmypyd1:30859725
h48ei257:31000450
pythontbext0:30879054
cppperfnew:30980852
pythonait:30973460
dvdeprecation:31040973
dwnewjupytercf:31046870
nativerepl1:31134653
pythonrstrctxt:31093868
nativeloc1:31118317
cf971741:31144450
e80f6927:31120813
iacca1:31150324
notype1:31143044
dwcopilot:31158714
h409b430:31177054
cf1a2727:31183122
5b1c1929:31184661

@thadguidry Can you share the Logs from Output > Python Locator? Just to make sure that deleted .venv is getting picked up even though venv is deleted.

@karthiknadig if the file has been deleted/not found, then shouldn't Python extension not try to resolve this using PET?

The issue here is pet reported a deleted environment. If environment is set by path, Python extension tries to resolve it and will get undefined. In this case, pet reported an environment will all the details, so python extension assumed it exists.
pet is reporting from its cache. I don't think we need to validate if the values are accurate, but I think pet might have to do an existence check to ensure that the report env exists.


Configure flexboxes for responsive design

I need to create a responsive design that flows between large screens and mobile screens flawlessly.

I have extensively worked on the large screen side of the flexboxes and responsive layout, I will begin tweaking screen size after I finish the last section's rough basic set up.

I was able to create a small desktop, tablet and phone variant for the responsive design.


Switch to instructing setup using central config file repository (recipes)

Description
Local node and local federation setup instructions should be updated to use config files from the newly created https://github.com/neurobagel/recipes instead of repo-specific files.
Relevant documentation pages
No response
Additional details
No response
TODO:

[ ] https://neurobagel.org/infrastructure/#clone-the-api-repo should instead point to recipes

Related to https://github.com/neurobagel/recipes/issues/9

@alyssadai I think we already have this for the local federation, no: https://neurobagel.org/federate/#configuration-files or is there something else to be done for that? If not, let's rename issue to -> "switch node deployment to use recipes" or something similar

You're right! It's only the node setup page that needs to be updated.
Issue description has been updated.


[image_picker_for_web] Add support for picking multiple image , and store name and other properties in XFile

Add support for picking multiple image , and store name and other properties in XFile
https://github.com/flutter/flutter/issues/86525
https://github.com/flutter/flutter/issues/58764
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist

[X] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[X] I read the Tree Hygiene wiki page, which explains my responsibilities.
[X] I read and followed the relevant style guides and ran the auto-formatter. (Note that unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[X] I signed the CLA.
[X] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[X] I listed at least one issue that this PR fixes in the description above.
[X] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[X] I updated CHANGELOG.md to add a description of the change.
[X] I updated/added relevant documentation (doc comments with ///).
[X] I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@ditman  can you please review this

Ohhh, thanks @balvinderz! Definitely a very requested feature! Thanks for the contribution, I'll review right away!

(Check file_selector_web, btw, there's probably a good example there!)

Tests are failing with:
LateInitializationError: Field 'getMultipleFilesFromInput' has not been initialized.

Please run the tests in your machine ;)

This is looking great! I'll give this a quick test in my box and have it ready to merge by EOD. Thanks for the contribution @balvinderz! Keep them coming!

@googlebot I consent.

Published: https://pub.dev/packages/image_picker_for_web/changelog#211


Tabs title text overflows

Release: v1.0.0-alpha.2
OS: OS X v10.10.5
With multiple tabs opened the title text overflows, same thing happens when you resize the application window (no constraints). The Settings tab is a special case since it has an icon before the text.

:+1: thanks @kinduff


fix(http): normalize headers to all-lowercase keys

Current dependencies on/for this PR:

main

PR #37   👈

This comment was auto-generated by Graphite.


[Improve][doc] Insist about default behaviour for retention.

I was looking for the default and I didn't notice that over was properly mentioned.
Motivation
Small improvement to remind about the default behaviour.
Modifications
Simple modification.
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] Anything that affects deployment

Documentation

[ X ] doc
[ ] doc-required
[ ] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: https://github.com/AlvaroStream/pulsar/tree/patch-6

@AlvaroStream thanks for your contribution. Could you please help whether docs in other releases also need to be updated? Thanks.

@AlvaroStream .md doc PR does not need this
https://github.com/apache/pulsar/blob/2dfdf44dd9a19cf0cc255f874fced45529487350/.github/changes-filter.yaml#L9


hitting remote at each endpoint value change bogs page down

Describe the bug
It seems that the RPC fetch method(s) are called every time the value in the input field changes.

This gets really boggy for me.
Expected behavior
Set (finalize) the endpoint value when I hit Return.
Desktop (please complete the following information):

OS: linux
Browser firefox
Version 96e603ef6a9f982455fb9166177f5e61b8c3a215

Just bumping. As the user types, we can expect that, for example, http://loca is not going to work because it isn't a valid FQDN. I would propose validating the endpoint before attempting to hit it, saving a lot of predictable failures.


How to report security vulnerabilities which are not novel?

Describe the bug
The policy at https://github.com/opensearch-project/.github/edit/main/SECURITY.md assumes that the person is reporting a novel security defect. I agree that novel security defect reporting should follow a process like that.
What if we want to call out that there's been a CVE in a dependency that this repository takes, and ask that the library be upgraded?
To Reproduce
My company's security team thinks this is insecure software because it brings Dependency Foo v1.2.3
I'm unsure whether I can mention that in this issue tracker
Expected behavior
If it's already on the nvd.nist.gov , I should just create an issue. Or a PR if I'm so inclined.

We are doing some "spring cleaning in the fall", and to make sure we focus our energies on the right issues and we get a better picture of the state of the repo, we are closing all issues that we are carrying over from the ODFE era (ODFE is no longer supported/maintained, see post here).
If you believe this issue should still be considered for current versions of OpenSearch, apologies! Please let us know by re-opening it.
Thanks!

@cjcjameson This is a great question, we've got the codebase configured with dependabot to file issues, for example see CVE-2022-38751 (Medium) detected in snakeyaml-1.31.jar - https://github.com/opensearch-project/security/issues/2071
If you know about an issue in a dependency that can be updated we are happy to receive pull requests to resolve these issues, thanks for the contribution you made in https://github.com/opensearch-project/security/pull/1210
If there isn't a clear path forward please use caution and use AWS/Amazon Security vulnerability reporting page or directly via email to<EMAIL_ADDRESS>- it will get to us with urgency so we can figure out how to best respond.


chore: remove unused deps

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

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

Totals

Change from base Build<PHONE_NUMBER>4:
0.0%

Covered Lines:
6451

Relevant Lines:
7326

💛  - Coveralls


❌ Create  appropriate government design system pages for errors (404/500)

User Story
As a… User of the Portal
I need/want/expect to… see a branded 404 page when I navigate to an incorrect url
So that…
Value / Purpose
No response
Useful Contacts
No response
Additional Information
No response
Definition of Done
No response

Replace the default ruby error page(s) and replace with Government design system variants.
Examples:
https://design-system.service.gov.uk/patterns/page-not-found-pages/

Created a branch for this piece of work, further investigation needs to be performed on the routing.


[BUG] recommenders==0.7.0 failed to install on Azure Databricks Runtime version 7.3 LTS

Description

recommenders 0.7.0 failed to be installed on Azure Databricks runtime version 7.3 LTS with the error:
java.lang.RuntimeException: ManagedLibraryInstallFailed: org.apache.spark.SparkException: Process List(/databricks/python/bin/pip, install, recommenders==0.7.0, --disable-pip-version-check) exited with code 2. ERROR: Exception:
Traceback (most recent call last):
  File "/databricks/python3/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 186, in _main
    status = self.run(options, args)
  File "/databricks/python3/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 331, in run
    resolver.resolve(requirement_set)
  File "/databricks/python3/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 177, in resolve
    discovered_reqs.extend(self._resolve_one(requirement_set, req))
  File "/databricks/python3/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one
    abstract_dist = self._get_abstract_dist_for(req_to_install)
  File "/databricks/python3/lib/python3.7/site-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for
    abstract_dist = self.preparer.prepare_linked_requirement(req)
  File "/databricks/python3/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 516, in prepare_linked_requirement
    req, self.req_tracker, self.finder, self.build_isolation,
  File "/databricks/python3/lib/python3.7/site-packages/pip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution
    abstract_dist.prepare_distribution_metadata(finder, build_isolation)
  File "/databricks/python3/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 38, in prepare_distribution_metadata
    self._setup_isolation(finder)
  File "/databricks/python3/lib/python3.7/site-packages/pip/_internal/distributions/sdist.py", line 96, in _setup_isolation
    reqs = backend.get_requires_for_build_wheel()
  File "/databricks/python3/lib/python3.7/site-packages/pip/_vendor/pep517/wrappers.py", line 152, in get_requires_for_build_wheel
    'config_settings': config_settings
  File "/databricks/python3/lib/python3.7/site-packages/pip/_vendor/pep517/wrappers.py", line 255, in _call_hook
    raise BackendUnavailable(data.get('traceback', ''))
pip._vendor.pep517.wrappers.BackendUnavailable: Traceback (most recent call last):
  File "/databricks/python3/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 63, in _build_backend
    obj = import_module(mod_path)
  File "/databricks/python3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/local/lib/python3.7/dist-packages/setuptools/__init__.py", line 5, in <module>
    import distutils.core
  File "/tmp/pip-build-env-vdzjm90b/overlay/lib/python3.7/site-packages/_distutils_hack/__init__.py", line 92, in create_module
    return importlib.import_module('setuptools._distutils')
  File "/databricks/python3/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'setuptools._distutils'

 for library:PythonPyPiPkgId(recommenders,Some(0.7.0),None,List()),isSharedLibrary=false
Done

In which platform does it happen?

Azure Databricks Runtime version 7.3 LTS
How do we replicate the issue?

Install it in a cluster with Databricks runtime version 7.3 LTS (includes Apache Spark 3.0.1, Scala 2.12).

Expected behavior (i.e. solution)

Other Comments

And it failed to install on ADB 9.1+ either with the following error:
java.lang.RuntimeException: ManagedLibraryInstallFailed: org.apache.spark.SparkException: Process List(/databricks/python/bin/pip, install, recommenders==0.7.0, --disable-pip-version-check) exited with code 1.
ERROR: Could not find a version that satisfies the requirement recommenders==0.7.0
ERROR: No matching distribution found for recommenders==0.7.0
 for library:PythonPyPiPkgId(recommenders,Some(0.7.0),None,List()),isSharedLibrary=false

@simonzhaoms this is fixed, right?

The new version 1.0.0 now works


Revert "Dev"

Reverts SophiaAramburu/CodingFuel#27

merge conflict didn't work, need a clean main


I is Donald Trump?

This line

I is Donald Trump it time to tell you a fact

should be

I am Donald Trump its time to tell you a fact

https://github.com/samshadwell/TrumpScript/blob/master/test/test_files/trump_vs_army.txt

The language currently does not support the am token.

I feel an "am" PR coming on.

See a76f078


how can I find what is "Error 4848689:"

how can I find what is "Error 4848689:"

How do you get this? As far as I know, known exception code in EOS is from 0-21, and in the range of 3xxxxxx


Add home link to logo

Would you like to work on this issue?

Yes

Alright! I'll assign this to you!

Hey, I am interested in working on this task!

Hey, I am interested in working on this task!

I extremely sorry @AngeloTree, but the issue is already assigned to @Khyati41.
You can check out other issues on any of these repos which are not assigned to anyone yet:

https://github.com/Dharmik48/notes-react-firebase-v2.0/issues
https://github.com/Dharmik48/todo-list-app/issues

why this issue is still not resolved ?

why this issue is still not resolved ?

Oh, my bad😅 I forgot to close this issue, Thanks for the reminder!


Errors in running with tf 1.0.0 (DDPG)

Hi,
I am trying to run your code with tf 1.0.0, beside some changes like mul to multiply I have the following error:
ddpg$ python pendulum_ddpg.py --device=cpu --episodes=300
Namespace(device='cpu', episodes=300, log_dir='/tmp/pendulum-log-0')
[2017-04-04 20:02:25,839] Making new env: Pendulum-v0
Traceback (most recent call last):
File "pendulum_ddpg.py", line 95, in
critic = CriticNetwork(state_size=STATE_SIZE, action_size=ACTION_SIZE, lr=CRITIC_LEARNING_RATE, tau=TAU)
File "/home/amir-ai/DDPG-Codes/stormmax-TF-VERSION-MISMACH/reinforcement_learning-master/ddpg/critic.py", line 27, in init
self.input_s, self.action, self.critic_variables, self.q_value = self._build_network("critic")
File "/home/amir-ai/DDPG-Codes/stormmax-TF-VERSION-MISMACH/reinforcement_learning-master/ddpg/critic.py", line 44, in _build_network
layer_2 = tf_utils.fc(tf.concat(1, (layer_1, action)), self.n_h2, scope="fc2", activation_fn=tf.nn.relu,
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_ops.py", line 1029, in concat
dtype=dtypes.int32).get_shape(
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 637, in convert_to_tensor
as_ref=False)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 702, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/constant_op.py", line 110, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/constant_op.py", line 99, in constant
tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 367, in make_tensor_proto
_AssertCompatible(values, dtype)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 302, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.
Could you tell me how to fix? and what is your tf version and if you have upgraded to tf 1.0.0?
Thanks,

I fixed that one (concat function)
Now I have the following error:
python pendulum_ddpg.py --device=cpu --episodes=300
Namespace(device='cpu', episodes=300, log_dir='/tmp/pendulum-log-0')
[2017-04-04 23:28:15,843] Making new env: Pendulum-v0
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
WARNING:tensorflow:From pendulum_ddpg.py:102: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use tf.global_variables_initializer instead.
[2017-04-04 23:28:16,400] From pendulum_ddpg.py:102: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use tf.global_variables_initializer instead.
====evaluation====
Traceback (most recent call last):
File "pendulum_ddpg.py", line 104, in
train(agent, env, sess)
File "pendulum_ddpg.py", line 69, in train
env.render()
File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 174, in render
return self._render(mode=mode, close=close)
File "/usr/local/lib/python2.7/dist-packages/gym/envs/classic_control/pendulum.py", line 66, in _render
from gym.envs.classic_control import rendering
File "/usr/local/lib/python2.7/dist-packages/gym/envs/classic_control/rendering.py", line 23, in
from pyglet.gl import *
File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/init.py", line 236, in
import pyglet.window
File "/usr/local/lib/python2.7/dist-packages/pyglet/window/init.py", line 1817, in
gl._create_shadow_window()
File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/init.py", line 205, in _create_shadow_window
_shadow_window = Window(width=1, height=1, visible=False)
File "/usr/local/lib/python2.7/dist-packages/pyglet/window/xlib/init.py", line 163, in init
super(XlibWindow, self).init(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/pyglet/window/init.py", line 505, in init
config = screen.get_best_config(template_config)
File "/usr/local/lib/python2.7/dist-packages/pyglet/canvas/base.py", line 161, in get_best_config
configs = self.get_matching_configs(template)
File "/usr/local/lib/python2.7/dist-packages/pyglet/canvas/xlib.py", line 179, in get_matching_configs
configs = template.match(canvas)
File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/xlib.py", line 29, in match
have_13 = info.have_version(1, 3)
File "/usr/local/lib/python2.7/dist-packages/pyglet/gl/glx_info.py", line 89, in have_version
client = [int(i) for i in client_version.split('.')]
ValueError: invalid literal for int() with base 10: 'None'

Hi,
Thanks for the feedback. I just tried the lasted version of the code on my machine, and it runs properly. So, I think it is probably due to version mismatches. My Tensorflow version: '0.12.1', gym version:  0.8.0. Hope that helps!
Regards,

Thanks, I downgraded tensorflow to  0.12.1, but the previous problem still was there (ValueError: invalid literal for int() with base 10: 'None'). After some searching in the net, there was a solution about changing the place of gym.render(), to put it before tensorflow initialization. So I followed that soluytion by adding
env = gym.make('Pendulum-v0')
env = wrappers.Monitor(env, '/tmp/pendulum-experiment-0', force=True)
env.reset()
env.render()
actor = ActorNetwork(state_size=STATE_SIZE, action_size=ACTION_SIZE, lr=ACTOR_LEARNING_RATE, tau=TAU)
now it shows the gym window for a second and I have the following new error:
ddpg$ python pendulum_ddpg.py --device=gpu --episodes=300
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so locally
Namespace(device='gpu', episodes=300, log_dir='/tmp/pendulum-log-0')
[2017-04-05 18:06:47,174] Making new env: Pendulum-v0
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:885] Found device 0 with properties:
name: GeForce GTX 1080
major: 6 minor: 1 memoryClockRate (GHz) 1.898
pciBusID 0000:01:00.0
Total memory: 7.92GiB
Free memory: 60.06MiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:906] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 0:   Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0)
E tensorflow/stream_executor/cuda/cuda_driver.cc:1002] failed to allocate 60.06M (62980096 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY
E tensorflow/stream_executor/cuda/cuda_driver.cc:1002] failed to allocate 54.06M (56682240 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY
E tensorflow/stream_executor/cuda/cuda_driver.cc:1002] failed to allocate 48.65M (51014144 bytes) from device: CUDA_ERROR_OUT_OF_MEMORY
WARNING:tensorflow:From pendulum_ddpg.py:106 in .: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use tf.global_variables_initializer instead.
[2017-04-05 18:06:48,658] From pendulum_ddpg.py:106 in .: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use tf.global_variables_initializer instead.
====evaluation====
E tensorflow/stream_executor/cuda/cuda_blas.cc:372] failed to create cublas handle: CUBLAS_STATUS_NOT_INITIALIZED
W tensorflow/stream_executor/stream.cc:1390] attempting to perform BLAS operation using StreamExecutor without BLAS support
Traceback (most recent call last):
File "pendulum_ddpg.py", line 108, in
train(agent, env, sess)
File "pendulum_ddpg.py", line 72, in train
action = agent.get_action(cur_state, sess)[0]
File "/home/amir-ai/DDPG-Codes/stormmax-TF-VERSION-MISMACH/reinforcement_learning-master/ddpg/ddpg.py", line 35, in get_action
action = self.actor.get_action(state, sess) * self.action_bound
File "/home/amir-ai/DDPG-Codes/stormmax-TF-VERSION-MISMACH/reinforcement_learning-master/ddpg/actor.py", line 52, in get_action
return sess.run(self.action_values, feed_dict={self.input_s: state})
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 766, in run
run_metadata_ptr)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 964, in _run
feed_dict_string, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1014, in _do_run
target_list, options, run_metadata)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py", line 1034, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InternalError: Blas SGEMM launch failed : a.shape=(1, 3), b.shape=(3, 400), m=1, n=400, k=3
[[Node: actor/fc1/MatMul = MatMul[T=DT_FLOAT, transpose_a=false, transpose_b=false, _device="/job:localhost/replica:0/task:0/gpu:0"](_recv_Placeholder_0/_1, actor/fc1/W/read)]]
Caused by op u'actor/fc1/MatMul', defined at:
File "pendulum_ddpg.py", line 98, in
actor = ActorNetwork(state_size=STATE_SIZE, action_size=ACTION_SIZE, lr=ACTOR_LEARNING_RATE, tau=TAU)
File "/home/amir-ai/DDPG-Codes/stormmax-TF-VERSION-MISMACH/reinforcement_learning-master/ddpg/actor.py", line 28, in init
self.input_s, self.actor_variables, self.action_values = self._build_network("actor")
File "/home/amir-ai/DDPG-Codes/stormmax-TF-VERSION-MISMACH/reinforcement_learning-master/ddpg/actor.py", line 42, in _build_network
initializer=tf.contrib.layers.variance_scaling_initializer(mode="FAN_IN"))
File "/home/amir-ai/DDPG-Codes/stormmax-TF-VERSION-MISMACH/reinforcement_learning-master/ddpg/tf_utils.py", line 49, in fc
fc1 = tf.add(tf.matmul(x, W), b)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/math_ops.py", line 1729, in matmul
a, b, transpose_a=transpose_a, transpose_b=transpose_b, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_math_ops.py", line 1442, in _mat_mul
transpose_b=transpose_b, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 759, in apply_op
op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2240, in create_op
original_op=self._default_original_op, op_def=op_def)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1128, in init
self._traceback = _extract_stack()
InternalError (see above for traceback): Blas SGEMM launch failed : a.shape=(1, 3), b.shape=(3, 400), m=1, n=400, k=3
[[Node: actor/fc1/MatMul = MatMul[T=DT_FLOAT, transpose_a=false, transpose_b=false, _device="/job:localhost/replica:0/task:0/gpu:0"](_recv_Placeholder_0/_1, actor/fc1/W/read)]]

The code should be fast enough to run on CPU, so I haven't fully tested it on GPU. Could you try:
$ python pendulum_ddpg.py --device=cpu --episodes=300

I tried with cpu parameter but it freezes after the first episode (the pendulum freezes and does not move at all)
ddpg$ python pendulum_ddpg.py --device=cpu --episodes=300
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:128] successfully opened CUDA library libcurand.so locally
Namespace(device='cpu', episodes=300, log_dir='/tmp/pendulum-log-0')
[2017-04-06 12:11:22,435] Making new env: Pendulum-v0
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:937] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_device.cc:885] Found device 0 with properties:
name: GeForce GTX 1080
major: 6 minor: 1 memoryClockRate (GHz) 1.898
pciBusID 0000:01:00.0
Total memory: 7.92GiB
Free memory: 6.64GiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:906] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 0:   Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX 1080, pci bus id: 0000:01:00.0)
WARNING:tensorflow:From pendulum_ddpg.py:106 in .: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use tf.global_variables_initializer instead.
[2017-04-06 12:11:23,874] From pendulum_ddpg.py:106 in .: initialize_all_variables (from tensorflow.python.ops.variables) is deprecated and will be removed after 2017-03-02.
Instructions for updating:
Use tf.global_variables_initializer instead.
====evaluation====
Episode 0 finished after 10000 timesteps, cum_reward: -55652.0191741
[-0.22457573]
Episode 1 finished after 10000 timesteps, cum_reward: -75135.8944072
[-2.]

Okay, this time I tested with tf 0.12.1 and this is what happens that after that pendulum freezes:
This happens after first episode finishes
action:  [-0.38487354]
action:  [-0.58512461]
action:  [-0.81554598]
action:  [-1.0566802]
action:  [-1.27760756]
action:  [-1.46067202]
action:  [-1.59311712]
action:  [-1.67671788]
action:  [-1.72090757]
action:  [-1.73762679]
action:  [-1.73265874]
action:  [-1.71370041]
action:  [-1.68674815]
action:  [-1.65958309]
action:  [-1.64037359]
action:  [-1.63696158]
action:  [-1.65651488]
action:  [-1.70190346]
action:  [-1.76903963]
action:  [-1.84198368]
action:  [-1.90575802]
action:  [-1.95135677]
action:  [-1.97490346]
action:  [-1.97858274]
action:  [-1.98142064]
action:  [-1.98368716]
action:  [-1.98556185]
action:  [-1.98717892]
action:  [-1.98716283]
action:  [-1.98500359]
action:  [-1.98137581]
action:  [-1.9767555]
action:  [-1.97258258]
action:  [-1.97108066]
action:  [-1.97373033]
action:  [-1.98009074]
action:  [-1.98741102]
action:  [-1.9933573]
action:  [-1.99607182]
action:  [-1.99608123]
action:  [-1.99596763]
action:  [-1.99573469]
action:  [-1.99543393]
action:  [-1.99506128]
action:  [-1.99464703]
action:  [-1.99291754]
action:  [-1.98933053]
action:  [-1.9835906]
action:  [-1.97565043]
action:  [-1.96708775]
action:  [-1.96103573]
action:  [-1.96053863]
action:  [-1.96625841]
action:  [-1.97501588]
action:  [-1.98391533]
action:  [-1.98527539]
action:  [-1.98313618]
action:  [-1.98025417]
action:  [-1.97664547]
action:  [-1.97202492]
action:  [-1.96572077]
action:  [-1.95563447]
action:  [-1.93450117]
action:  [-1.89873874]
action:  [-1.84621942]
action:  [-1.77909195]
action:  [-1.70402038]
action:  [-1.6371218]
action:  [-1.5946933]
action:  [-1.5829283]
action:  [-1.59469318]
action:  [-1.61972153]
action:  [-1.61004293]
action:  [-1.54189277]
action:  [-1.45627677]
action:  [-1.34555471]
action:  [-1.20569563]
action:  [-1.00605762]
action:  [-0.72520745]
action:  [-0.3912178]
action:  [-0.07667994]
action:  [ 0.18435697]
action:  [ 0.37708578]
action:  [ 0.51098329]
action:  [ 0.60057694]
action:  [ 0.65180397]
action:  [ 0.68357408]
action:  [ 0.70951432]
action:  [ 0.73351908]
action:  [ 0.75949579]
action:  [ 0.79375297]
action:  [ 0.83251274]
action:  [ 0.87939984]
action:  [ 0.92684138]
action:  [ 0.97185111]
action:  [ 1.00252771]
action:  [ 1.02369118]
action:  [ 1.00792813]
action:  [ 0.95578331]
action:  [ 0.88404506]
action:  [ 0.82539588]
action:  [ 0.78419346]
action:  [ 0.78334504]
action:  [ 0.81200349]
action:  [ 0.86788136]
action:  [ 0.92905474]
action:  [ 0.97647309]
action:  [ 0.99297351]
action:  [ 0.96735859]
action:  [ 0.93084317]
action:  [ 0.8875975]
action:  [ 0.81204742]
action:  [ 0.79363471]
action:  [ 1.02052164]
action:  [ 1.35935426]
action:  [ 1.61784327]
action:  [ 1.79163611]
action:  [ 1.89111602]
action:  [ 1.94083798]
action:  [ 1.96616757]
action:  [ 1.97830093]
action:  [ 1.98398387]
action:  [ 1.98623013]
action:  [ 1.98631179]
action:  [ 1.98480928]
action:  [ 1.98189127]
action:  [ 1.97826815]
action:  [ 1.97501874]
action:  [ 1.97361243]
action:  [ 1.97572136]
action:  [ 1.97990203]
action:  [ 1.98507261]
action:  [ 1.99011946]
action:  [ 1.99396443]
action:  [ 1.99455035]
action:  [ 1.99296224]
action:  [ 1.99068594]
action:  [ 1.98807061]
action:  [ 1.98595035]
action:  [ 1.98530626]
action:  [ 1.98528695]
action:  [ 1.98346519]
action:  [ 1.98060811]
action:  [ 1.97691739]
action:  [ 1.97351575]
action:  [ 1.9722482]
action:  [ 1.97382843]
action:  [ 1.97611487]
action:  [ 1.97956145]
action:  [ 1.98336875]
action:  [ 1.986444]
action:  [ 1.9806993]
action:  [ 1.97140777]
action:  [ 1.95837748]
action:  [ 1.94567227]
action:  [ 1.93882847]
action:  [ 1.93858933]
action:  [ 1.93789995]
action:  [ 1.93274581]
action:  [ 1.92830551]
action:  [ 1.92740154]
action:  [ 1.9273324]
action:  [ 1.93111682]
action:  [ 1.93600786]
action:  [ 1.93999004]
action:  [ 1.94363165]
action:  [ 1.94912708]
action:  [ 1.95295501]
action:  [ 1.93292546]
action:  [ 1.90727019]
action:  [ 1.88904953]
action:  [ 1.89442289]
action:  [ 1.91993606]
action:  [ 1.9498384]
action:  [ 1.96711516]
action:  [ 1.97814608]
action:  [ 1.98521984]
action:  [ 1.98939979]
action:  [ 1.99217319]
action:  [ 1.9946909]
action:  [ 1.99650586]
action:  [ 1.99780178]
action:  [ 1.99874425]
action:  [ 1.99934912]
action:  [ 1.9995091]
action:  [ 1.99936557]
action:  [ 1.99916399]
action:  [ 1.99899232]
action:  [ 1.99903393]
action:  [ 1.99927819]
action:  [ 1.99958563]
action:  [ 1.99972272]
action:  [ 1.9997716]
action:  [ 1.99978769]
action:  [ 1.99979842]
action:  [ 1.99982417]
action:  [ 1.99987042]
action:  [ 1.99991739]
action:  [ 1.99995863]
action:  [ 1.99998248]
action:  [ 1.9999938]
action:  [ 1.99999297]
action:  [ 1.99998903]
action:  [ 1.99998438]
action:  [ 1.99998116]
action:  [ 1.99998295]
action:  [ 1.99998915]
action:  [ 1.99999344]
action:  [ 1.99999428]
action:  [ 1.99999368]
action:  [ 1.99999273]
action:  [ 1.99999118]
action:  [ 1.99999094]
action:  [ 1.99999356]
action:  [ 1.9999963]
action:  [ 1.99999821]
action:  [ 1.99999964]
action:  [ 2.]
action:  [ 1.99999976]
action:  [ 1.99999952]
action:  [ 1.99999928]
action:  [ 1.99999905]
action:  [ 1.99999928]
action:  [ 1.99999952]
action:  [ 1.99999976]
action:  [ 1.99999964]
action:  [ 1.99999928]
action:  [ 1.99999905]
action:  [ 1.99999905]
action:  [ 1.99999869]
action:  [ 1.99999905]
action:  [ 1.9999994]
action:  [ 1.99999964]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.00000024]
action:  [ 1.99999964]
action:  [ 1.99999988]
action:  [ 1.99999988]
action:  [ 2.]
action:  [ 2.]
action:  [ 1.99999964]
action:  [ 1.99999988]
action:  [ 1.99999976]
action:  [ 1.99999976]
action:  [ 1.99999952]
action:  [ 1.99999976]
action:  [ 1.99999964]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 2.]
action:  [ 1.99999964]
action:  [ 2.]
action:  [ 2.]

It seems that you are using different version of gym as mine. But I made an update to the code that might solve this problem. Please check the last pendulum_ddpg.py.

Okay, your change in the code made it better and helped me to understand what was my issue with the code. The following link is a video captured from the screen after changing max_step to 200, as you can see it freezed (it still processing though):
https://drive.google.com/file/d/0Bwsg0i6pm8bSOXIxWHZlVTNidHM/view
and this one is after I added the render after the else and it solved my misunderstanding:
https://drive.google.com/file/d/0Bwsg0i6pm8bSbTlsUVpkVU5nMzg/view
for t in xrange(MAX_STEPS):
  if (i % EVALUATE_EVERY) == 0:
    env.render()
    action = agent.get_action(cur_state, sess)[0]
  else:
    **env.render()**

Both of them work correctly.
Thanks for your code and help.


need a precompiler bot running with --vm-options=--obfuscate

We are getting customers using obfuscation so we need to ensure that our obfuscation code does not regress.

The first build was bright red, though:
https://ci.chromium.org/p/dart/builders/luci.dart.try/vm-kernel-precomp-obfuscate-linux-release-x64-try/1

I don't think dartkp-obfuscate is doing what it should be doing:
$ python tools/test.py -m release -n dartkp-obfuscate-linux-release-x64 co19/Language/Errors_and_Warnings/static_warning_t01

Test configuration:
    custom configuration(architecture: x64, compiler: none, mode: release, runtime: vm, system: linux, vm-options: [], timeout: null, preview-dart-2)

Note that in custom configuration compiler is none and runtime is vm (I should be dart_precompiled).

Any updates here?

The bot is running and working (as in, running all tests, but it isn't green) since the last commit, referenced above.


Added near meridian constraint

Created NearMeridianContraint, that can be useful for observations using German-Equatorial Mounts, to avoid flipping the side of pier during exposures.

Hello, @bmorris3 . Thanks for the suggestion, it was indeed a needed change. I have it fixed.


Linux support

Hi,
Building the project on Linux results in the following error:
root@920cdbd9ccb8:/swift-protobuf# swift build
Compile Swift Module 'SwiftProtobuf' (35 sources)
Compile Swift Module 'PluginLibrary' (3 sources)
Compile Swift Module 'protoc_gen_swift' (13 sources)
/swift-protobuf/Sources/protoc-gen-swift/FileIo.swift:102:53: error: cannot invoke 'write' with an argument list of type '(to: NSURL)'
    _ = try NSData(bytes: data, length: data.count).write(to: NSURL(fileURLWithPath: filename))
                                                    ^
/swift-protobuf/Sources/protoc-gen-swift/FileIo.swift:115:45: error: cannot invoke initializer for type 'UnsafePointer<UInt8>' with an argument list of type '(UnsafeRawPointer)'
    return Array(UnsafeBufferPointer(start: UnsafePointer<UInt8>(data.bytes), count: data.length))
                                            ^
/swift-protobuf/Sources/protoc-gen-swift/FileIo.swift:115:45: note: Pointer conversion restricted: use '.assumingMemoryBound(to:)' or '.bindMemory(to:capacity:)' to view memory as a type.
    return Array(UnsafeBufferPointer(start: UnsafePointer<UInt8>(data.bytes), count: data.length))
                                            ^                   ~~~~~~~~~~~~
/swift-protobuf/Sources/protoc-gen-swift/FileIo.swift:115:45: note: overloads for 'UnsafePointer<UInt8>' exist with these partially matching parameter lists: (RawPointer), (OpaquePointer), (OpaquePointer?), (UnsafePointer<Pointee>), (UnsafePointer<Pointee>?), (UnsafeMutablePointer<Pointee>), (UnsafeMutablePointer<Pointee>?)
    return Array(UnsafeBufferPointer(start: UnsafePointer<UInt8>(data.bytes), count: data.length))
                                            ^
/swift-protobuf/Sources/protoc-gen-swift/EnumGenerator.swift:69:24: error: use of unresolved identifier 'o'
                return o
                       ^
/swift-protobuf/Sources/protoc-gen-swift/EnumGenerator.swift:58:13: note: did you mean 'f'?
        for f in value {
            ^
<unknown>:0: error: build had 1 command failures
error: exit(1): /usr/bin/swift-build-tool -f /swift-protobuf/.build/debug.yaml

Is there planned Linux support?
Also if there is, it would be great if protoc-gen-swift could be statically compiled, as to run on different versions of Linux seamlessly (Docker).
Thanks!

This should be fixed now.  Thanks for the report!


Refactor Canopy BC

Purpose
We have recently refactored the boundary conditions for snow and soil (AtmosDriven...) to include a prognostic_land_component field, and we dispatch off of the Value of that field in order to correctly account for fluxes in the presence of other components in integrated models. This adds this to the canopy model.
This is a useful step before adding snow and things get more complex
To-do

Content
Major changes:

Introduce "AtmosDrivenCanopyBC" which holds the atmos conditions, radiative conditions, and ground conditions. It also has a field for prognostic_land_components. This is more in line with how snow and soil hold these quantities. This changes the canopy model constructor and how we access atmos and radiation many places in the code.
Renaming: Canopy.PrescribedSoil -> Canopy.PrescribedGroundConditions. The abstract type AbstractSoilDrivers -> AbstractGroundConditions also.  The file soil_drivers.jl became ground_drivers.jl with this change.

Downstream or minor changes:

When it made sense, variables "_soil" became "_ground" in canopy code.
We packaged (atmos, radiation, and ground <: AbstractGroundConditions) into a single AtmosDrivenCanopyBC. This is now in CanopyModel under boundary_conditions, instead of having each separate fields. This is more in line with how snow and soil hold these quantities. It also now has a field for prognostic_land_components. We check in the constructor that if typeof(ground) <: PrescribedGroundConditions, the only prognostic component is the canopy. And we check that if it is not Prescribed, soil must also be prognostic.
The functions Canopy.ground_albedo_PAR now take as arguments both the "ground" driver (bc.ground, canopy.soil_driver in the previous main) and the prognostic_land_components. Currently this is primarily for consistency, but in the future (with snow) we may need to dispatch off the of Value of prognostic_land_components (snow, soil vs just soil).
Updated tests

[ ] I have read and checked the items on the review checklist.

I noticed a comment somewhere also about p.T_ground, but cant find it now. I got rid of it just because when we were using it, we were in a function that is specific to SoilCanopyModel, so I figured we could just use ClimaLand.Domains.top_center_to_surface(p.soil.T) directly (since this does not allocate either)

I noticed a comment somewhere also about p.T_ground, but cant find it now. I got rid of it just because when we were using it, we were in a function that is specific to SoilCanopyModel, so I figured we could just use ClimaLand.Domains.top_center_to_surface(p.soil.T) directly (since this does not allocate either)

Yeah, this was a question I had at first but as I continued looking through the PR I figured it out :) nice change!


feat(List): support of multiple selection

Please check if the PR fulfills these requirements

[x] The commit(s) message(s) follows our guidelines
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build / CI related changes
[ ] Other... Please describe:

What is the current behavior? (You can also link to an open issue here)
#63
What is the new behavior?
Add a new column of checkbox to List component, so user can select multiple items from List.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

If this PR contains a breaking change, please describe the impact and migration path for existing applications: ...
Other information:

@yyanwang We'll have to get back to you on that one. Not sure the checkbox + bulk edit buttons are actually improving the UI here.

OK. I add bulk edit because in guidelines we have this design:
http://guidelines.talend.com/document/135460#/1-home

@talend-glorieux thank you for fix eslint errors...I will pay attention next time.


The option to change username and profile picture

I think that it will be a really cool feature in the settings app to change the username to a custom choice instead of just Blue Edge, and then a custom profile picture from a url or from your local files.

yes. please do this

heck
ye

Duplicate of #374

Duplicate of #301


Failed clone from owned organization repository

use drone 0.5 and service gogs
clone is working, repository is private
+ git init
Initialized empty Git repository in /go/src/sam-rni-git.samara.yukos.ru/mdash/mdash/.git/
+ git remote add origin https://git.hdhog.ru/hdhog/gocdp.git
+ git fetch --no-tags origin +refs/heads/master:
From https://git.hdhog.ru/hdhog/gocdp
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
+ git reset --hard -q 125a28640eeef6ebc857a4e71ec6f7f4c727a475
+ git submodule update --init --recursive
DEPRECATED Action signature.  Must be `cli.ActionFunc`.  This is an error in the application.  Please contact the distributor of this application if this is not you.  See https://github.com/urfave/cli/blob/master/CHANGELOG.md#deprecated-cli-app-action-signature

clone is not working, repository owned on organization volgactf. my account hdhog is admin in volgactf but cloning not working
+ git init
Initialized empty Git repository in /go/src/git.hdhog.ru/volgactf/jarvis/.git/
+ git remote add origin https://git.hdhog.ru/volgactf/jarvis.git
+ git fetch --no-tags origin +refs/heads/master:
fatal: could not read Username for 'https://git.hdhog.ru': No such device or address
exit status 128

per the issue template, please triage all issues in the gitter before opening github issues.


Pydantic warnings at every base64 embedding call for Async Azure

Confirm this is an issue with the Python library and not an underlying OpenAI API

[X] This is an issue with the Python library

Describe the bug
I see several warnings with this:
UserWarning: Pydantic serializer warnings:
  Expected `list[float]` but got `str` - serialized value may not be as expected
  return self.__pydantic_serializer__.to_json

This is impacting LiteLLM users too: https://github.com/BerriAI/litellm/issues/1187
To Reproduce
import openai

    client = openai.AsyncAzureOpenAI(
        api_key=os.environ["AZURE_API_KEY"],
        azure_endpoint=os.environ["AZURE_API_BASE"]
    )

    async def _test():
        response = await client.embeddings.create(
                model="azure-embedding-model",
                input=["write a litellm poem"],
                encoding_format="base64"

        )

        print(response)

        response = response.model_dump_json()

        print(response)
        import json
        response = json.loads(response)
        print(response)
    import asyncio
    asyncio.run(_test())

Code snippets
No response
OS
macOS
Python version
3.10
Library version
1.6.1

I suspect it's caused due to this: https://github.com/openai/openai-python/blob/f1c7d714914e3321ca2e72839fe2d132a8646e7f/src/openai/types/embedding.py#L12

cc @kristapratico is azure returning nonconformant data here?

I'm seeing the warning repro for both OpenAI and Azure API. A string is returned for the embedding in the base64 case.
>>> import openai
>>> client = openai.OpenAI()
>>>
>>> response = client.embeddings.create(model="text-embedding-ada-002", input="hello world", encoding_format="base64")
>>> r = response.model_dump_json()
/home/krpratic/.pyenv/versions/11/lib/python3.11/site-packages/pydantic/main.py:352: UserWarning: Pydantic serializer warnings:
  Expected `list[float]` but got `str` - serialized value may not be as expected
  return self.__pydantic_serializer__.to_json(

>>> import openai
>>> client = openai.AzureOpenAI()
>>>
>>> response = client.embeddings.create(model="text-embedding-ada-002", input="hello world", encoding_format="base64")
>>> r = response.model_dump_json()
/home/krpratic/.pyenv/versions/11/lib/python3.11/site-packages/pydantic/main.py:352: UserWarning: Pydantic serializer warnings:
  Expected `list[float]` but got `str` - serialized value may not be as expected
  return self.__pydantic_serializer__.to_json(

Despite the warning, it does appear to serialize the model correctly.

Despite the warning, it does appear to serialize the model correctly.

correct
For this issue, can we fix the warning message ? a lot of our users see this warning in their logs

@ishaan-jaff I'll let @rattrayalex answer, but just a suggestion - you can pass warnings=False into model_dump_json to silence the warning in logs.
>>> import openai
>>> client = openai.AzureOpenAI()
>>>
>>> response = client.embeddings.create(model="text-embedding-ada-002", input="hello world", encoding_format="base64")
>>> r = response.model_dump_json(warnings=False)

Ah, got it – thanks @kristapratico!

@ishaan-jaff for further context, is it your goal/intent to have the embeddings formatted as a list of floats, or as a string? If you don't pass that param (and have numpy installed), we'll request it as a string for efficiency, but then convert it back to a list of floats for you. This way, you won't get any type errors or warnings. Would that work well for you, or do you specifically want the base64 encoding in the resulting json?

@rattrayalex I need the embeddings formatted as a string
Context: I'm building an OpenAI proxy server, the openai sdk requests base64 encoded embeddings from the proxy, the proxy should respond in embeddings formatted as a string. Goal of this issue is to get rid of the warning messages I'm seeing

Got it, thanks @ishaan-jaff, that makes sense. As Krista shared, your best bet in the short term is response.model_dump_json(warnings=False) – does that work for you?

does that work for you?

Not really, That suppresses the warning caused by model_dump_json but I still see the error raised here: https://github.com/BerriAI/litellm/blob/0864713b620d590295f5018da414860ab657a648/litellm/proxy/proxy_server.py#L1511. Does the OpenAI python SDK define some type of deserialization function that's getting used by FastAPI ?
EDIT: out of curiosity, why do you want them as a string?
(sorry if this is a complicated explanation)

LiteLLM provides a proxy call LLMs
on the LiteLLM Proxy, we use the OpenAI python client to call Azure, OpenAI
Users use the OpenAI python client to call the LiteLLM Proxy
For embeddings, the OpenAI python client, requests embeddings as a string. It sends this request to the LiteLLM Proxy, which needs to respond back as a string

Why does LiteLLM expect embeddings to be formatted as a string, do you know?


Reintroduce version configuration

The ability to set version of u-root and stboot was removed in 6383e89
to prevent incompatibility due to API changes. Reintroduce the
configuration options to set the version of all version pinned tools.
Signed-off-by: Marcello Sylvester Bauer<EMAIL_ADDRESS>

This PR addresses #164.


Fix texture on face

Fix the way textures are applied on faces by specifying a mapping between the face points and the image corners.

Merged in devel branch


Remove subject metadata from classifications dump

@mrniaboc @chrislintott This column is JSON and super repetitive. It also hardly ever changes, and it's the stuff you gave us when you uploaded the subjects in the first place. This data will still be in the subjects export, so if you want you can get that one and join the two exports on subject ID. You can even do this in Excel (with the VLOOKUP function).
Do either of you foresee any huge issues with dropping the subject_metadata from the classifications dump?

I think this is a terrible idea. I think you've overestimating how easy our community will find doing this, and it has implications for long-term storage. Please talk to me before merging.


Problem with glog

Hi,
when compiling on Ubuntu 16.04 I get following error message once calling ifm3d.
Anyone has an idea what might be wrong?
I compiled glog manually.
ERROR: something wrong with flag 'logtostderr' in file '/home/paul/Downloads/glog-0.3.5/src/logging.cc'.  One possibility: file '/home/paul/Downloads/glog-0.3.5/src/logging.cc' is being linked both statically and dynamically into this executable.

@pfrydlewicz there is no need to compile glog on ubuntu. You can install it directly by apt.
apt-get update && apt-get -y upgrade
# Required Packages for the Host Development System
apt-get install -y libboost-all-dev \
    git \
    jq \
    libcurl4-openssl-dev \
    iputils-ping \
    bash \
    bash-completion \
    libgtest-dev \
    libgoogle-glog-dev \
    libxmlrpc-c++8-dev \
    libopencv-dev \
    libpcl-dev \
    libproj-dev \
    build-essential \
    coreutils \
    cmake

Like I do in my docker image for ifm3d


Populate refresh token from a client credentials OAuth2 call

There’s a bug (#2602) with the client credentials OAuth2 flow: the refresh_token returned by the access token URL is ignored.
This change updates the response handling in the client credentials flow to match that of the authorization code flow, which populates the refresh token as expected. I assume the missing key was an oversight in the original code – I can’t think of a reason why the refresh token would be populated for one method and not the other.
I’ve tested this fix on MacOS (using the steps from the bug report) and the refresh token is now populated and can be used to repeatedly refresh the access token.
This is my first pull request to the project – let me know if there’s anything I’ve missed or anything I could add to improve it or make it easier to review and accept!
Closes #2602.

I think it is not a bug, since the standard indicates that no access token should be returned in the flow.
https://tools.ietf.org/html/rfc6749#section-4.4.3
Perhaps it could be implemented so that Insomnia would pick it up anyway, knowing that the OAuth 2.0 server is not compliant with the standard.

@ihatemornings thank you for the PR and welcome to the project! One thing of use would be a gif/video/loom recording of the feature working. 😄

Although the standard recommends not to issue refresh tokens in the Client Credentials flow, it is possible to find OAuth 2.0 server implementations that do issue this token since it is not restricted, only discouraged. #2602 (comment)
Since Insomnia is a software for API development and testing, it could be interesting to include this feature (knowing that the OAuth 2.0 server used is not following the practices recommended by the standard).

This is a very good point, I just read through the RFC section and it clearly states that the client credentials flow should not return a refresh_token. In saying that, Insomnia is also a generic tool and does not strictly enforce any standards, so I'm not sure where to stand with this particular workflow. @wdawson what are your thoughts?

I see! I have since realised that the API I’m working with is not following the recommendation of the RFC, so I understand now why the code was written to ignore any refresh_token value.
Given that there are indeed APIs out there that return a refresh_token in the client credentials flow (or even that a developer might include a refresh_token during development of an API without fully understanding the RFC), I still think the user experience was confusing. The refresh token field is enabled and empty in the Insomnia OAuth UI, so there’s nothing to indicate to the user that the token is being explicitly ignored.
On balance I think I would still prefer to have the field included and leave it to the user and/or the API designer to build a compliant API. That’s just my two cents as a user. Thanks for taking the time to respond!

Although the standard recommends not to issue refresh tokens in the Client Credentials flow, it is possible to find OAuth 2.0 server implementations that do issue this token since it is not restricted, only discouraged. #2602 (comment)
Since Insomnia is a software for API development and testing, it could be interesting to include this feature (knowing that the OAuth 2.0 server used is not following the practices recommended by the standard).

This is a very good point, I just read through the RFC section and it clearly states that the client credentials flow should not return a refresh_token. In saying that, Insomnia is also a generic tool and does not strictly enforce any standards, so I'm not sure where to stand with this particular workflow. @wdawson what are your thoughts?

Yeah, non-compliant OAuth and OIDC implementations abound. Given that it's a SHOULD NOT, however, I think we should not ignore it if it comes back in the response. Thanks for the PR @ihatemornings !

@develohpanda here’s a quick recording of the branch doing its thing. The client credentials call to the OAuth token endpoint returns a refresh_token, it’s displayed in the UI and used to refresh the access token.

Awesome! Thanks for adding in the recording 😄


Issue registering registerMediaLibrary(cloudinary) along with registerPreviewTemplate

Describe the bug
I'm trying to integrate netlify-cms-media-library-cloudinary into netlify-cms in a gatsby project.
I have custom preview templates set up, so I've registered my preview templates which use a wrapper to get styled-components working, along with trying to register the media library like so:
CMS.registerPreviewTemplate('blog', withStyledComponentsRendered(BlogPostPreview));

CMS.registerMediaLibrary(cloudinary);

When I view the CMS page, I get an error saying  "Error loading the CMS configuration" (screenshot below).
However, when I comment out all of my registerPreviewTemplate lines, the error goes away. I've tried removing the withStyledComponentsRendered wrapper, but that doesn't seem to be it.
Any insights? Thanks in advance!
To Reproduce
config.yml:
media_library:
  name: cloudinary
  config:
    cloud_name: -----
    api_key: -----

withStyledComponentsRendered.tsx:
import React, { useState, useEffect } from 'react';
import { StyleSheetManager } from 'styled-components';

const StyleInjector = ({ children }: { children: any }) => {
  const [iframeRef, setIframeRef] = useState<HTMLHeadElement | null>(null);

  useEffect(() => {
    const iframe = document.getElementsByTagName('iframe')[0];
    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
    const iframeHeadElem = iframe.contentDocument!.head!;
    setIframeRef(iframeHeadElem);
  }, []);

  return iframeRef && <StyleSheetManager target={iframeRef}>{children}</StyleSheetManager>;
};

const withStyledComponentsRendered = (Comp: any) => {
  return (props: any) => (
    <StyleInjector>
      <Comp {...props} />
    </StyleInjector>
  );
};

export default withStyledComponentsRendered;

minimal src/cms/cms.ts file
import CMS from 'netlify-cms-app';
import cloudinary from 'netlify-cms-media-library-cloudinary';

import IndexPagePreview from './preview-templates/IndexPagePreview';

import withStyledComponentsRendered from './withStyledComponentsRendered';

CMS.registerMediaLibrary(cloudinary);

CMS.registerPreviewTemplate('index', withStyledComponentsRendered(IndexPagePreview));
...

minimal gatsby-config
{
  resolve: 'gatsby-plugin-netlify-cms',
  options: {
    publicPath: 'cms',
    modulePath: `${__dirname}/src/cms/cms.ts`,
  },
},

Expected behavior

I can use the cloudinary media library in conjunction with preview templates
Screenshots

working with preview templates commented out:

Applicable Versions:

netlify-cms-app 2.14.32
netlify-cms-core 2.38.10
Git provider: github
OS: MacOS 11.2.3
Browser version Chrome 89.0.4389.90

Node.JS version:

CMS configuration

backend:
  name: github
  repo: tonymamo/getpackup
  api_root: https://api.github.com
  branch: master
  commit_messages:
    create: 'Create {{collection}} “{{slug}}”'
    update: 'Update {{collection}} “{{slug}}”'
    delete: 'Delete {{collection}} “{{slug}}”'
    uploadMedia: '[skip ci] Upload “{{path}}”'
    deleteMedia: '[skip ci] Delete “{{path}}”'

media_library:
  name: cloudinary
  config:
    cloud_name: getpackup
    api_key:<PHONE_NUMBER>17379

media_folder: static/img
public_folder: /img

collections:
...

Hi @tonymamo, my guess it that the code to register the preview template fails preventing the code to register the media library from running (you could try replacing CMS.registerMediaLibrary(cloudinary); with a console.log to verify).
If that's the case, you should see some JavaScript errors under the browser console logs window (you'll need to open the browser developer tools to see those).

Hi @erezrokah thanks for the reply. I did in fact have an issue with one of my preview templates and I think that was causing other things to fail downstream. Thanks for the suggestion!


[BUG] Bookmark logo on not bookmarked tabs is broken

Latest state of this issue.

Broken:

Fixed:

What's wrong ?

Bookmark logos isn't the same width and design.
Bookmark logo on not bookmarked tabs is more slim than bookmark logo on bookmarked tabs. ( As far as I see )

Might be true that there is a small difference, but can't see a real issue here


grpc: 1.41.0 -> 1.42.0

Motivation for this change
https://github.com/grpc/grpc/releases/tag/v1.42.0
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build murmur bear
@GrahamcOfBorg build sysdig libtensorflow

FYI, this apparently broke build on aarch64-linux: https://hydra.nixos.org/log/1wk57s15jqb7grx237lk3v56qmninxcp-grpc-1.42.0.drv

Sorry about that. Fixed in https://github.com/NixOS/nixpkgs/pull/146720


Update link in project README to point to api model documentation

In the project README, the model link is currently pointing to non-existent page. Is the apiary site where it should be pointing to?

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

Current coverage is 24.92% (diff: 100%)

Merging #322 into master will decrease coverage by 0.03%

@@             master       #322   diff @@
==========================================
  Files            47         47
  Lines          2828       2828
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits            706        705     -1
- Misses         2052       2053     +1
  Partials         70         70

Powered by Codecov. Last update d74ea93...a69275c