text:
Code throwing error for llama3

Project is not compatible for llama3
After updating pom.xml for latest library of ollama4j to 1.0.70. It throwing error as following
com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type java.time.LocalDateTime from String "2024-05-13T13:16:38.7024776+05:30": Failed to deserialize java.time.LocalDateTime: (java.time.format.DateTimeParseException) Text '2024-05-13T13:16:38.7024776+05:30' could not be parsed, unparsed text found at index 27
at [Source: (String)"{"models":[{"name":"llama3:8b","model":"llama3:8b","modified_at":"2024-05-13T13:16:38.7024776+05:30","size":4661224578,"digest":"a6990ed6be412c6a217614b0ec8e9cd6800a743d5dd7e1d7fbe9df09e61d5615","details":{"parent_model":"","format":"gguf","family":"llama","families":["llama"],"parameter_size":"8B","quantization_level":"Q4_0"},"expires_at":"0001-01-01T00:00:00Z"},{"name":"llama3:latest","model":"llama3:latest","modified_at":"2024-05-13T13:05:58.9216973+05:30","size":4661224578,"digest":"a6990ed6"[truncated 597 chars]; line: 1, column: 66] (through reference chain: io.github.amithkoujalgi.ollama4j.core.models.ListModelsResponse["models"]->java.util.ArrayList[0]->io.github.amithkoujalgi.ollama4j.core.models.Model["modified_at"])
at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:67)
at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:2002)
at com.fasterxml.jackson.databind.DeserializationContext.handleWeirdStringValue(DeserializationContext.java:1230)
at com.fasterxml.jackson.datatype.jsr310.deser.JSR310DeserializerBase._handleDateTimeException(JSR310DeserializerBase.java:176)
at com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer._fromString(LocalDateTimeDeserializer.java:179)
at com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer.deserialize(LocalDateTimeDeserializer.java:81)
at com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer.deserialize(LocalDateTimeDeserializer.java:40)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:314)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:177)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray(CollectionDeserializer.java:359)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:244)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:28)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:129)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:314)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:177)
at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4825)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3772)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3740)
at io.github.amithkoujalgi.ollama4j.core.OllamaAPI.listModels(OllamaAPI.java:137)
at io.github.amithkoujalgi.service.ChatService.getModelItems(ChatService.java:40)
at io.github.amithkoujalgi.views.chat.ChatView.(ChatView.java:57)

@rishibunti does the issue still persist with latest updates?

authors: amithkoujalgi rishibunti


text:
Is this the whole of "Complete and Easy Bidirectional Typechecking for Higher-Rank Polymorphism"?

Your implementation is very short!!
I'm going to study it and your code over the christmas break.

Or is it based on this earlier paper? https://www.cs.cmu.edu/~joshuad/papers/bidir/

Aren't those the same? :) But yeah, that's the one!

Maybe you were thinking of the follow-up that covers gadts which isn't covered here.

Yes, they are the same, I'm a bit thick :)
Hey, you're their hero: http://semantic-domain.blogspot.se/2013/04/thanks-to-olle-fredriksson.html
Is the other article you refer to this one? https://arxiv.org/abs/1601.05106

No worries! :)
Yes, that's the one with GADTs.
I've added a description to this repo now.

Thanks! Closing this now then :)
Looking forward to our hackathon btw!

Me too!

source: gharchive/issue

authors: danr ollef

repo: ollef/Bidirectional

license_type: permissive

license_source: bigquery


text:
Energy Usage for Washer and Dryer.

Can we get energy usage for the washer and dryer?  It seems to show these in the app, but I am not sure if supported by api.

Related to https://github.com/ollo69/ha-smartthinq-sensors/issues/309

authors: lyonsad rasssta

license_source: github-api


text:
🛑 MediaNet is down

In 27e9d44, MediaNet (https://medianet-pa.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MediaNet is back up in 33d6036.

repo: olmloa/upptime

license: MIT


text:
Upload pictures

Hello, how to upload a picture, can you give an example

Hello I am not sure what you are looking for do you want to:

Create an image https://platform.openai.com/docs/api-reference/images ? see example here
Upload a file https://platform.openai.com/docs/api-reference/files/upload but here only fine tuning is available

Hello I am not sure what you are looking for do you want to:

Create an image https://platform.openai.com/docs/api-reference/images ? see example here
Upload a file https://platform.openai.com/docs/api-reference/files/upload but here only fine tuning is available

penai::image().variation example？

Added the features and examples @vrl8888 sorry for the delay it was indeed not working...

repo: olrea/openai-cpp


text:
exemples crash on windows 10 visual studio 2020 c++20

Hi,
running the examples spits out a json error. It seems like the json is malformed or something around those lines.
using curl 7.68 because 7.48 did not want to compile.
Any hint?
thank you,

forgot the api key, works fine now but it shouldn't crash nonetheless.


text:
Pattern for handling authentication of requests

Hi,
I'm interested in know what the appropriate pattern is for authenticating a spider? Most of the spiders I'm writing need to log in first before being able to scrape the content that I need access to. What would be the normal pattern for this as I've not found any examples of it that I can see.
My guess would be to write a middleware to perform the log in and set the auth cookies, however this will be a different authentication process for the various different spiders. Would this be done within the spider itself perhaps in the init() function?
Thanks for any help.

You can write a middleware that takes in auth options and sets the cookies, and then set it on the override_settings callback.  This lets you parameterize your auth settings based on spider. The init/0 callback is more for starting request links.

@bapti yes, I agree, we clearly miss an example here. Btw, what are you trying to crawl? Maybe we could try it as an example.

@bapti I want to let you know that I am working on the case. Have already solved the basic login, now trying to generalize it. Will present steps soon!

@bapti I will write an article with a detailed explanation soon. For now please use this as an example: https://github.com/oltarasenko/crawly_login_example
Please let me know if you have any questions! Would appreciate a feedback!

@oltarasenko thank you for all this, I look forward to the article.
The site I was trying to crawl has some fancy javascript fingerprinting (I'm assuming to prevent scraping), I tried a few things to get things to work and couldn't. In the end I had a quick go using puppeteer to see if I could perform the login through it, and that worked which kind of proved to me that I needed a full browser environment for that particular site.
But even so, thanks for the example, it looks like the right way to go for most instances

Ok, @bapti
Thanks for the feedback. Yes, it might be the case. I think we should put more efforts toward supporting puppeteer
backend.
In any case, if you have a way to share the website name, I can test it myself to see what can be done. I have spent quite a bit of time debugging bans in the past, so maybe this experience could help.
If you don't want to share the site here, you can do it via email, or elixirforum (I have an account there). Let me know!

@bapti the article is finally published now, and can be available via https://oltarasenko.medium.com/web-scraping-with-elixir-and-crawly-extracting-data-behind-authentication-a52584e9cf13

authors: Ziinc bapti oltarasenko

repo: oltarasenko/crawly


text:
Parse pipelines

This PR aims to introduce pipelines to the extraction process, allowing for extraction helper modules. Introduces a Parse to be piped through the extraction modules.
Considered success if:

Extraction modules can implement pipeline behaviour and be used to pipe a ParsedItem
Extraction modules can be declared in config, at global and spider level.

Further areas of exploration:

parameterizing extraction rules through runtime spider config

Initial discussion here: https://github.com/oltarasenko/crawly/issues/141

Implemented parsers through settings declaration.
I'm thinking of eventually passing the spider's init arguments to override_settings, so that the parser options can be parameterized.

I understand what you mean. I didn't add in docs on how to use it, as I myself am still thinking of the best way to explain how to use the parsers.
The main point of this feature is to allow logic reuse. Which becomes key when I implement runtime spiders, as different sites will have the same extraction process, but simply different extraction rules (e.g. different xpaths). Parser A and Parser B may extract and append more requests but have different extraction rules, while Parser C and Parser D may be extracting different item types (like blog articles and comments)
When you refer to incremental data extraction (like extracting data and adding it to a map), this level of thinking is more of at an individual parser level, where the Parser receives parameters (extraction rules for different items) and implements logic (append to the :items key the template that has the highest extracted count). This parser can then be reused for multiple spiders. In this case, you would technically be trying to implement something with parsers within parsers (performing multiple extractions).
Examples makes everything clearer:
parsers: [
  {ExtractRequests, xpath: "//a[@class]"},
  {ExtractRequests, css: "a li"},
  # specify only one extraction rule
  {ExtractItems strategy: :append, rule: %ScrapedProduct{id: "//h1" }},
  # specify multiple extraction rules, append by default
  {ExtractItems, rules: [%ScrapedBlogPost{id: "//h1" },  %ScrapedComment{body: "//p"}] },
  # custom logic, select items with most struct count
  FilterItemsByHighestCount
]

ExtractRequests  and ExtractItems can be provided by crawly (as you have done in #164 ), to make extraction even easier/faster.
And imagine if we can parameterize all of this with runtime spiders :exploding_head: creating spiders would be so quick and easy, with hardly any custom code at all. And even if there was custom code, it can be abstracted and re-used.

@Ziinc As I have said I like the idea, however, it might be complex for people, so we need to have good documentation and examples. Also maybe I will write an article about it (or maybe you can do it).
It would be nice if it could also help me solve my problem with CrawlyUI, however it may be done at the later stages.
** For some reason for me, it looks like item_loaders in scrapy.

@Ziinc I have finally built some vision of how we may evolve parsers' idea. I can take over this PR (e.g. in a separate branch) to demonstrate it if you are in a shortage of time atm.

@oltarasenko what do you mean by further evolution? I will be able to clean up the pr with docs for review today, within a few hours.

@oltarasenko what do you mean by further evolution? I will be able to clean up the pr with docs for review today, within a few hours.

Oh, you have asked me to refactor the general-purpose extractor, so I have cherry-picked some of your code, and as it often happens have modified some parts. Please have a glance so we can discuss it.

@oltarasenko I removed the Parse struct, which would prevent custom information to be placed in the parser's state. Added docs and rebased against master.

@oltarasenko could we have this merged in over the weekend?

@oltarasenko could we have this merged in over the weekend?

@oltarasenko could we have this merged in over the weekend?

Sorry, i am with kids during the weekend. Will have time on the week. Let's aim the beginning of the week.

@oltarasenko could we have this merged in over the weekend?

Sorry it's hard for me on weekends,  as kids are at home. Let's aim the beginning of the week

@oltarasenko could we have this merged in over the weekend?

Sorry, i am with kids during the weekend. Will have time on the week. Let's aim the beginning of the week.

@oltarasenko could we have this merged in over the weekend?

Sorry it's hard for me on weekends,  as kids are at home. Let's aim the beginning of the week

source: gharchive/pull-request

authors: Ziinc oltarasenko


text:
onDragMove don't give access to the dragged element

Hi,
Thank you for your great job on MetroUI, it's really helping a lot in getting beautiful interface done fast.
I'm using window component a lot, and I noticed that onDragMove event callback only have a "pos" argument, and the only way to access the dragged element is to use "this"inside the function.
the problem is that sometimes, we need to use fat arrow functions where this is bound to the parent context.
for now, I'm getting around it by overriding the event at runtime, but it's a dirty hack :)
is it possible to add a second argument to the actually dragged element ?
it also makes sense since other events like onMinClick, onCanClose already provide it.
Many thanks

This is the hack I'm using btw
const settings = {
//contains my window settings
}

settings.onDragStop = (pos, el) => {
  // normally, el argument is not provided, and this is not accessible inside fat arrow function
  // see below for override to get it working
}

const window = Metro.window.create(settings).data('window');

//. . .

//overriding draggable events in order to pass the context as last argument
const draggable = window.win.data('draggable');
['onDragStart', 'onDragStop', 'onDragMove'].forEach(evt => {
	const orig = draggable.options[evt];
	draggable.options[evt] = function (...args) {
		args.push(this);
		return orig.apply(this, args)
	}
});

Added in 4.3.8. You can use second argument for events, named context
<div data-role="window" class="p-2" data-on-drag-start="dragStart">
    This is a simple window
</div>

function dragStart(pos, context) {
    console.log(pos, context);
}

authors: alaa-eddine olton

repo: olton/Metro-UI-CSS

license: mit


text:
SELECT: option with own attr don't work

Hi Olton!
Example at:
https://codepen.io/TorakikiSan/pen/EeyWmp?editors=1111
I have associated two attributes (data-year and data-status) to each OPTION of a SELECT.
How can I get the attribute values of the selected OPTION?
I tried with
// Try sintax 1
console.log($("#MACHINE option:selected").attr("data-year"));

and
// Try sintax 2
console.log($("option:selected", this).attr("data-year"));

but neither works!
Thank's!

m4q not support syntax option:selected for queries this is specified for jQuery. use option:checked

Perfect!

authors: TorakikiSan olton


text:
publishing as an npm module

hi, @olton . we wanted to use Metro-UI-CSS as one of the dependencies in an npm-based project, so we published it onto npmjs.com. what is your account on npmjs.com? we hope to transfer ownership back to you if you don't mind.

npm install metro-dist

ok, thanks!

Why there is no "main": entry in your package.json?
This error shows up Module not found: Error:  Can't resolve 'metro4-dist' in ...
Adding "main": "js/metro.js" to package.json fixes it. Though, Maybe is because I'm using babel-polyfill.

Thanks, I fix it in next release

authors: leungwensen olton vhanla


text:
🛑 UoD SLS OMERO (image 3925540 - render_image) is down

In 33cd4d9, UoD SLS OMERO (image 3925540 - render_image) (https://omero.lifesci.dundee.ac.uk/webgateway/render_image/3925540/3/5/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: UoD SLS OMERO (image 3925540 - render_image) is back up in 7bcdc00 after 10 minutes.

repo: ome/upptime


text:
🛑 OME website (legacy) is down

In 223dca3, OME website (legacy) (https://www-legacy.openmicroscopy.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: OME website (legacy) is back up in 8b721b7 after 34 minutes.


text:
Add whitelist and blacklist systems

It needs to be tested in Rinkeby env.

Codecov Report

Merging #78 (8d4a9a7) into develop (2a0b20f) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 8d4a9a7 differs from pull request most recent head c0bc7c4. Consider uploading reports for the commit c0bc7c4 to get more accurate results

@@           Coverage Diff            @@
##           develop      #78   +/-   ##
========================================
  Coverage    82.26%   82.26%
========================================
  Files           49       49
  Lines         1900     1900
  Branches       303      303
========================================
  Hits          1563     1563
  Misses         337      337

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a0b20f...c0bc7c4. Read the comment docs.

repo: omgnetwork/optimism


text:
fix: cleanup

:clipboard: Add associated issues, tickets, docs URL here.
Overview
Describe what your Pull Request is about in a few sentences.
Changes
Describe your changes and implementation choices. More details make PRs easier to review.

Change 1
Change 2
...

Testing
Describe how to test your new feature/bug fix and if possible, a step by step guide on how to demo this.

Coverage decreased (-10.8%) to 74.773% when pulling e48c2690a593089dca2d60231d9c7cbadedf1f6d on 1025-webserver_test into e36e0d23ba5470d994a67b603493ca2a5ac86db0 on master.

Hopefully we'll see three consecutive mix test successes https://circleci.com/gh/omisego/workflows/elixir-omg/tree/1025-webserver_test

@chrishunt excellent point! tnx!

authors: InoMurko coveralls

repo: omisego/elixir-omg


text:
Composable filters as request params

Closes #334
Overview
This PR adds support for a more advanced filtering. Instead of just search_term and search_terms, it's able to filter by conditions like eq (equals), neq (not equals), lt (less than), gte (greater than), etc.
Changes

Add a new EWallet.Web.MatchAllParser to support filtering with all conditions
Add a new EWallet.Web.MatchAnyParser to support filtering with any conditions

Implementation Details
This PR took inspirations from various existing open-sourced libraries but decided to write from scratch as the libraries are either very feature-rich that we use a very small subset of the feature, or very simple that it could easily be built on our existing parsers.
Also note that "match_any" is limited to 5 unique associations. This is due to the fact that Ecto supports only positional reference on joins. Named joins is coming in Ecto 3.0 but the release date is not set. So, I did a workaround by mapping the join sequence and build the dynamic query by having a fixed number of bindings (fixed to 5).
Usage
Supported comparators: eq, neq, lt, lte, gt, gte, and contains.
For example, the attributes below will filter for confirmed transactions that came from or went to the user with username "alice".
POST /transaction.all
{
  "match_all": [
    {
      "field": "status",
      "comparator": "eq",
      "value": "confirmed"
    }
  ],
  "match_any": [
    {
      "field": "from_user.username",
      "comparator": "eq",
      "value": "alice"
    },
    {
      "field": "to_user.username",
      "comparator": "eq",
      "value": "alice"
    }
  ]
}

Impact
New optional attributes: match_all and match_any added to /transaction.all's request format. No DB changes.

Remaining:

[ ] Support field value type casting similar to {field, :uuid} similar to the existing SearchParser
[ ] Support nested field (e.g. filter transactions by from_account.name, etc.)
[ ] Support predicate e.g. match: all or match: any

Example for multiple predicates:
POST /transaction.all
{
  "filters": {
    "match_all": [
      {
        "field": "from_user.id",
        "comparator": "eq",
        "value": "alice_id"
      },
      {
        "field": "to_user.id",
        "comparator": "eq",
        "value": "bob_id"
      }
    ],
    "match_any": [
      {
        "field": "status",
        "comparator": "eq",
        "value": "confirmed"
      },
      {
        "field": "status",
        "comparator": "eq",
        "value": "approved"
      }
    ]
  }
}

@unnawut Could you add more tests? Like at least one for each predicate, and maybe test up to 5 levels?

@T-Dnzt Added starts_with, OpenAPI specs and markdown docs. Please review again.

authors: T-Dnzt unnawut

repo: omisego/ewallet


text:
Add configuration for superset dashboard position data limit

Fixes https://github.com/onaio/canopy/issues/386

let's leave at default of 2^16 and override in playbooks

I mean inventory files

authors: nateMJ pld

repo: onaio/ansible-superset


text:
LANTERN-796: Resolved the empty URL string issue for MEDENT_Community_Computer_Service_Inc_EndpointSources.json

… file structure
Pull requests into this repository require the following checks to be completed by the submitter and reviewers.
Submitter:

[x] Administrative tasks are complete.

This pull request describes why these changes were made.
The JIRA ticket links to this PR.
The JIRA ticket for this PR is: LANTERN-796

[x] Tests are complete.

Tests are included and test edge cases.
Tests have been run locally and pass.

[x] Code review has been performed.

Code diff has been done and checked to ensure only expected code is being committed.
A linter for the language has been run.

Primary Reviewer:

[ ] Code works.

Code has been run locally and the basic functionality affected by the PR has been checked.
Edge cases have been checked to ensure behavior is as expected.

[ ] Code review has been performed.

Code is maintainable, reusable, efficient, and correct.
Code accomplishes the tasks purpose.
Code follows style guidance appropriate for the language, including passing linter checks.
Code is well commented (which does not mean verbosely commented).

[ ] Tests are complete.

Tests are included and test edge cases.
Tests have been run locally and pass.

Merger:
Prior to merging, ensure that all checks have been completed. Delete the branch after the merge
is complete.

@rishi-salunkhe-mettle Reviewed and Approved, please assign within Mettles for Github PR Reviewer approval.

repo: onc-healthit/lantern-back-end


text:
Some modifications from a fork

Hi Önder Ceylan,
Thank you for your generator, it was really useful for my latest projects. :)
I made some changes to your code for my use case inside my fork. One of the modification was to generate MS Tiles icons (like https://github.com/onderceylan/pwa-asset-generator/issues/309)
Would you want me to make a pull request against your repository for the changes you want?
Or, feel free to copy and paste or even adapt my modifications. ;)

Hey @ranb2002, thank you for your feedback and for the improvement ideas you shared! Would you like to contribute with the MS Tiles icons change of yours for starters? That's a very good candidate imho as it's an active feature request as you referred.

repo: onderceylan/pwa-asset-generator


text:
Update MVDR beamforming sample readme

Existing Sample Changes
Description
Updated readme to match new template. Significantly restructured the sections, updated information on running in DevCloud, corrected branding, rewrote some sections for clarity, and fixed some links. Fixed multiple formatting issues.
Fixes Issue#
External Dependencies
N/A
Type of change
Please delete options that are not relevant. Add a 'X' to the one that is applicable.

[x] Documentation

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] Command Line
[x] VSCode

Adding @jimmytwei for notices.

repo: oneapi-src/oneAPI-samples


text:
Building Failure

I was buiding this for the cuda backend using cmake
Using command: cmake .. -DCMAKE_CXX_COMPILER=/opt/intel/oneapi/compiler/latest/linux/bin-llvm/clang++ \          -DCMAKE_C_COMPILER=/opt/intel/oneapi/compiler/latest/linux/bin-llvm/clang \          -DENABLE_CUBLAS_BACKEND=True  \          -DENABLE_CUSOLVER_BACKEND=True \          -DENABLE_CURAND_BACKEND=True   \          -DENABLE_NETLIB_BACKEND=False   \          -DREF_BLAS_ROOT=/usr/local
Cmake report the problem
Could NOT find LAPACKE (missing: CBLAS64_file)
I have already installed the LAPACKE using cmake into both /local/usr and $HOME/.local/lapack/
Someone have ideas about how to solve this? Thanks

I have slove this problem by buidling the LAPACKET with BUILD_INDEX64=ON and setting BUILD_SHARED_LIBS=ON and CBLAS= ON

Hi @Lang0722,
Some pointers that might help for the future:

you can select which domains to use with the TARGET_DOMAINS variable, this is a list of domains separated by ;. The options are blas, dft, rng, and lapack. I think you want -DTARGET_DOMAINS="blas;lapack".
I don't think you need REF_BLAS_ROOT unless you are contributing to oneMKL
ENABLE_MKLGPU_BACKEND and ENABLE_MKLCPU_BACKEND are enabled by default, so if you only want the cuda libraries then you can turn those off.  It does sound like you have the libraries though.

Without setting the TARGET_DOMAINS, and leaving ENABLE_MKLGPU_BACKEND/ENABLE_MKLCPU_BACKEND, all the Intel libraries are enabled so that might have been causing your issue.

repo: oneapi-src/oneMKL


text:
Hide unhandled exception info to the user on Api request failure

Prevent displaying information about an unhandled exception (Stack trace, etc...) to an user when an API request fails with an unhandled exception
Description

Added support for handling ArgumentException on ExceptionHandlingExtensions.cs
UnhandledExceptionLoggingExtension has been renamed to UnhandledExceptionExtension, and in addition to log the exception it sets up the request so that information about the exception is hidden to the user

Reminder: Need to check if exceptions are shown only in dev mode

repo: onebeyond/onebeyond-studio-obelisk


text:
Not able to start the application

Hi ,
I am not able to start the application . I gave correct user name and password for mysql .
Is there any other logs I could see .
Please see the log.log file output
the getRowsBySQlCase select count(1) c from chaincodes where channelname='mychannel'
/Users/maheshgovind/go/fabric-explorer/db/mysqlservice.js:490
if( rows.length == 0 )
^
TypeError: Cannot read property 'length' of undefined
at Query._callback (/Users/maheshgovind/go/fabric-explorer/db/mysqlservice.js:490:21)
at Query.Sequence.end (/Users/maheshgovind/go/fabric-explorer/node_modules/mysql/lib/protocol/sequences/Sequence.js:86:24)
at /Users/maheshgovind/go/fabric-explorer/node_modules/mysql/lib/protocol/Protocol.js:399:18
at Array.forEach (native)
at /Users/maheshgovind/go/fabric-explorer/node_modules/mysql/lib/protocol/Protocol.js:398:13
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)

when i try to run the application, i am not able to start the application.
the error is
^[[36m[2017-07-13 19:51:21.420] [DEBUG] metrics - ^[[39m[ 0, 0 ]
^[[36m[2017-07-13 19:51:21.424] [DEBUG] metrics - ^[[39m[ 0, 0 ]
^[[36m[2017-07-13 19:51:21.446] [DEBUG] mysqlservice - ^[[39m the getRowsBySQlCase select count(1) c from chaincodes where channelname='mychannel'
/root/gocode/src/github.com/hyperledger/fabric-explorer/db/mysqlservice.js:491
if( rows.length == 0 )
^
TypeError: Cannot read property 'length' of undefined
at Query._callback (/root/gocode/src/github.com/hyperledger/fabric-explorer/db/mysqlservice.js:491:21)
at Query.Sequence.end (/root/gocode/src/github.com/hyperledger/fabric-explorer/node_modules/mysql/lib/protocol/sequences/Sequence.js:86:24)
at /root/gocode/src/github.com/hyperledger/fabric-explorer/node_modules/mysql/lib/protocol/Protocol.js:399:18
at Array.forEach (native)
at /root/gocode/src/github.com/hyperledger/fabric-explorer/node_modules/mysql/lib/protocol/Protocol.js:398:13
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
please fix the error

we are modify database modify script , you can run and try it .

The bug has been fixed. You can gti pull

出现这个问题的原因是什么？

repo: onechain/fabric-explorer


text:
[onboarding] tasks to try to complete before the first lecture on Monday, February 20, 2023

[x] Sign into ChatGPT https://chat.openai.com/chat
[x] Ask ChatGPT for help completing this checklist and copy and paste it, or to walk you through it
[x] Install a package manager (Chocolatey for Windows or Homebrew for Mac), and use either to install Anaconda
[x] Install Visual Studio Code using the package manager
[x] Activate GitHub Student Developer Pack: https://education.github.com/pack
[x] Install the Copilot extension for Visual Studio Code: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot
[x] Sign into Visual Studio Code to activate the GitHub Student Developer Pack
[x] Sign up for datathinking.zulipchat.com if you want to contribute to the data we will analyze together with your messages from our group chat

[x] Post a message in the General (https://datathinking.zulipchat.com/#narrow/stream/345278-general/topic/intros) stream topic called "intros" saying what you hope to get out of the course, and what experience you have with data thinking, AI & machine learning, statistics, mathematics, and computer science and programming. If you are new to all of this, that's great too! We just want to get a sense of where everyone is starting from :)
[ ] Comment on this issue or ask on the Zulip chat if you run into any trouble, have any doubts or questions. Please include which task you were trying to complete, what you tried, and don't worry about asking ChatGPT too many questions or for help as much as possible!

me:
Could you please help me with going through these checklist: - [ ] Install a package manager (Chocolatey for Windows or Homebrew for Mac), and use either to install Anaconda

[ ] Install Visual Studio Code using the package manager
[ ] Activate GitHub Student Developer Pack: https://education.github.com/pack
[ ] Install the Copilot extension for Visual Studio Code: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot
[ ] Sign into Visual Studio Code to activate the GitHub Student Developer Pack
[ ] Sign up for datathinking.zulipchat.com if you want to contribute to the data we will analyze together with your messages from our group chat

[ ] Post a message in the General (https://datathinking.zulipchat.com/#narrow/stream/345278-general/topic/intros) stream topic called "intros" saying what you hope to get out of the course, and what experience you have with data thinking, AI & machine learning, statistics, mathematics, and computer science and programming. If you are new to all of this, that's great too! We just want to get a sense of where everyone is starting from :)
[ ] Comment on this issue or ask on the Zulip chat if you run into any trouble, have any doubts or questions. Please include which task you were trying to complete, what you tried, and don't worry about asking ChatGPT too many questions or for help as much as possible!

ChatGPT: Sure, I can help you go through this checklist. Here are the steps you can follow:
Install a package manager (Chocolatey for Windows or Homebrew for Mac), and use either to install Anaconda: You can follow the installation instructions for either Chocolatey or Homebrew depending on your operating system. Once you have installed the package manager, you can use it to install Anaconda by running the following command in your terminal:
For Chocolatey: choco install anaconda3
For Homebrew: brew install anaconda

Install Visual Studio Code using the package manager: You can use the same package manager you installed earlier to install Visual Studio Code. Here are the commands you can use:
For Chocolatey: choco install vscode
For Homebrew: brew install --cask visual-studio-code

Activate GitHub Student Developer Pack: You can activate the GitHub Student Developer Pack by visiting the following link: https://education.github.com/pack. Follow the instructions on the page to verify your student status and activate the pack.
Install the Copilot extension for Visual Studio Code: You can install the Copilot extension for Visual Studio Code by visiting the following link: https://marketplace.visualstudio.com/items?itemName=GitHub.copilot. Click on the "Install" button to add the extension to your Visual Studio Code installation.
Sign into Visual Studio Code to activate the GitHub Student Developer Pack: Once you have activated the GitHub Student Developer Pack, you need to sign in to Visual Studio Code to activate it. You can do this by clicking on the "Sign in" button in the bottom left corner of the Visual Studio Code window and following the instructions on the screen.
Sign up for datathinking.zulipchat.com if you want to contribute to the data we will analyze together with your messages from our group chat: You can sign up for datathinking.zulipchat.com by visiting the website and creating an account. Once you have created an account, you can follow the next steps:
Post a message in the General (https://datathinking.zulipchat.com/#narrow/stream/345278-general/topic/intros) stream topic called "intros" saying what you hope to get out of the course, and what experience you have with data thinking, AI & machine learning, statistics, mathematics, and computer science and programming. If you are new to all of this, that's great too! We just want to get a sense of where everyone is starting from :)
     Comment on this issue or ask on the Zulip chat if you run into any trouble, have any doubts or questions. Please include which task you were trying to complete, what you tried, and don't worry about asking ChatGPT too many questions or for help as much as possible!

I hope this helps! Let me know if you have any other questions.


text:
🛑 Bowson is down

In 2560350, Bowson (https://www.bowsonproperty.co.uk) was down:

HTTP code: 508
Response time: 990 ms

Resolved: Bowson is back up in fc4b0aa after 45 minutes.

repo: oneitsJosh/oneitsJosh


text:
The 0.3.0 api seems to be missing the configuration

Resource onelogin_apps seems to be lacking the "configuration" field, making it impossible to actually configure any application. Am I missing something?

Thank you for point that out.
I made an error in the specification for the apps. I will correct that in the next release

The OpenAPI specification has been updated as well as the readme.
A signed fork has been uploaded to the Terraform Registry

I have been looking into the issue, this is the top priority for this repo. I will keep you updated

Please check out the recent release. User and App resources have been added. I will continue to work on the schemas to allow more resources to be accessed

I am working to have the remaining resources added: App rules, smart hooks, users, and mappings.
The previous way of handling SAML apps and OIDC apps as different resources, has been combined into the onelogin_app resource.
API Authorizations was formerly known as auth_server.

authors: Jmfwolf farcaller

repo: onelogin/terraform-provider-onelogin


text:
fix onJoin type / fix the build (with latest dart sdk) / fix unit test that's already breaking / add test for multiple sideEffects issue

address discussion on #17

released as 3.1.0 - thanks for the contribution !!!

authors: bsutton panghy


text:
[ImageCache] How to handle cache of images processed by different processors

Check List
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.

[✓] I have read the wiki page and cheat sheet, but there is no information I need.
[✓] I have searched in existing issues, but did not find a same one.
[✓] I want to report a problem instead of asking a question. It'd better to use kingfisher tag in Stack Overflow to ask a question.

Issue Description
In some cases, I need to store/retrieve/remove cache of images by myself, then I need to keep processors or instances of KingfisherParsedOptionsInfo to splice the right processor.identifier for storing/retrieving/removing cache of specified url.
What's more,  I also must know the order of processors' identifier with which image data stored in cache, when I want to retrieving or removing the cache of specified url.
Is there better ways to avoid holding processors or instances of KingfisherParsedOptionsInfo ?
    open func store(_ image: KFCrossPlatformImage,
                      original: Data? = nil,
                      forKey key: String,
                      processorIdentifier identifier: String = "",
                      cacheSerializer serializer: CacheSerializer = DefaultCacheSerializer.default,
                      toDisk: Bool = true,
                      callbackQueue: CallbackQueue = .untouch,
                      completionHandler: ((CacheStoreResult) -> Void)? = nil)

    open func retrieveImage(
        forKey key: String,
        options: KingfisherParsedOptionsInfo,
        callbackQueue: CallbackQueue = .mainCurrentOrAsync,
        completionHandler: ((Result<ImageCacheResult, KingfisherError>) -> Void)?)

    open func removeImage(forKey key: String,
                          processorIdentifier identifier: String = "",
                          fromMemory: Bool = true,
                          fromDisk: Bool = true,
                          callbackQueue: CallbackQueue = .untouch,
                          completionHandler: (() -> Void)? = nil)

What
Reproduce
[The steps to reproduce this issue. What is the url you were trying to load, where did you put your code, etc.]
Other Comment

The processed image is and must be treated as a different one comparing to the original image when storing in the cache. Otherwise, it won't be possible to cache the correct image if any processors are used.
At the same time, the cache key (which contains the URL information) is hashed before being used. So to make sure the cache system working with processed images and also make it possible to remove a certain processed image manually, I suggest you to keep track of the processors used and it is now the correct way to perform your this desired action.
Another possible way I can think out now, is using the cacheOriginalImage and do not cache the processed images. By this:

The processed images won't be cached.
The original image will be cached to disk only.
Later when you need to load the processed image, Kingfisher fetches the original image from disk cache, processes it and returns it.
When you need to clear that particular cached original image, since that image is not using any special processor, you can use the plain key (the URL by default) to remove it.

This code should do the trick:
imageView.kf.setImage(
    with: url,
    options: [
        .processor(p)
        .cacheOriginalImage,
        .cacheMemoryOnly,
        .memoryCacheExpiration(.expired)
    ]
)

If you need a different behavior of memory cache for the processed images, you can also try to adjust its memoryCacheExpiration.

authors: darkyang onevcat

repo: onevcat/Kingfisher


text:
Reason: Image not found

My Log, run with IP6PLUS IOS 9.3 and Kingfisher at "2.4.2"
dyld: Library not loaded: @rpath/Kingfisher.framework/Kingfisher
Referenced from: /Users/thanhngoxuan/Library/Developer/CoreSimulator/Devices/9FA2F252-0249-4637-BFA6-BE3181C88476/data/Containers/Bundle/Application/DF99B81D-1BA0-4C2D-8C62-C360260B4D92/Alumni.app/Alumni
Reason: image not found
(lldb)
 button.kf_setImageWithURL(url, forState:.Normal)

Please ensure you have embedded Kingfisher.framework in your Embed Framework build phase.

fixed, close issue, thanks

authors: onevcat thanhdevapp


text:
Add IParallaxAndHapticEffect

Project Name: IParallaxAndHapticEffect
Project URL: https://github.com/Omilr/IParallaxAndHapticEffect.git
Project Description: ✨ Super easy Parallax and Haptic Effect.
This library helps you easily use the 'Parallax' and 'Haptic' effects.
Customized 3D parallax and haptic effects are provided(High-performance interactive UX/UI).

Very nice


text:
Processing empty pdr shots

RI-580

Does this repo have a test suite?

Does this repo have a test suite?

We don't currently run tests like we do on processing. When we get around to refactor this and bring this into processing repo, we should add tests for all top level commands.

Does this repo have a test suite?

We don't currently run tests like we do on processing. When we get around to refactor this and bring this into processing repo, we should add tests for all top level commands.

:sad-ok-emoji:

authors: creniq jeremyqa

repo: onsiteiq/OpenSfM


text:
Consider using GitHub actions for PyPI releases

This is a convenience. While it might be a pain to set up for just one repo, we'll soon have three or four Python repos, and then I think the benefits would be significant.

I'd like to get another PyPI release out for COGS. Do you want to do this before our next release?

No rush on this. Go ahead and make the releases you need.

It's pretty easy to add GH Actions so I created one. I could test it out and if it fails, I can just make a manual PyPI release? Or we can just wait. Doesn't matter to me.

Sure, try and use the action to make a release.

authors: beckyjackson jamesaoverton

repo: ontodev/cogs


text:
🛑 Start Fedora Project is down

In d5f7050, Start Fedora Project (https://start.fedoraproject.org/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Start Fedora Project is back up in caf8ac6.

repo: onuralpszr/uptime


text:
support "allowSingleLine" option

support for option "allowSingleLine"

This rule has an object option for an exception:
"allowSingleLine": true (default false) allows the opening and closing braces for a block to be on the same line

This plugin is theoretically equivalent to applying ESLint formatting (brace-style only) after applying Prettier formatting.
Therefore, currently, it is not possible to tell from the intermediate text (prettier formatted) whether the original text was written as a single line, so research is needed to implement the feature.


text:
clone_wp_site.py: "No such file or directory" error

Hi, I'm getting an error using clone_wp_site.py to clone an app locally.
Traceback (most recent call last):
  ...
  File "clone_mysite.py", line 156, in main
    mariatool_remote.import_remote_db(sshrunner, sql_filepath_remote)
  ...
RuntimeError: ... /home/myuser/mysite.sql: No such file or directory

Full log
[myuser@opal1 ~]$ python3 clone_mysite.py
2022-09-29 15:21:00 : INFO  : Retrieving webserver information for opal1.opalstack.com
2022-09-29 15:21:01 : INFO  : Retrieving existing osuser myuser
2022-09-29 15:21:02 : INFO  : Creating domain test.mysite.com
2022-09-29 15:21:13 : INFO  : Creating application mysite
2022-09-29 15:21:35 : INFO  : Creating site mysite
2022-09-29 15:21:41 : INFO  : Retrieving database configurations
2022-09-29 15:21:45 : INFO  : Exporting database
2022-09-29 15:21:46 : INFO  : Copying files
2022-09-29 15:21:49 : INFO  : Copying database content
2022-09-29 15:21:49 : INFO  : Importing database
Traceback (most recent call last):
  File "clone_mysite.py", line 170, in <module>
    main(args)
  File "clone_mysite.py", line 156, in main
    mariatool_remote.import_remote_db(sshrunner, sql_filepath_remote)
  File "/usr/local/lib/python3.6/site-packages/opalstack/util.py", line 361, in import_remote_db
    sshrunner.run_ssh(cmd)
  File "/usr/local/lib/python3.6/site-packages/opalstack/util.py", line 259, in run_ssh
    return self.run_passbased_ssh(remote_cmd, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/opalstack/util.py", line 144, in run_passbased_ssh
    return self.run_via_sshpass(prelude + [remote_cmd], *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/opalstack/util.py", line 133, in run_via_sshpass
    return run(prelude + cmd, *args, **kwargs)
  File "/usr/local/lib/python3.6/site-packages/opalstack/util.py", line 23, in run
    raise RuntimeError(f'Command "{cmd}" exited with status {p.returncode}. Stderr: {stderr}')
RuntimeError: Command "['sshpass', '-f', 'myuser.sshpass', '/usr/bin/ssh', '-q', '-o', 'PasswordAuthentication=yes', '-o', 'PubkeyAuthentication=no', '-o', 'StrictHostKeyChecking=no', '[myuser@opal1.opalstack.com](mailto:myuser@opal1.opalstack.com)', 'mysql --defaults-extra-file=/home/myuser/mysite.sqlpasswd -u mysite_12345678 mysite_12345678 < /home/myuser/mysite.sql']" exited with status 1. Stderr: bash: /home/myuser/mysite.sql: No such file or directory

When src and dst are the same server, line 152 copies the exported sql file to itself, line 153 deletes it, and then line 156 fails when it tries to import the missing file.
https://github.com/opalstack/opalstack-python/blob/13642f1e74de74daa38e8c5ed97cfe432494eeee/examples/clone_wp_site.py#L151-L157

Similar to #8, my apologies for oversight and trouble it caused.
Development of this script was performed across two separate servers, and so I missed this case.
Fix merged and will be included in v1.0.1.

authors: cvn yqdv

repo: opalstack/opalstack-python


text:
Amazon EKS Tutorial - Change necessary for database connectivity

At this step:
https://open-amt-cloud-toolkit.github.io/docs/2.11/Tutorials/Scaling/Kubernetes/deployingk8s-eks/#create-databases-and-schema
The database is not "connectable" -- it gives a timeout error:
In order to correct this, I had to go to the RDS Database to identify the AZ, and then change the corresponding route table for that AZ (eksctl-awe-eks-amt-cluster/PrivateRouteTableUSEAST1D) to use the igw instead of the NAT gateway to enable communication.
Perhaps I can change it back after everything else is set up, but at this point, not quite sure.

Thanks for pointing this out and having a workaround. It looks like you are correct.  AWS seems to have shifted their default configuration a bit and our old path no longer works.
After some quick testing, you can swap the rule back after you've finished setting up the databases/schema. if desired. It does not affect the services.   I'll do some more testing and create a PR to correct our documentation.

Either y'all or AWS seems to have made a change overnight that stopped making this step necessary (I'm betting AWS!)

Identify all the private subnets
$global:privSubnets = (aws ec2 describe-route-tables --filters "Name=tag:Name,Values="eksctl-$clusterName-cluster/PrivateRouteTable*"")|ConvertFrom-Json
Create the db subnet group with ONLY the private subnets
(aws rds create-db-subnet-group --db-subnet-group-name private-$eksVPC --db-subnet-group-description "$($clusterName) Database Subnet Group" --subnet-id $privSubnets.routetables.associations.subnetid --output json)|ConvertFrom-Json
Find the network igw and nat gw (saving them so we can put them back)
$global:dbAZ = $dbInstance.DBInstances.AvailabilityZone
$global:upperAZ = $dbAZ.Replace('-','').ToUpper()
$global:pubRTB = (aws ec2 describe-route-tables --filters "Name=tag:Name,Values="eksctl-$clusterName-cluster/PublicRouteTable"")|ConvertFrom-Json
$global:privRTB = (aws ec2 describe-route-tables --filters "Name=tag:Name,Values="eksctl-$clusterName-cluster/PrivateRouteTable$($upperAZ)"")|ConvertFrom-Json
$global:privNATGW = $privRTB.RouteTables.Routes.NatGatewayId
$global:pubIGW = ($pubrtb.RouteTables.Routes| Where-Object -Property DestinationCidrBlock -eq "0.0.0.0/0").GatewayId
$global:privRTBid = $privRTB.RouteTables.RouteTableId
$global:pubRTBid = $pubRTB.RouteTables.RouteTableId
Open up the subnet where the instance is homed:
(aws ec2 replace-route --route-table-id $privRTBid --destination-cidr-block '0.0.0.0/0' --gateway-id $pubigw)|ConvertFrom-Json
Close the subnet back up after we've created the tables:
(aws ec2 replace-route --route-table-id $privRTBid --destination-cidr-block '0.0.0.0/0' --nat-gateway-id $privNATGW)|ConvertFrom-Json
My database connectivity issue hasn't gone away yet, but this will force the database to "land" in the private subnets, and allow connectivity and then close it back up.

after much head beating, and an open support case, I realized that the subnet security group, when we build it by hand, instead of automatically from the wizards do not include the cluster subnet
$global:secGrp = $dbInstance.DBInstances.VpcSecurityGroups.VpcSecurityGroupId
$global:clusterSG = ((aws ec2 describe-security-groups --filters "Name=tag:Name,Values=`"eks-cluster-sg-AWE-EKS*`"")|ConvertFrom-Json).SecurityGroups.Groupid
wog "Authorizing Groups"
wob (aws ec2 authorize-security-group-ingress --group-id $secGrp --ip-permissions "IpProtocol=tcp,FromPort=5432,ToPort=5432,IpRanges=$($ipRange)")|ConvertFrom-Json|ConvertTo-Json -Depth 32
wob (aws ec2 authorize-security-group-ingress --group-id $secGrp --source-group $clusterSG --protocol tcp --port 5432)|ConvertFrom-Json|ConvertTo-Json -Depth 32

Seems to have solved it.
Doing a (hopefully) final run through before posting the latest revision of the powershell script that addresses this.

Hello!
I'm closing this issue.  I believe this was resolved offline a bit back.
Outside of the script vs RDS Create (in AWS UI) discrepancy mentioned above, the connection string had to change from sslmode=no-verify to sslmode=require exclusively for Postgres 15 DB instances.  Currently, AWS still defaults to Postgres 14, but we have modified the Open AMT documentation to include these details too in this PR.  Live page found here.  Thanks!

authors: aggietallboy bwendlandt-intel


text:
[BUG] PyTorch build fails while building OpenCE v1.11.0 for cuda 11.8 on a user's environment.

Errors are:
<mybuilddir>/_build_env/bin/../lib/gcc/powerpc64le-conda-linux-gnu/11.2.0/../../../../powerpc64le-conda-linux-gnu/bin/ld: ../lib/libtorch_cpu.so: undefined reference to `cuptiSetEventCollectionMode@libcupti.so.11.8'
<mybuilddir>/_build_env/bin/../lib/gcc/powerpc64le-conda-linux-gnu/11.2.0/../../../../powerpc64le-conda-linux-gnu/bin/ld: ../lib/libtorch_cpu.so: undefined reference to `cudaGetDeviceCount@libcudart.so.11.0'
<mybuilddir>/_build_env/bin/../lib/gcc/powerpc64le-conda-linux-gnu/11.2.0/../../../../powerpc64le-conda-linux-gnu/bin/ld: ../lib/libtorch_cpu.so: undefined reference to `cudaGetErrorString@libcudart.so.11.0'
<mybuilddir>/_build_env/bin/../lib/gcc/powerpc64le-conda-linux-gnu/11.2.0/../../../../powerpc64le-conda-linux-gnu/bin/ld: ../lib/libtorch_cpu.so: undefined reference to `cudaDriverGetVersion@libcudart.so.11.0'

Fixed in v1.11.2.

repo: open-ce/open-ce


text:
Issue with jaxlib feedstock wrt nvcc dependency. ( observed while building using build feedstock cmd ) - ppc

`conda_build.exceptions.DependencyNeedsBuildingError: Unsatisfiable dependencies for platform linux-ppc64le: {'nvcc_linux-ppc64le=12.2'}
[OPEN-CE-ERROR]-11 Unable to build recipe: jaxlib
Unsatisfiable dependencies for platform linux-ppc64le: {'nvcc_linux-ppc64le=12.2'}
ERROR:OPEN-CE:[OPEN-CE-ERROR]-11 Unable to build recipe: jaxlib
Unsatisfiable dependencies for platform linux-ppc64le: {'nvcc_linux-ppc64le=12.2'}
ERROR OPEN-CE:<module>(139): [OPEN-CE-ERROR]-11 Unable to build recipe: jaxlib
Unsatisfiable dependencies for platform linux-ppc64le: {'nvcc_linux-ppc64le=12.2'}`

these are related to 1.11.2


text:
Update arch diagram

Signed-off-by: Jian Qiu jqiu@redhat.com

/assign @mikeshng

/lgtm
This looks great!

repo: open-cluster-management-io/community


text:
cluster auto approve could fail occasionally

Describe the bug
When enable the AutoApprove feature gate, sometimes the cluster will not be get accepted by the hub due to timing issue.
To Reproduce
enable the AutoApprove feature gate with clusteradmin init and run clusteradm join.  It happens occasionally.
Expected behavior
The cluster should be always approved
Environment ie: OCM version, Kubernetes version and provider:
latest
Additional context
Add any other context about the problem here.

/assign @skeeey

repo: open-cluster-management-io/ocm


text:
Deploy repo fails to deploy newer snapshots

Overview
Observed on: RHEL, Travis Worker (UBU 18.04)
./start.sh (with or without optional tags) results in the following output Travis Link:
##### Applying prerequisites
Error: unknown shorthand flag: 'k' in -k
Usage:
  oc apply -f FILENAME [flags]
Examples:
  # Apply the configuration in pod.json to a pod.
  oc apply -f ./pod.json

  # Apply the JSON passed into stdin to a pod.
  cat pod.json | oc apply -f -

  # Note: --prune is still in Alpha
  # Apply the configuration in manifest.yaml that matches label app=nginx and delete all the other resources that are not in the file and match label app=nginx.
  oc apply --prune -f manifest.yaml -l app=nginx

  # Apply the configuration in manifest.yaml and delete all the other configmaps that are not in the file.
  oc apply --prune -f manifest.yaml --all --prune-whitelist=core/v1/ConfigMap
Available Commands:
  edit-last-applied Edit latest last-applied-configuration annotations of a resource/object
  set-last-applied  Set the last-applied-configuration annotation on a live object to match the contents of a file.
  view-last-applied View latest last-applied-configuration annotations of a resource/object
Options:
      --all=false: Select all resources in the namespace of the specified resource types.
      --allow-missing-template-keys=true: If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.
      --cascade=true: If true, cascade the deletion of the resources managed by this resource (e.g. Pods created by a ReplicationController).  Default true.
      --dry-run=false: If true, only print the object that would be sent, without sending it.
  -f, --filename=[]: that contains the configuration to apply
      --force=false: Only used when grace-period=0. If true, immediately remove resources from API and bypass graceful deletion. Note that immediate deletion of some resources may result in inconsistency or data loss and requires confirmation.
      --grace-period=-1: Period of time in seconds given to the resource to terminate gracefully. Ignored if negative. Set to 1 for immediate shutdown. Can only be set to 0 when --force is true (force deletion).
      --include-uninitialized=false: If true, the kubectl command applies to uninitialized objects. If explicitly set to false, this flag overrides other flags that make the kubectl commands apply to uninitialized objects, e.g., "--all". Objects with empty metadata.initializers are regarded as initialized.
      --openapi-patch=true: If true, use openapi to calculate diff when the openapi presents and the resource can be found in the openapi spec. Otherwise, fall back to use baked-in types.
  -o, --output='': Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-file.
      --overwrite=true: Automatically resolve conflicts between the modified and live configuration by using values from the modified configuration
      --prune=false: Automatically delete resource objects, including the uninitialized ones, that do not appear in the configs and are created by either apply or create --save-config. Should be used with either -l or --all.
      --prune-whitelist=[]: Overwrite the default whitelist with <group/version/kind> for --prune
      --record=false: Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.
  -R, --recursive=false: Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.
  -l, --selector='': Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
      --server-dry-run=false: If true, request will be sent to server with dry-run flag, which means the modifications won't be persisted. This is an alpha feature and flag.
      --template='': Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].
      --timeout=0s: The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object
      --validate=false: If true, use a schema to validate the input before sending it
      --wait=false: If true, wait for resources to be gone before returning. This waits for finalizers.
Use "oc <command> --help" for more information about a given command.
Use "oc options" for a list of global command-line options (applies to all commands).

Update (and solution)
The script works on the oc cli version 4.3 but will throw the above error on the latest version.

repo: open-cluster-management/deploy


text:
skip unavailable managed clusters and continue

Signed-off-by: Roke Jung roke@redhat.com
https://github.com/open-cluster-management/backlog/issues/12996
When going through managed clusters to register, skip any unavailable managed cluster and continue copying secrets of available managed clusters.

/test test-unit

/lgtm

authors: rokej xiangjingli


text:
支持GLM4v-9b-chat评测吗？

如题，支持GLM4v-9b-chat评测吗？
https://huggingface.co/THUDM/glm-4v-9b

已支持

authors: kennymckormick yinggoga

repo: open-compass/VLMEvalKit


text:
RFC: WASM based ResourcePipeline

Description
This RFC supersedes  #195.
We propose a change to the architecture of the ocm-controller that will introduce Web Assembly (WASM) middleware in order to transform OCM resources.
In #195 we proposed modifying the existing Resource   controller to achieve this aim. However because the functionality of WASM lends itself to transformation pipelines we propose to introduce a new Kubernetes resource ResourcePipeline .  This will allow for the delivery of resources to arbitrary environments using WASM based delivery modules. This enables us to generalize the utility of the ocm-controller beyond Kubernetes.
Context
One of the design guidelines for the ocm-controller is that it should support arbitrary transformation of resources. Standard transformations such as Localization and Configuration are provided "in-tree" as part of the controller.
We currently perform transformation using code that is common to both Localization and Configuration controllers. In addition we share resources using Snapshots. Snapshots provide a generic way to pass OCM resources between different Kubernetes controllers.
Whilst this works it requires operators to manage a large number of Custom Resources generating additional complexity meaning it can be difficult to build a mental model of the transformation sequence. It also leads to a somewhat large and complex codebase.
WASM Solution
WASM produces tiny binaries that execute in a sandboxed runtime environment. These properties make it ideal for the execution of untrusted code in a dynamic way. We propose that rather than using discrete controllers to perform transformation of OCM resources we can use WASM binaries to execute the transforms. WASM binaries can be executed from the ocm-controller and specified by the operator in the Resource CR.
In order for this solution to work we need to define a contract that WASM binaries and the ocm-controller must observe:

1: The WASM binary must be stored as a resource in an OCM component with type webAssembly
2: By default the ocm-controller will mount a file-system at the path /data  in which resources files will be available (this can be disabled if desired)
3: Any transformations should be performed on the filesystem
4: The ocm-controller will provide host calls that can be used to call ocm library functions such as GetResourceBytes, GetResourceMeta, GetResourceAccess. These host calls will be documented on the ocm website.
5: Configuration can be passed to the WASM guest process using the values or valuesFrom fields.

The OCM project would provide a component that publishes official / first-party modules.
These modules could offer functionality such as spiff based localization and configuration, ocm:// prefix based localization and other transformations.
End-users could provide their own modules by publishing the component and specifying the details in the ResourcePipeline manifest.
Delivery & Secrets Integration
In order to support off-Kubernetes systems the ResourcePipeline spec can specify a set of delivery targets. The mechanics for transferring a resource to a target are the the responsibility of the delivery modules. The output of the workflow process can be transferred to multiple targets.
In order to access target we provide access to secrets which are retrieved from secret stores and passed to the WASM module at the time of execution. In order to realize this functionality we will leverage the SecretStores API provided by the External Secrets Operator.
API Object
apiVersion: delivery.ocm.software/v1alpha1
kind: ResourcePipeline
metadata:
  name: podinfo-deployment
  namespace: ocm-system
spec:
  interval: 10m0s
  serviceAccountName: blue-team
  sourceRef: # the source must be a Kubernetes API object of kind ComponentVersion
    name: podinfo
    namespace: default
    resource: manifests
  secrets:
  - name: kubeconfig
    secretStoreRef: # ideally we can use ESO here
      name: vault
      namespace: default
    remoteRef:
      key: /kv/prod/kubeconfig
  - name: sshkey
    secretStoreRef:
      name: vault
      namespace: default
    remoteRef:
      key: /kv/prod/sshkey
  # parameters can be used to provided configuration that is
  # shared across multiple workflow steps
  parameters:
    replicas: 2
# parameters could also come from a configmap
# parametersFrom:
#   kind: ConfigMap
#   name: params
#   namespace: default
# workflows could be templated and re-used
# workflowRef:
#   name: release-workflow
  workflow:
    steps:
    - name: resolver
      module: delivery.ocm.software/middleware:v1.0.0@resolver
      # configuration values can be validated using cue policy that is part of the component
      values:
        prefix: ocm://
    - name: configure
      registry: ghcr.io/phoban01 # registry is optional, defaults to ghcr.io/open-component-model
      module: delivery.ocm.software/middleware:v1.0.0@configure
      values:
        replicas: $parameters.replicas
    - name: label
      module: delivery.ocm.software/middleware:v1.0.0@labeler
      values:
        owned-by: "ocm.software"
        managed-by: "weaveworks"
  delivery:
    targets:
    - name: local
      module: delivery.ocm.software/ssa:v1.0.0@ssa
      values:
        targetNamespace: default
        createNamespace: true
    - name: remote
      module: delivery.ocm.software/ssa:v1.0.0@ssa
      values:
        kubeconfig: $secrets.kubeconfig
    - name: oci
      module: delivery.ocm.software/oci:v1.0.0@push
      values:
        name: my-resource
        tag: release
        kubeconfig: $secrets.regcred
    - name: git
      module: delivery.ocm.software/git:v1.0.0@push
      values:
        repository: my-resource
        sshkey: $secrets.gitssh
        message: "[ocm-controller] add resources"
    - name: lambda
      module: delivery.ocm.software/aws:v1.0.0@lambda
      values:
        credentials: $secrets.aws

Could use a bit better explanation on the workflow part:
workflow:
    steps:
    - name: resolver
      module: delivery.ocm.software/middleware:v1.0.0@resolver
      # configuration values can be validated using cue policy that is part of the component
      values:
        prefix: ocm://
    - name: configure
      registry: ghcr.io/phoban01 # registry is optional, defaults to ghcr.io/open-component-model
      module: delivery.ocm.software/middleware:v1.0.0@configure
      values:
        replicas: $parameters.replicas
    - name: label
      component: delivery.ocm.software/middleware:v1.0.0@labeler
      values:
        owned-by: "ocm.software"
        managed-by: "weaveworks"

So module appears to be optional, right? What's the module, if not defined? You define component instead. Did you just leave off module? Or would be somehow auto-discovered?
What is the purpose of component if defined? What is it if not defined? :)

What is the purpose of component if defined? What is it if not defined? :)
Component was a typo 😄 . Module is required, it points at a WebAssembly resource and the reference is :@.

Parameters are for configuration that might be used across many workflow steps.

As a side note, all of the pipeline items will need be executed by the same controller on the same pod. Otherwise we might end up in a situation where one of the items runs on a different mount and will fail to find an output. In our previous implementation this sync point was the registry. Here it will be the mount. And we don't want to bother with NFS.

repo: open-component-model/ocm-controller


text:
chore: nightly build

What this PR does / why we need it
Users would like to have a usable ocm-cli binary ASAP.
This step leverages the goreleaser and builds now on every push the ocm-cli binaries and stores them as assets on a 'stable' release called: 0.0.0-latest with tag: ocm-cli/latest

Why do you want the goreleaser every night?

Why do you want the goreleaser every night?

see: https://github.com/open-component-model/ocm-project/issues/240

Every night there should be a build of the latest sources from the main branch. The used commit should be tagged with "nightly" and there should be one (pre-created) release also called "nightly". That nightly release should get assigned with the new nightly tag on every successful build. The assets of the release for sure should be the ones created by the last nightly build. Instead of creating a new Docker image with the OCM CLI on every push to the main branch, the nightly build should push that image and tag it with "latest".

But they you have to change the prerelease version part somehow to nightly instead of dev for all the involved image and component versions. The initial idea was just to use dev for such floating intermediate builds/releases.
You just call the components workflow, which will produce the dev version, I think.

@hilmarf

You just call the components workflow, which will produce the dev version, I think.
will injecting the nightly version be sufficient to get persisted everywhere, or is there a kind of hardcoded ref to "dev" based on the prerelease?

we could talk about the trigger for the build not happening on every change, but only when certain files (e.g. *.go) are changed (or vice versa, the build should not start when certain files are changed, e.g. *.md).
However, the discussion could become very detailed and the maintenance effort could be quite high (you always have to keep this in mind when adapting the technical release process).
What do you think?

would we like to set v0.0.0 or use the vx.y.0-dev?

version should be semver-compatible
when we use one single stable version number, it's a lot easier for all self-made automation scripts of our consumers, to fetch the latest version - that's why I started with v0.0.0

authors: frewilhelm hilmarf mandelsoft morri-son

repo: open-component-model/ocm


text:
Fix Homebrew release

Add to the bottom of release.yml (after addressing TODO)
  bottle:
    needs: release
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        # macos-13 is not available. https://github.com/actions/runner-images/issues/6426
        include:
          - name: arm64_monterey
            os: macos-12
            target: aarch64-apple-darwin
          - name: arm64_big_sur
            os: macos-11
            target: aarch64-apple-darwin
          - name: monterey
            os: macos-12
            target: x86_64-apple-darwin
          - name: big_sur
            os: macos-11
            target: x86_64-apple-darwin
          - name: catalina
            os: macos-10.15
            target: x86_64-apple-darwin
          - name: x86_64_linux
            os: ubuntu-latest
            target: x86_64-unknown-linux-gnu
    steps:
      - id: setup-homebrew
        uses: Homebrew/actions/setup-homebrew@master
      # TODO need to update the url and sha256, otherwise brew install complains
      # try with checkout and git commands
      # https://lannonbr.com/blog/2019-12-09-git-commit-in-actions/
      - run: brew tap open-contracting/tap
      - env:
          CARGO_TARGET: ${{ matrix.target }}
        run: brew install --build-bottle --verbose ocdscardinal
      - run: brew bottle --no-rebuild --verbose ocdscardinal
      - env:
          GH_TOKEN: ${{ github.token }}
        run: gh release upload ${{ github.ref_name }} ocdscardinal--${{ github.ref_name }}.${{ matrix.name }}.bottle.tar.gz

brew install ... errors with:
==> Verifying checksum for '7c4169757f272594850bc4fae4e03439505521618da28851cbe1ae7226e5dd96--cardinal-rs-0.1.0.tar.gz'
Error: ocdscardinal: SHA256 mismatch
Expected: 8408aea9b1f47369e07697c4bd2411179e18fa5c1e9fe5b79b9f2ff1dd712323
  Actual: 7881c01b85fe3088643faf757d90d2267b52aaafddbe5a45bab464b6d42430fd
    File: /home/runner/.cache/Homebrew/downloads/7c4169757f272594850bc4fae4e03439505521618da28851cbe1ae7226e5dd96--cardinal-rs-0.1.0.tar.gz
To retry an incomplete download, remove the file above.

See also https://github.com/marcprux/update-homebrew-formula-action
When I last looked at this, I was also looking through org:fair-ground HOMEBREW_FAIRTOOL_ARCH on GitHub Search.
Need to also fix GitHub Actions on https://github.com/open-contracting/homebrew-tap/actions

Cutting content from cli/index.rst for now:
If you're a **macOS Homebrew** or **Linuxbrew** user, you can install ocdscardinal from our tap:

.. code:: bash

   brew install open-contracting/tap/ocdscardinal

Otherwise,

repo: open-contracting/cardinal-rs


text:
Create a main branch to serve as default in lieu of master.

Simple procedure, as explained here.
Including renaming relevant references. After this change I'll:

Switch the repository default branch to main.
Make sure DockerHub picks up new changes.

I like this PR, what happened to it?

I like this PR, what happened to it?

I didn't want to spring this while everyone was away, but I'm happy to revive it now! Thanks for the reminder.

authors: attwad axmb

repo: open-covid-data/healthmap-gdo-temp


text:
Smirky replaces initial VdW types with generic

I'm running into a weird issue in the most recent tests with smirky on VdW parameters.
I noticed while I was testing for pull request #237
For example, my initial VdW file has the following:
% SMIRKS    TypeName
[*:1]       0
[1:1]       H
[5:1]       B
[6:1]       C
[7:1]       N
[8:1]       O
[9:1]       F
[13:1]      Al
[14:1]      Si
[15:1]      P
[16:1]      S
[17:1]      Cl
[33:1]      As
[34:1]      Se
[35:1]      Br
[53:1]      I

When the initial types are processed they all print as generic VdWs:
INDEX          VDWS  MOLECULES   TYPE NAME: SMIRKS
    1 :          0          0 | 0: [*:1]
    2 :          0          0 | H: [*:1]
    3 :          0          0 | B: [*:1]
    4 :          0          0 | C: [*:1]
    5 :          0          0 | N: [*:1]
    6 :          0          0 | O: [*:1]
    7 :          0          0 | F: [*:1]
    8 :          0          0 | Al: [*:1]
    9 :          0          0 | Si: [*:1]
   10 :          0          0 | P: [*:1]
   11 :          0          0 | S: [*:1]
   12 :          0          0 | Cl: [*:1]
   13 :          0          0 | As: [*:1]
   14 :          0          0 | Se: [*:1]
   15 :          0          0 | Br: [*:1]
   16 :       7185        200 | I: [*:1]
TOTAL :       7185        200

This doesn't happen with Bonds, Angles, or Torsions. I am just now looking into this issue.
It doesn't look like it happened in my older smirky tests so I'm not sure what we would have changed that would have caused this.

Well this is my fault, the initial types are missing the # sign in front of the numbers so when they're read into the ChemicalEnvironments It doesn't catch them atomic numbers.

repo: open-forcefield-group/smarty


text:
Feat: Renaming support for all entity

Currently, we do not have support to edit/update name & display name of any entity. we should add the support for the same.

@ShaileshParmar11 this should only be adding or editing display name

Thanks @harshach for confirming!

https://www.figma.com/file/VaeQD2fIhQVDCvqBHyEv7J/Open-Metadata?node-id=19271%3A22329&t=pi28c4n2gUgXJems-1

need to take care of the above bug with this ticket, one should be name and another should be displayname, currently we are showing both as displayName

List of component where we need to provide edit/update displayName

[ ] Service ?
[ ] database details page
[ ] schema details page
[ ] Table details page
[ ] Topic details page
[ ] dashboard details page
[ ] pipeline details page
[ ] mlmoadel details page
[ ] container details page

organize the menu items at all placeses

Announcements
Rename
Delete

repo: open-metadata/OpenMetadata


text:
Removing all tags from Entity does not reflect changes in Elasticsearch results

Try adding User.Address to any dim_address, check it on explore
It shows 3 tags added in the table card
Now try removing all tags from dim_address, check it again on explore
Tags are still there
Changes reflect if we remove n-1 tags, i.e. do not remove all the tags from entity details page
P.S. @parthp2107 please attach video for more details

@darth-coder00 @harshach adding the link for the screen recording: https://app.replay.io/recording/33244264-46d6-44d4-8cf8-83bb413a02a0


text:
Data Quality test suite for the tables is only executing for the first test case.

Affected module
UI - Data Quality
Describe the bug
Upon execution of the test suite against the tables, only the first test case gets executed and the job is being marked as success (completed).
To Reproduce

[vehicle_maintenance_test suite _latest.txt](https://github.com/open-metadata/OpenMetadata/files/12102551/vehicle_maintenance_test.suite._latest.txt)
Expected behavior
The execution should include all the test case against the tables.
Version:
1.2

log :

similarly, I have three tests on bq table. the ingestion shown as success

but one is still from two days ago:

On editing the test cases, the user gets
An exception with message [Cannot invoke "org.openmetadata.schema.type.EntityReference.getId()" because "ref" is null] was thrown while processing request.
cc: @open-metadata/backend

new error: An exception with message [null] was thrown while processing request.

@ayush-shah
so I think I know what the problem is (but not a root cause). If I call GET api for those test cases that aren't executing, the only testSuite link is to the logical testSuite and there is no link to the "executable" testSuite.
the ones that are running ok - I get the executable testSuite as well. (on  the same table I would get one testCase with exec and logIcal and another one - just logical). Not sure, why, while creating testSuites pipelines for each table it worked for some testCases, but not for others. Maybe I clicked "create pipeline" , before all the testCases  were loaded on the UI (as we know it takes a long time for testCases to appear on the  UI).
I would like run POST on the testCase to attach the executable testSuite as well, but a single testCase can have multiple testSuites (one executable and many logical?), but api expects a single fqn. I think.  So what would be correct API structure?
so on the POST I only then added the  executable testSuite. I got back 200 ok response, but testSuites on the testCase  weren't updated - still only showing the logical one.

just a note that executable testSuite FQN is very strange :slightly_smiling_face: "testSuite": ""a3e751027d6c61d44013b923e3f0f2a4.c6c668321cace9fabba65ba6c96b4554.d1df466337b117ecb4f339f6b7f17875.112d4a1db91c3bd743a21c6dfcde8553.be2115a37e73abc64be935171220c2f4"". does  it represent anything?
so how could I add those executable testSuites to those erroring testCases?

Will be fixed in 1.1.1
identified as a bug, will have it fixed and keep things posted.

validated with the latest code. It will be part of the 1.1.1 release

After the deployment of release 1.1.1. the above DQ issues still persists.

DQ testsuite is not getting executed

Test case name cannot be updated

authors: DovileKr ayush-shah lailapatel pmbrull


text:
Changing the SQL Init Script Makes the Migrations break on existing databases.

I am trying out the 0.7.0 snapshot of openmetadata, and am getting the following error on an existing database:
openmetadata_1         | "migrate" option failed : org.flywaydb.core.api.exception.FlywayValidateException: Validate failed: Migrations have failed validation
openmetadata_1         | Migration checksum mismatch for migration version 001
openmetadata_1         | -> Applied to database : 2102739689
openmetadata_1         | -> Resolved locally    : -723630632. Either revert the changes to the migration, or run repair to update the schema history.
openmetadata_1         | Need more flexibility with validation rules? Learn more: https://rd.gt/3AbJUZE

I believe this is because when migrations are applied to the database, the file has been edited, rather than creating a new migration. Can someone please confirm or point me to a solution?
Thanks

@abrisan Yes we haven't yet supported migrations in db schema. we will doing that from next release. For now please do drop-create

authors: abrisan harshach


text:
Suggestion api shows deleted entities.

Affected module
Backend
Describe the bug
Suggestion api shows deleted entities
To Reproduce
https://user-images.githubusercontent.com/83201188/156990256-80bf147e-2253-4564-9755-20e7327bb690.mov
https://user-images.githubusercontent.com/83201188/156990264-77d7ff7f-5f54-43ad-a376-081bbc3a39e4.mov
Expected behavior
A clear and concise description of what you expected to happen.
Suggestion API should not show deleted entity
Version:

OS: [e.g. iOS]
Python version:
OpenMetadata version: [e.g. 0.8]
OpenMetadata Ingestion package version: [e.g. openmetadata-ingestion[docker]==XYZ]

Additional context
cc @darth-coder00

this is fixed


text:
SampleData is filtered from service list

UPDATE: We should filter out the SampleData service from the DatabaseService list on the UI

@harshach @vivekratnavel would it make sense to just remove the SampleData from the DB services list?

As discussed, we'll filter this out from frontend side.

@darth-coder00 Let's not remove or filter sample data, but hide the test connection button for Sample Data.

authors: pmbrull vivekratnavel


text:
What's the meaning of output file of type .pkl?

Hello. I'd like to use the results from the testing step for further research.  But I did not find the meaning of the result.pkl generated by the test.py. It is the softmax metrics or something else?

It depends on whether u use the --use_softmax option. With this option on, the output is the softmax score (sum to 1), otherwise it's the logits of 400 classes.

repo: open-mmlab/mmaction


text:
[Bug] use gpu in customized pipeline, get error.

Branch
master branch (0.24 or other 0.x version)
Describe the bug
use gpu in customized pipeline, get error.
Environment
{'sys.platform': 'linux',
'Python': '3.10.8 (main, Nov 24 2022, 14:13:03) [GCC 11.2.0]',
'CUDA available': True,
'GPU 0,1,2,3,4,5,6,7': 'NVIDIA GeForce RTX 2080 Ti',
'CUDA_HOME': None,
'GCC': 'gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0',
'PyTorch': '1.12.1+cu102',
'PyTorch compiling details': 'PyTorch built with:\n'
'  - GCC 7.3\n'
'  - C++ Version: 201402\n'
'  - Intel(R) Math Kernel Library Version '
'2020.0.0 Product Build 20191122 for Intel(R) 64 '
'architecture applications\n'
'  - Intel(R) MKL-DNN v2.6.0 (Git Hash '
'52b5f107dd9cf10910aaa19cb47f3abf9b349815)\n'
'  - OpenMP 201511 (a.k.a. OpenMP 4.5)\n'
'  - LAPACK is enabled (usually provided by '
'MKL)\n'
'  - NNPACK is enabled\n'
'  - CPU capability usage: AVX2\n'
'  - CUDA Runtime 10.2\n'
'  - NVCC architecture flags: '
'-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_70,code=sm_70\n'
'  - CuDNN 7.6.5\n'
'  - Magma 2.5.2\n'
'  - Build settings: BLAS_INFO=mkl, '
'BUILD_TYPE=Release, CUDA_VERSION=10.2, '
'CUDNN_VERSION=7.6.5, '
'CXX_COMPILER=/opt/rh/devtoolset-7/root/usr/bin/c++, '
'CXX_FLAGS= -fabi-version=11 -Wno-deprecated '
'-fvisibility-inlines-hidden -DUSE_PTHREADPOOL '
'-fopenmp -DNDEBUG -DUSE_KINETO -DUSE_FBGEMM '
'-DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK '
'-DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE '
'-DEDGE_PROFILER_USE_KINETO -O2 -fPIC '
'-Wno-narrowing -Wall -Wextra '
'-Werror=return-type '
'-Wno-missing-field-initializers '
'-Wno-type-limits -Wno-array-bounds '
'-Wno-unknown-pragmas -Wno-unused-parameter '
'-Wno-unused-function -Wno-unused-result '
'-Wno-unused-local-typedefs -Wno-strict-overflow '
'-Wno-strict-aliasing '
'-Wno-error=deprecated-declarations '
'-Wno-stringop-overflow -Wno-psabi '
'-Wno-error=pedantic -Wno-error=redundant-decls '
'-Wno-error=old-style-cast '
'-fdiagnostics-color=always -faligned-new '
'-Wno-unused-but-set-variable '
'-Wno-maybe-uninitialized -fno-math-errno '
'-fno-trapping-math -Werror=format '
'-Wno-stringop-overflow, LAPACK_INFO=mkl, '
'PERF_WITH_AVX=1, PERF_WITH_AVX2=1, '
'PERF_WITH_AVX512=1, TORCH_VERSION=1.12.1, '
'USE_CUDA=ON, USE_CUDNN=ON, USE_EXCEPTION_PTR=1, '
'USE_GFLAGS=OFF, USE_GLOG=OFF, USE_MKL=ON, '
'USE_MKLDNN=OFF, USE_MPI=OFF, USE_NCCL=ON, '
'USE_NNPACK=ON, USE_OPENMP=ON, USE_ROCM=OFF, \n',
'TorchVision': '0.13.1+cu102',
'OpenCV': '4.6.0',
'MMCV': '1.7.0',
'MMCV Compiler': 'GCC 7.3',
'MMCV CUDA Compiler': '10.2',
'MMClassification': '0.24.0+e4a930f'}
Other information
I try to customize a pipeline. In it，image is cropped by a network，which uses gpu.
However, this pipeline raise errors, about using gpu in multiprocessing, as below:

I tried some method but failed.
What can I do?

The data pipeline will use multi-processing, you can try add these lines after init_dist in tools/train.py
import torch.multiprocessing as mp
mp.set_start_method('spawn')

You can also refer to https://pytorch.org/docs/master/notes/multiprocessing.html for more information.

authors: ChenJunzhi-buaa yingfhu

repo: open-mmlab/mmclassification