Does not play the video on iOS

Sadly, i cannot get it to work on iOS. In Android it works fine. In iOS it just does not play the video and sometimes I experienced freezes.
I tested it with two iOS devices (iPad 2017 with iOS 12 and iPad Air with iOS 10). There is no error message in the Debug Console, it just loads forever.
I used your example project with the most up to date plugin version (but also tried 1.0.0 with the same result). And also tried it with my real world project.
I added this to Info.plist:
	    <key>io.flutter.embedded_views_preview</key>     <true/>
Have you tried the plugin on iOS devices? Any suggestions?

I have a same issue

En mi caso sucede igual, aunque funcionó algunas veces pero cuando desplegué la aplicación y la probé no me funcionaba el reproductor

Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'loadById("iLnmTe5Q2Qw", 0)'

Hey folks, can you check with Version 4 and report with full log if it's not working on iOS?

Still error
Test on Ipad mini2
2019-08-12 13:12:04.455268+0700 Runner[12961:4293299] [VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'play()'
Error Domain=WKErrorDomain Code=1 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred})
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
#1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33)
<asynchronous suspension>
#2      MethodChannelWebViewPlatform.evaluateJavascript (package:webview_flutter/src/webview_method_channel.dart:90:21)
#3      WebViewController.evaluateJavascript (package:webview_flutter/webview_flutter.dart:601:39)
#4      YoutubePlayerController._evaluateJS (package:youtube_player_flutter/src/youtube_player.dart:518:30)
#5      YoutubePlayerController.play (package:youtube_player_flutter/src/youtube_player.dart:530:18)
#6      _PlayPauseButtonState.build.<anonymous closure> (package:youtube_player_flutter/src/controls.dart:86:64)
#7      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:635:14)
#8      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:711:32)
#9      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
#10     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
#11     TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:275:7)
#12     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:455:9)
#13     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:75:13)
#14     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:102:11)
#15     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19)
#16     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
#17     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
#18     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
#19     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
#20     _rootRunUnary (dart:async/zone.dart:1136:13)
#21     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#23     _invoke1 (dart:ui/hooks.dart:250:10)
#24     _dispatchPointerDataPacket (dart:ui/hooks.dart:159:5)

Which version are you currently on ?

Hi, I'm on 4.0.0+2
Getting this:
flutter: player status: PlayerState.UNKNOWN [VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'play()' Error Domain=WKErrorDomain Code=1 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred}) #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7) #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33) <asynchronous suspension> #2      MethodChannelWebViewPlatform.evaluateJavascript (package:webview_flutter/src/webview_method_channel.dart:90:21) #3      WebViewController.evaluateJavascript (package:webview_flutter/webview_flutter.dart:601:39) #4      YoutubePlayerController._evaluateJS (package:youtube_player_flutter/src/youtube_player.dart:518:30) #5      YoutubePlayerController.play (package:youtube_player_flutter/src/youtube_player.dart:530:18) #6      _PlayPauseButtonState.build.<anonymous closure> (package:youtube_player_flutter/src/controls.dart:86:64) #7      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:635:14) #8      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:710:32) #9      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24) #10     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11) #11     TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:275:7) #12     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:455:9) #13     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:75:13) #14     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:102:11) #15     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19) #16     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22) #17     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7) #18     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7) #19     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7) #20     _rootRunUnary (dart:async/zone.dart:1136:13) #21     _CustomZone.runUnary (dart:async/zone.dart:1029:19) #22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7) #23     _invoke1 (dart:ui/hooks.dart:252:10) #24     _dispatchPointerDataPacket (dart:ui/hooks.dart:161:5)

@Igalsr @docaohuynh can you mind helping by inspecting the app using Safari Web Inspector and reporting the console's output?

I have used 4.0.0+2
When I inspect there is no console log on Safari Web Inspector just have log on Xcode
2019-08-12 17:23:53.930619+0700 Runner[13181:4304875] flutter: PlaybackQualityChange medium
2019-08-12 17:23:54.153331+0700 Runner[13181:4304744] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2019-08-12 17:23:54.414316+0700 Runner[13181:4304744] Received memory pressure event 2 vm pressure 0

Received memory pressure event 2 vm pressure 0
2019-08-12 17:23:55.316434+0700 Runner[13181:4304744] Received memory pressure event 4 vm pressure 1

Received memory pressure event 4 vm pressure 1
2019-08-12 17:23:57.724045+0700 Runner[13181:4311289] [ProcessSuspension]  0x2879cba80 - ProcessAssertion() Unable to acquire assertion for process with PID 0
2019-08-12 17:24:16.570957+0700 Runner[13181:4304744] Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service
2019-08-12 17:24:25.438485+0700 Runner[13181:4304744] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2019-08-12 17:24:27.721993+0700 Runner[13181:4304744] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

@sarbagyastha I'm unable to get it inspected once I click on it it's just empty

Hi
I am facing similar issue of videos not playing in IOS. On my android device it mostly works, although a couple of times i've not been able to play videos
i get this error for IOS

[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'play()'
Error Domain=WKErrorDomain Code=4 "A JavaScript exception occurred" UserInfo={WKJavaScriptExceptionLineNumber=58, WKJavaScriptExceptionMessage=TypeError: player.playVideo is not a function. (In 'player.playVideo()', 'player.playVideo' is undefined), WKJavaScriptExceptionColumnNumber=21, WKJavaScriptExceptionSourceURL=https://sarbagyadhaubanjar.github.io/youtube_player/ios/player.js, NSLocalizedDescription=A JavaScript exception occurred})
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
#1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33)
<asynchronous suspension>
#2      MethodChannelWebViewPlatform.evaluateJavascript (package:webview_flutter/src/webview_method_channel.dart:90:21)
#3      WebViewController.evaluateJavascript (package:webview_flutter<…>

Thanks,
Chethan

Could you check if  Version 4.1.0 fixes it.

Hi, @sarbagyastha. unfortunately, it didn't help.
flutter: player status: PlayerState.UNKNOWN [VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'play()' Error Domain=WKErrorDomain Code=1 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred}) #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7) #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33) <asynchronous suspension> #2      MethodChannelWebViewPlatform.evaluateJavascript (package:webview_flutter/src/webview_method_channel.dart:90:21) #3      WebViewController.evaluateJavascript (package:webview_flutter/webview_flutter.dart:601:39) #4      YoutubePlayerController._evaluateJS (package:youtube_player_flutter/src/youtube_player.dart:553:30) #5      YoutubePlayerController.play (package:youtube_player_flutter/src/youtube_player.dart:565:18) #6      _PlayPauseButtonState.build.<anonymous closure> (package:youtube_player_flutter/src/controls.dart:86:64) #7      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:635:14) #8      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:710:32) #9      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24) #10     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11) #11     TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:275:7) #12     PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:455:9) #13     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:75:13) #14     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:102:11) #15     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:218:19) #16     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22) #17     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7) #18     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7) #19     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7) #20     _rootRunUnary (dart:async/zone.dart:1136:13) #21     _CustomZone.runUnary (dart:async/zone.dart:1029:19) #22     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7) #23     _invoke1 (dart:ui/hooks.dart:252:10) #24     _dispatchPointerDataPacket (dart:ui/hooks.dart:161:5)

With version 4.1.0 It make my app crash

Hi , I'm also using the 4.1.0 and i used my mobile to debug,
Still get the following error code,
flutter: YoutubePlayerValue(isReady: false, isEvaluationReady: false, isLoaded: false, duration: 0:00:00.000000, position: 0:00:00.000000, buffered: 0.0, isPlaying: false, volume: 100, playerState: PlayerState.UNKNOWN, playbackRate: PlaybackRate.NORMAL, errorCode: 0) flutter: YoutubePlayerValue(isReady: false, isEvaluationReady: false, isLoaded: false, duration: 0:00:00.000000, position: 0:00:00.000000, buffered: 0.0, isPlaying: false, volume: 100, playerState: PlayerState.UNKNOWN, playbackRate: PlaybackRate.NORMAL, errorCode: 0) flutter: YoutubePlayerValue(isReady: true, isEvaluationReady: false, isLoaded: false, duration: 0:00:00.000000, position: 0:00:00.000000, buffered: 0.0, isPlaying: false, volume: 100, playerState: PlayerState.UNKNOWN, playbackRate: PlaybackRate.NORMAL, errorCode: 0) [VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'play()' Error Domain=WKErrorDomain Code=1 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred}) #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7) #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33) <asynchronous suspension> #2      MethodChannelWebViewPlatform.evaluateJavascript (package:webview_flutter/src/webview_method_channel.dart:90:21) #3      WebViewController.evaluateJavascript (package:webview_flutter/webview_flutter.dart:601:39) #4      YoutubePlayerController._evaluateJS (package:youtube_player_flutter/src/youtube_player.dart:553:30) #5      YoutubePlayerController.play (package:youtube_player_flutter/src/youtube_player.dart:565:18) #6      _PlayPauseButtonState.build.<anonymous closure> (package:youtube_player_flutter/src/controls.dart:86:64) #7      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:635:14) #8      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:710:32) #9      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24) #10     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11) #11     TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:312:7) #12     GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27) #13     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:222:20) #14     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22) #15     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7) #16     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7) #17     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7) #18     _rootRunUnary (dart:async/zone.dart:1136:13) #19     _CustomZone.runUnary (dart:async/zone.dart:1029:19) #20     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7) #21     _invoke1 (dart:ui/hooks.dart:252:10) #22     _dispatchPointerDataPacket (dart:ui/hooks.dart:161:5)

i am facing the same issue, with version 4.1.0. It works fine on android device, but not responding anything on IOS device

@sarbagyastha do you need any other help? I'm waiting for a working youtube library for iOS to release for production, maybe you know another library or you need some help in order to get it working?

Video not playing
VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'play()'
Error Domain=WKErrorDomain Code=1 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred})
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
#1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33)

#2      MethodChannelWebViewPlatform.evaluateJavascript (package:webview_flutter/src/webview_method_channel.dart:90:21)
#3      WebViewController.evaluateJavascript (package:webview_flutter/webview_flutter.dart:626:39)
#4      YoutubePlayerController._evaluateJS (package:youtube_player_flutter/src/youtube_player.dart:553:30)
#5      YoutubePlayerController.play (package:youtube_player_flutter/src/youtube_player.dart:565:18)
#6      _PlayPauseButtonState.build. (package:youtube_player_flutter/src/controls.dart:86:64)
#7      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:635:14)
#8      _InkResponseState.build. (package:flutter/src/material/ink_well.dart:711:32)
#9      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
#10     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
#11     TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:312:7)
#12     GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
#13     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:222:20)
#14     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
#15     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
#16     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
#17     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
#18     _rootRunUnary (dart:async/zone.dart:1136:13)
#19     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#20     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#21     _invoke1 (dart:ui/hooks.dart:250:10)
#22     _dispatchPointerDataPacket (dart:ui/hooks.dart:159:5)

Same problem for me
VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: PlatformException(evaluateJavaScript_failed, Failed evaluating JavaScript, JavaScript string was: 'play()'
Error Domain=WKErrorDomain Code=1 "An unknown error occurred" UserInfo={NSLocalizedDescription=An unknown error occurred})
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:564:7)
#1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:316:33)

#2      MethodChannelWebViewPlatform.evaluateJavascript (package:webview_flutter/src/webview_method_channel.dart:90:21)
#3      WebViewController.evaluateJavascript (package:webview_flutter/webview_flutter.dart:626:39)
#4      YoutubePlayerController._evaluateJS (package:youtube_player_flutter/src/youtube_player.dart:553:30)
#5      YoutubePlayerController.play (package:youtube_player_flutter/src/youtube_player.dart:565:18)
#6      _PlayPauseButtonState.build. (package:youtube_player_flutter/src/controls.dart:86:64)
#7      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:635:14)
#8      _InkResponseState.build. (package:flutter/src/material/ink_well.dart:711:32)
#9      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
#10     TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:365:11)
#11     TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:312:7)
#12     GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
#13     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:222:20)
#14     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:198:22)
#15     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
#16     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
#17     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
#18     _rootRunUnary (dart:async/zone.dart:1136:13)
#19     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#20     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#21     _invoke1 (dart:ui/hooks.dart:250:10)
#22     _dispatchPointerDataPacket (dart:ui/hooks.dart:159:5)

@sarbagyastha do you need any other help? I'm waiting for a working youtube library for iOS to release for production, maybe you know another library or you need some help in order to get it working?

I have used this package https://github.com/hoanglm4/flutter_youtube_view. it work for both android and Ios

Same here and log is flooded with
[VERBOSE-2:platform_view_layer.cc(28)] Trying to embed a platform view but the PrerollContext does not support embedding
[VERBOSE-2:platform_view_layer.cc(28)] Trying to embed a platform view but the PaintContext does not support embedding

Did anyone find a fix or workaround for this issue?

Did anyone find a fix or workaround for this issue?

I ended up using another package called flutube:
https://pub.dev/packages/flutube
Worked for both android and iOS.
Only downside is copyrighted videos

I having this problem, I can fix it puting the Youtube in a Container, like this:
(remember that official youtube need more than 200px in both sides.)
Widget getPlayerYoutube() {
    return Container(
      height: 300,
      width: 300,
      child: YoutubePlayer(
        context: context,
        videoId: getVideoId(),
      ),
    );
  }

Check #79


Feature request: audio/video playback support

Being able to play a video/audio file would be amazing, especially since people have been trying to make video players on WebX. I currently want to make an audio player, but it's not possible right now.
Not needed but having support for audio/video streams would be nice, since people could host their own little online radios using WebX

I might do this and create a pull request bc i finally got napture to compile :O

i have personal interest in this since i want to make a youtube clone :P


[$1000] placeholder shows instead of profile pic on change default contact method

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Open the app
from userA add userB in Contact methods
login as userB
change default contact method from userA
check the profile pic in userB

Expected Result:
should show profile pic
Actual Result:
shows placeholder instead of profile pic
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/43996225/ce101c84-1dd0-443b-b758-e1e0af23f18e
https://github.com/Expensify/App/assets/43996225/53185a3f-48b3-4f56-bf20-15149a2725e1
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684317183625259
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~011f0dcfe82a9e3b71
Upwork Job ID:<PHONE_NUMBER>946312192
Last Price Increase: 2023-05-25

Duplicate - #18780

Thanks @therealsujitk, this is a duplicate of that other issue, closing in favor of the other one.

this is a different issue. in this issue, the profile pic is not shown for userB and in other issue is about changing the profile pic
cc: @sakluger

Proposal
Please re-state the problem that we are trying to solve in this issue.
The avatar (and other details such as the display name) isn't being updated if the default contact method is updated from another device (without refreshing).
What is the root cause of that problem?
The reason for this is because Pusher only updates the ONYXKEYS.LOGIN_LIST and ONYXKEYS.SESSION, it doesn't update the ONYXKEYS.PERSONAL_DETAILS.
This is how it is done for the same device setting the default contact method in the setContactMethodAsDefault() function.
https://github.com/Expensify/App/blob/8180113819532fe5503bc3719ba46ffc566e4ead/src/libs/actions/User.js#L795-L806
What changes do you think we should make in order to solve the problem?

One way to solve this is to update ONYXKEYS.PERSONAL_DETAILS from pusher, however this can also be done on the front-end instead.
This is the function subscribeToUserDeprecatedEvents() that currently takes care of user updates to Onyx.
https://github.com/Expensify/App/blob/8180113819532fe5503bc3719ba46ffc566e4ead/src/libs/actions/User.js#L605-L619
We'll have to check for when ONYXKEYS.SESSION data is updated here, and update ONYXKEYS.PERSONAL_DETAILS accordingly.

Note: Obviously, this will also have to be done in subscribeToUserEventsUsingMultipleEventType() for when the server switches to sending account updates using Pusher.TYPE.MULTIPLE_EVENT_TYPE.

What alternative solutions did you explore? (Optional)
None.

bump @sakluger

Sorry about that - I also didn't read through the entire other issue, I just thought it was the same after reading the issue title and scanning the description. After taking a closer look, I agree that this is a bug, and I was also able to reproduce.

Un-assigning as Sasha has this for BZ :)

Awaiting proposals

@Julesssss would just like to note that I've added a proposal here.

@Julesssss
@therealsujitk's proposal root cause is partially correct.
But the real issue here is,

In OpenApp API  response, for personalDetails list we only get the value for the current default email while secondary contact information is not present.
when we change the default contact method, we send pusher to update the session.
But since personalDetails doesn't have the information for the new email set as default, it will not populate currentUserPersonalDetails here
https://github.com/Expensify/App/blob/main/src/components/withCurrentUserPersonalDetails.js#L38-L42
This leads to UI not showing data related to personal details. Its not just profile pic, if we open the settings page name and other information is also not populated.
This gets fixed only if we reload, then Open API returns the current default contact's personalDetails in the response which fixes this issue.

The proper fix IMO here is to return the secondary emails personalDetails as part of the OpenAPI response.
So this should be taken up internal or wait on different idea to solve this externally.

@abdulrahuman5196 yeah that's exactly what I wrote. Since this is done on the client end itself for the device that is switching the default contact method, I suggested this can be solved on the client end with the same logic. Here we use the old personal details and update the login and displayMethod.
https://github.com/Expensify/App/blob/8180113819532fe5503bc3719ba46ffc566e4ead/src/libs/actions/User.js#L795-L806

Let's close it for now, and we can reopen once it's unblocked.


[cherry-pick][release-2.38.0][BEAM-13538][BEAM-14296] Workaround to fix go-licenses crash.

Cherry-pick of #17343

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Choose reviewer(s) and mention them in a comment (R: @username).
[x] Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
[ ] Update CHANGES.md with noteworthy changes.
[x] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @TheNeuralBit @emilymye

Since this is a small PR and it's blocking my ability to create an RC, I'm gonna merge it in immediately to unblock myself, but I'll still need to get some retroactive approval afterwards.


Added CoinPayments

Hello @Crypto2 ,
This repo is not being maintained anymore, but we are trying to keep it alive on a detached fork here, would you kindly submit your PR there and close this one here? :)


Fix [Batch run] Display selected function on return to step 1

Batch run: Display selected function on return to step 1
Gira: https://jira.iguazeng.com/browse/ML-4742
Related To: https://github.com/pinis-gini-apps/ui/pull/1

@mavdryk ready for review.


refactor: form validation plugin

ZH Card

@pbastia I think we can close this PR since milestone refactor cover it.

Yes! Thank you @Sepehr-Sobhani


All SSH commands should run with a normalized locale

The behavior of system commands run by pharos-cluster should not depend on the locale of the user running pharos-cluster. The scripts/phases may assume english-language output and break with a non-english locale (see #501).
I assume Net::SSH is sending LC_* env vars from the script env by default... those should be overridden to use LC_ALL=C.UTF-8.

Confirm that Net::SSH defaults is forwarding LC_* envs:
I, [2018-08-08T08:05:58.010191 #1]  INFO -- net.ssh.connection.session[964f60]: channel_open_confirmation: 9 0 0 32768
I, [2018-08-08T08:05:58.010631 #1]  INFO -- net.ssh.connection.channel[b6bafc]: sending channel request "env"
D, [2018-08-08T08:05:58.010999 #1] DEBUG -- socket[b9a938]: queueing packet nr 46 type 98 len 44
I, [2018-08-08T08:05:58.011126 #1]  INFO -- net.ssh.connection.channel[b6bafc]: sending channel request "exec"
D, [2018-08-08T08:05:58.011428 #1] DEBUG -- socket[b9a938]: queueing packet nr 47 type 98 len 44


Merge pull request #1 from alibaba/master

test
Describe what this PR does / why we need it
Does this pull request fix one issue?

Describe how you did it
Describe how to verify it
Special notes for reviews

 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.You have signed the CLA already but the status is still pending? Let us recheck it.


Issues with the "Edit SQL files" and related docs for a non-software dev audience

I went through the "Edit SQL files" docs with 2 of our analysts, here are some issues we ran in to. A lot of these are not things that are "wrong" per se, but problems we ran into because people who aren't software devs don't necessarily have all the implicit knowledge.
ReadTheDocs: https://kingfisher-views.readthedocs.io/en/latest/develop/sql.html
GitHub: https://github.com/open-contracting/kingfisher-views/blob/master/docs/develop/sql.rst

[x] If you're coming to this page new to running Kingfisher locally, then you have to navigate through several pages to find all the vagrant steps.
https://kingfisher-views.readthedocs.io/en/latest/develop/sql.html → https://kingfisher-views.readthedocs.io/en/latest/develop/setup.html → https://kingfisher-vagrant.readthedocs.io/en/latest/
(And then you have to realise when to return to the parent page.)

https://kingfisher-vagrant.readthedocs.io/en/latest/#starting-and-building-the-vagrant-box

[x] It could be clearer where to run the vagrant up command, particularly as people returning to work they did earlier will have done all the git clone steps.

https://kingfisher-views.readthedocs.io/en/latest/develop/setup.html#load-data

[x] It was not immediately obvious that the collection name did not need to actually be surrounded by curly braces.

[x] Step 2 of https://kingfisher-views.readthedocs.io/en/latest/develop/setup.html#load-data sometimes has an error:

psycopg2.errors.UndefinedTable: relation "views.read_only_user" does not exist LINE 1: SELECT username FROM views.read_only_user

I think this is expected (I've seen the same error, and wherever I was in the docs told me to expect it), but the docs here don't tell you this.
https://kingfisher-views.readthedocs.io/en/latest/develop/setup.html#load-data
"Look at the data that has been created"

[ ] Would be useful to have a pointer here on how to do this. I know there's a note in the Prerequisites section above, but people missed this.
[ ] Also useful would be an example command to check a table exists.

https://kingfisher-views.readthedocs.io/en/latest/develop/sql.html#review-changes

[x] People missed the "either" here, so emphasising that, or putting an "AND/OR" between the bullets could be useful.

Looks good!

I think this is expected (I've seen the same error, and wherever I was in the docs told me to expect it), but the docs here don't tell you this.

It's not expected. I fixed Vagrant's installation of Views.

If you're coming to this page new to running Kingfisher locally, then you have to navigate through several pages to find all the vagrant steps.

I really don't think we want to duplicate instructions (which always, always end up going out of sync eventually, which confuses users even more). I think a challenge with setup.rst was that it mixed setup instructions, how-to guides, and explainers – so it was hard to know how much of the page was actually relevant to setup. I've moved these to new pages now. Kingfisher Vagrant's docs should also be split into shorter pages (at least one setup page and another how-to page).

Created https://github.com/open-contracting/kingfisher-vagrant/issues/356 for another bullet above about Vagrant.

Noting that Kingfisher Vagrant has fallen behind Kingfisher Summarize, and it will again fall behind Kingfisher Process as we move to the Django branch. OCP has no interest in maintaining Kingfisher Vagrant, as it's fairly simple to just install each component on the main system – and this only needs to be done once.

I completed most tasks, and the remainder were prioritized by the helpdesk as low priority, because in the end, analysts have not made any changes themselves to Kingfisher Summarize. The docs are still useful for new developers, though.


pydeck: Centralize requirements.txt files

Background

Change List

Move requirements.txt files all to the same folder

Coverage remained the same at 82.784% when pulling 02e2e39b638ee9af1b13527376ec732d39e99c7b on ajd/move-doc-requirements into 06fadd6b1ebb37c4d63831157679929f21c64467 on master.


Dense/Sparse reconstructed meshes

Would it be possible to share the Sparse/Dense reconstructions of each scene?
The webpage mentions this can be shared upon request.

Would it be possible to share the Sparse/Dense reconstructions of each scene?
The webpage mentions this can be shared upon request.

Have you solved this problem?
I also want to use Sparse/Dense reconstructions.

Not really.
I believe back then I just un-projected the depth frames to from a point cloud.
I am assuming they have COLMAP sparse/dense reconstruction for each scene (I could be wrong here). So maybe trying to run COLMAP again can give you this. I just haven;t tried it myself.

Not really.
I believe back then I just un-projected the depth frames to from a point cloud.
I am assuming they have COLMAP sparse/dense reconstruction for each scene (I could be wrong here). So maybe trying to run COLMAP again can give you this. I just haven;t tried it myself.

Thank you for your reply. I have two questions:
(1)Where can I find the COLMAP file?
(2)Can the code provided in the following link be used to generate point clouds?
https://github.com/ammirato/active_vision_dataset_processing/issues/1

(1) COLMAP is a SfM (and MVS) software. You can try using it on the data to do dense reconstruction. https://colmap.github.io/
(2) Yes that's correct.


[7.1.0] Testing

Forked from #485

Cherry-picked in https://github.com/bazelbuild/bazel/pull/21584

Cherry-picked in https://github.com/bazelbuild/bazel/pull/21585


dotnet core isssue

Problem encountered on https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/edit
Operating System: windows
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.

Please provide more information about your issue, this is basically zero information for us.


import pwd on windows

Checked other resources

[X] I added a very descriptive title to this issue.
[X] I searched the LangChain documentation with the integrated search.
[X] I used the GitHub search to find a similar question and didn't find it.
[X] I am sure that this is a bug in LangChain rather than my code.

Example Code
from langchain.retrievers.multi_query import MultiQueryRetriever
MultiQueryRetriever()
Error Message and Stack Trace (if applicable)
venv\Lib\site-packages\langchain\retrievers_init_.py:37: in
from langchain.retrievers.web_research import WebResearchRetriever
venv\Lib\site-packages\langchain\retrievers\web_research.py:5: in
from langchain_community.document_loaders import AsyncHtmlLoader
venv\Lib\site-packages\langchain_community\document_loaders_init_.py:163: in
from langchain_community.document_loaders.pebblo import PebbloSafeLoader
venv\Lib\site-packages\langchain_community\document_loaders\pebblo.py:5: in
import pwd
E   ModuleNotFoundError: No module named 'pwd'
Description
There is no pwd on windows.
System Info
python 3.11.2
langchain==0.1.7

Very bad response by the Dosubot.... Langchain creators need to do better when it comes to the automated bot responses.

This issue is caused by pwd library, which is not available in windows.
this issue can be fixed with importing the pwd library in the try block at 263 number line.
this is the code before:
        try:
            file_owner_uid = os.stat(file_path).st_uid
            file_owner_name = pwd.getpwuid(file_owner_uid).pw_name
        except Exception:
            file_owner_name = "unknown"
        return file_owner_name

this will be the code after
        try:
            import pwd
            file_owner_uid = os.stat(file_path).st_uid
            file_owner_name = pwd.getpwuid(file_owner_uid).pw_name
        except Exception:
            file_owner_name = "unknown"
        return file_owner_name

%pip install langchain==0.1.6
this solved my same problem

Installing langchain 0.1.6 or 0.1.7 does NOT solve this problem on Windows 11

following version of langchain are working
langchain==0.1.6
langchain-community==0.0.19
langchain-core==0.1.23
when trying to load document loader or any modules from the langchain_community it throws error ModuleNotFoundError: No module named 'pwd'

following version of langchain are working
langchain==0.1.6 langchain-community==0.0.19 langchain-core==0.1.23
the langchain==0.1.7 and langchain-community==0.0.20 ❌ has issue when trying to load document loader or any modules from the langchain_community it throws error ModuleNotFoundError: No module named 'pwd'

so? what I should to do? how can I uninstall it and install it like for the right version? I have the same problem as author of topic

following version of langchain are working
langchain==0.1.6 langchain-community==0.0.19 langchain-core==0.1.23
the langchain==0.1.7 and langchain-community==0.0.20 ❌ has issue when trying to load document loader or any modules from the langchain_community it throws error ModuleNotFoundError: No module named 'pwd'

I had same as author tells.
pip install langchain==0.1.6 pip install langchain-community==0.0.19 pip install langchain-core==0.1.23 worked cool, thanks mate upper

will be fixed in next release

Installing langchain 0.1.6 or 0.1.7 does NOT solve this problem on Windows 11

answered below
https://github.com/langchain-ai/langchain/issues/17514#issuecomment-1946264804

I ran into the same issue. I didn't understand what was the problem is since this is my first time trying to build a simple RAG chatbot. I followed your recommended solutions and I managed to fix the issue. Thank you guys for your guidance!

I ran into the same issue. I didn't understand what was the problem is since this is my first time trying to build a simple RAG chatbot. I followed your recommended solutions and I managed to fix the issue. Thank you guys for your guidance!

pip install langchain==1.0.6
pip install langchain-community=0.0.19

pip install langchain==0.1.6

langchain==0.1.6
langchain-community==0.0.19
langchain-core==0.1.23
I tried the above. But I am still getting No module named 'pwd'. Is there any other solution to this problem? 😥

langchain==0.1.6
langchain-community==0.0.19
langchain-core==0.1.23
I tried the above. But I am still getting No module named 'pwd'. Is there any other solution to this problem? 😥

Try remove this 3 packages and install only first 2.

Downgrading the version worked fine for me, using CSVLoader import

langchain==0.1.6
langchain-community==0.0.19
langchain-core==0.1.23
I tried the above. But I am still getting No module named 'pwd'. Is there any other solution to this problem? 😥

Try remove this 3 packages and install only first 2.

Thank you. This solved the issue that I had 😊

langchain==0.1.6
langchain-community==0.0.19
langchain-core==0.1.23
I tried the above. But I am still getting No module named 'pwd'. Is there any other solution to this problem? 😥

Try remove this 3 packages and install only first 2.

Thank you. This solved the issue that I had 😊

This was helpful for me too, but I needed one step in addition.
Along with langchain 0.1.6 also langchain-community 0.0.20 became installed
Testrun => The Problem was not solved.
I guess the reason was somehow a cached version of  the package as in mentioned in the prompt:
"Using cached langchain_community-0.0.20-py3-none-any.whl"
So I added an uninstall for langchain-community and installed langchain-community 0.0.19  after that:
pip install langchain==0.1.6
pip uninstall langchain-community
pip install langchain-community==0.0.19
Problem solved! For me too!
Thanks to all others

My development environment is Windows 11 and I solved it with the following commands
pip install langchain==0.1.6
pip uninstall langchain-community
pip install langchain-community==0.0.19
pip install pypdf

following version of langchain are working
langchain==0.1.6 langchain-community==0.0.19 langchain-core==0.1.23
the langchain==0.1.7 and langchain-community==0.0.20 ❌ has issue when trying to load document loader or any modules from the langchain_community it throws error ModuleNotFoundError: No module named 'pwd'

This was helpful, thanks. Worked for me (Windows 11)

My development environment is Windows 11 and I solved it with the following commands pip install langchain==0.1.6 pip uninstall langchain-community pip install langchain-community==0.0.19 pip install pypdf
Thank you! I got the same problem and solved it by this!

still after following above libraries version I'm get pwd error "ModuleNotFoundError: No module named 'pwd' "
langchain           0.1.6
langchain-community 0.0.19
langchain-core      0.1.23
langchain-openai    0.0.6
Any solution ?

ERROR: No matching distribution found for langchain==1.0.6

ERROR: No matching distribution found for langchain==1.0.6

I was wrong langchain==0.1.6
(NOT 1.0.6)

again I'm getting
" import pwd "
" ModuleNotFoundError: No module named 'pwd' "

Here is my code
from dotenv import load_dotenv
from langchain_community.document_loaders import UnstructuredFileLoader
from langchain.text_splitter import CharacterTextSplitter
from langchain_community.embeddings import OpenAIEmbeddings
from langchain_community.vectorstores import Chroma
from langchain.chains import RetrievalQA
from langchain_community.llms import AzureOpenAI
import pwd
import os
OPENAI_API_TYPE = "Azure"
OPENAI_API_VERSION = "2023-07-01-preview"
OPENAI_API_BASE = "https://project.openai.azure.com/"
OPENAI_API_KEY = "key value"
DEPLOYMENT_NAME = "gpt-35-turbo" #Both Deployment and Model is same
os.environ["OPENAI_API_TYPE"] = OPENAI_API_TYPE
os.environ["OPENAI_API_VERSION"] = OPENAI_API_VERSION
os.environ["OPENAI_API_BASE"] = OPENAI_API_BASE
os.environ["OPENAI_API_KEY"] = OPENAI_API_KEY
load_dotenv()
loader = UnstructuredFileLoader(r'C:\Users\JainmiahShaik\Downloads\project.pdf')
documents = loader.load()
text_splitter = CharacterTextSplitter(chunk_size=800, chunk_overlap=0)
texts = text_splitter.split_documents(documents)
embeddings = OpenAIEmbeddings()
doc_search = Chroma.from_documents(texts,embeddings)
chain = RetrievalQA.from_chain_type(llm=AzureOpenAI(model_kwargs={'engine':'text-davinci-002'}),chain_type='stuff', retriever = doc_search.as_retriever())
query = 'What are the effects of homelessness?'
chain.run(query)
Here are the packages I have installed:
Package             Version

aiohttp             3.9.3
aiosignal           1.3.1
annotated-types     0.6.0
anyio               4.2.0
async-timeout       4.0.3
attrs               23.2.0
certifi             2024.2.2
charset-normalizer  3.3.2
click               8.1.7
colorama            0.4.6
dataclasses-json    0.6.4
distro              1.9.0
exceptiongroup      1.2.0
fastapi             0.109.2
frozenlist          1.4.1
greenlet            3.0.3
h11                 0.14.0
httpcore            1.0.3
httpx               0.26.0
idna                3.6
jsonpatch           1.33
jsonpointer         2.4
langchain           0.1.6
langchain-community 0.0.19
langchain-core      0.1.23
langchain-openai    0.0.6
langsmith           0.0.87
marshmallow         3.20.2
multidict           6.0.5
mypy-extensions     1.0.0
numpy               1.26.4
openai              1.12.0
packaging           23.2
pip                 24.0
pydantic            2.6.1
pydantic_core       2.16.2
PyMySQL             1.1.0
pypdf               4.0.2
python-dotenv       1.0.1
PyYAML              6.0.1
regex               2023.12.25
requests            2.31.0
setuptools          49.2.1
sniffio             1.3.0
SQLAlchemy          2.0.27
starlette           0.36.3
tenacity            8.2.3
tiktoken            0.5.2
tqdm                4.66.2
typing_extensions   4.9.0
typing-inspect      0.9.0
urllib3             2.2.1
uvicorn             0.27.1
yarl                1.9.4
I'm not getting what I have missed. It would be great if anyone suggest me. Thank You.

again I'm getting below error after installing langchain==0.1.6 " import pwd " " ModuleNotFoundError: No module named 'pwd' "

@Jainu-s
Perhaps it is because along with langchain==0.1.6 the package langchain-community==0.0.20 becomes installed, as it was in my case.
You can check that yourself with the command:
pip freeze
after installing langchain.
If you find langchain-community==0.0.20
You can uninstall it and then
pip install langchain-community==0.0.19
That should solve the problem.
All in one you could try this:
pip uninstall langchain langchain-community langchain-core langchain-openai
pip install langchain==0.1.6
pip uninstall langchain-community
pip install langchain-community==0.0.19
pip install langchain-core==0.1.23
pip install langchain-openai==0.0.6
At the end control it with:
pip freeze

No luck getting same "pwd" error
after pip freeze:
aiohttp==3.9.3
aiosignal==1.3.1
annotated-types==0.6.0
anyio==4.2.0
async-timeout==4.0.3
attrs==23.2.0
certifi==2024.2.2
charset-normalizer==3.3.2
click==8.1.7
colorama==0.4.6
dataclasses-json==0.6.4
distro==1.9.0
exceptiongroup==1.2.0
fastapi==0.109.2
frozenlist==1.4.1
greenlet==3.0.3
h11==0.14.0
httpcore==1.0.3
httpx==0.26.0
idna==3.6
jsonpatch==1.33
jsonpointer==2.4
langchain==0.1.6
langchain-community==0.0.19
langchain-core==0.1.23
langchain-openai==0.0.6
langsmith==0.0.87
marshmallow==3.20.2
multidict==6.0.5
mypy-extensions==1.0.0
numpy==1.26.4
openai==1.12.0
packaging==23.2
pydantic==2.6.1
pydantic_core==2.16.2
PyMySQL==1.1.0
pypdf==4.0.2
python-dotenv==1.0.1
PyYAML==6.0.1
regex==2023.12.25
requests==2.31.0
sniffio==1.3.0
SQLAlchemy==2.0.27
starlette==0.36.3
tenacity==8.2.3
tiktoken==0.5.2
tqdm==4.66.2
typing-inspect==0.9.0
typing_extensions==4.9.0
urllib3==2.2.1
uvicorn==0.27.1
yarl==1.9.4

This issue is caused by pwd library, which is not available in windows. this issue can be fixed with importing the pwd library in the try block at 263 number line in langchain_community\document_loaders\pebblo.py. this is the code before:
        try:
            file_owner_uid = os.stat(file_path).st_uid
            file_owner_name = pwd.getpwuid(file_owner_uid).pw_name
        except Exception:
            file_owner_name = "unknown"
        return file_owner_name

this will be the code after
        try:
            import pwd
            file_owner_uid = os.stat(file_path).st_uid
            file_owner_name = pwd.getpwuid(file_owner_uid).pw_name
        except Exception:
            file_owner_name = "unknown"
        return file_owner_name

also delete the import
import pwd

from line number 5.

thanks a ton for the help. It works

NOTE: I got the same error with Langchain 0.0.339 and Langchain-community 0.0.20. And downgrading Langchain-community to 0.0.19 solved my issue too. Hence, the suggestions above are in the right direction.

I had the same issue today , and
switching :
langchain==0.1.0
langchain==0.1.6
langchain-community==0.0.19
langchain-core==0.1.23

solved the issue but still not sure i it will cause some issues for other collaborators,  in my project

note : my project was running fine before, I deleted the VEVN folder and  did pip install -r requirements.txt and that created the issue with the PWD , I didn't change my requirements.

following version of langchain are working
langchain==0.1.6 langchain-community==0.0.19 langchain-core==0.1.23
the langchain==0.1.7 and langchain-community==0.0.20 ❌ has issue when trying to load document loader or any modules from the langchain_community it throws error ModuleNotFoundError: No module named 'pwd'

These versions worked. Thanks buddy.


Automated cherry pick of #6158: bugfix mem paginate

Cherry pick of #6158 on release/3.1.
#6158: bugfix mem paginate

Codecov Report

Merging #6160 into release/3.1 will increase coverage by 0.03%.
The diff coverage is 24.13%.

@@              Coverage Diff               @@
##           release/3.1   #6160      +/-   ##
==============================================
+ Coverage         7.45%   7.48%   +0.03%
==============================================
  Files              584     585       +1
  Lines            98663   98772     +109
==============================================
+ Hits              7354    7394      +40
- Misses           90738   90805      +67
- Partials           571     573       +2

Flag
Coverage Δ

#aFlag
7.48% <24.13%> (+0.03%)
:arrow_up:

Impacted Files
Coverage Δ

pkg/cloudcommon/db/db_dispatcher.go
0.00% <0.00%> (ø)

pkg/cloudcommon/policy/policy.go
1.58% <0.00%> (+0.04%)
:arrow_up:

pkg/compute/models/cloudaccounts.go
0.79% <0.00%> (+<0.01%)
:arrow_up:

pkg/compute/models/cloudproviders.go
1.00% <0.00%> (ø)

pkg/compute/models/dbinstance_accounts.go
2.31% <0.00%> (ø)

pkg/compute/models/dbinstance_databases.go
4.14% <0.00%> (ø)

pkg/compute/models/elasticcache_instances.go
1.17% <0.00%> (ø)

pkg/compute/models/loadbalancerbackendgroups.go
1.48% <0.00%> (ø)

pkg/compute/models/loadbalancerbackends.go
2.70% <0.00%> (ø)

pkg/compute/models/loadbalancerlistenerrules.go
1.84% <0.00%> (ø)

... and 16 more

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 7230a47...219cd47. Read the comment docs.

/lgtm

/approve


Add benchmarks tutorials

Contributor Agreements
Please read the contributor agreements and if you agree, please click the checkbox below.

[x] I agree to the contributor agreements.

[!TIP]
Please follow the Quick TODO list to smoothly merge your PR.

Motivation & Description of the changes
This PR adds tutorials on benchmarks.
Please merge https://github.com/optuna/optunahub/pull/73 before merging this PR since this PR requires the optunahub.benchmarks module that has not been merged into the master branch of optunahub.

I think here needs to be updated as well.
https://github.com/optuna/optunahub-registry/blob/main/recipes/002_registration.py#L77

https://github.com/optuna/optunahub-registry/pull/202#issuecomment-2533453982
Thank you. I addressed it.

All suggestions have been applied. PTAL.


qtbase: fix build with platform where FE macro are not defined

see added patch
Signed-off-by: Nicola Lunghi<EMAIL_ADDRESS>

Thanks, in master-next now 0bbd0ebe..caf09cd5

In master now, thanks
23914740..abb42351  master -> master


Pvz Free assets are 4x4(Achievements and Main Menu)

After Decompiling main.rsb I found out that android version of PopStudio Making PvZ Free Assets 4x4(Achievements and Main Menu buttons)is there any way to fix this?..

In PVZ Free, the Main Menu and Achievements are NOT in main.rsb.
You can find them at "pvzfree.apk/assets/creator/Textures".
The image format is "cdat", and you can use PopStudio to convert them to PNG.

Thanks for reply,I didn't know this,now I understand
вт, 7 февр. 2023 г., 16:05 迎风听雨 @.***>:

In PVZ Free, the Main Menu and Achievements are NOT in main.rsb.
You can find them at "pvzfree.apk/assets/creator/Textures".
The image format is "cdat", and you can use PopStudio to convert them to
PNG.
—
Reply to this email directly, view it on GitHub
https://github.com/YingFengTingYu/PopStudio/issues/10#issuecomment-1420741536,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A5RDDZJBY7UAWHLQ57EP23DWWJCBPANCNFSM6AAAAAAUT5BR7I
.
You are receiving this because you authored the thread.Message ID:
@.***>


Activity crashes

I cloned your project but it doesn't seem to be able to run, getting different errors each time. Don't know what it could be.
Also, is there a way to not use an action bar? (the one on top)
check the stack trace here: https://hastebin.com/share/ifagofosiw.php

my styles.xml:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools">
    <style name="Theme.Prueba" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
        <item name="colorPrimary">@color/purple_200</item>
        <item name="colorPrimaryVariant">@color/purple_700</item>
        <item name="colorOnPrimary">@color/black</item>
        <item name="colorSecondary">@color/teal_200</item>
        <item name="colorSecondaryVariant">@color/teal_200</item>
        <item name="colorOnSecondary">@color/black</item>
        <item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
    </style>
</resources>

seemed to get fixed by creating a new project... love android


add the links point to the harbor repication doc

Signed-off-by: Chen Jing<EMAIL_ADDRESS>Verified that the page link can work from our doc

Codecov Report

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

@@           Coverage Diff           @@
##             main      #76   +/-   ##
=======================================
  Coverage        ?   41.77%
=======================================
  Files           ?        6
  Lines           ?      888
  Branches        ?        0
=======================================
  Hits            ?      371
  Misses          ?      487
  Partials        ?       30

Flag
Coverage Δ

unittests
41.77% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Added tests for domain tags, breadcrumb, and create/edit/delete of records

Purpose
Abstracted adding tag logic, tests for creating a domain with tag, adding tag to domain detail page, updating SOA record, add edit delete MX record, add edit delete A/AAAA Record. add edit delete of CNAME record, add edit delete of TXT record, add edit delete SRV record, add edit delete CAA record, and breadcrumb navigation.
Test
yarn && yarn start new shell yarn selenium new shell yarn e2e --spec=e2e/specs/domains/detail-add-records.spec.js

Coverage remained the same at 32.173% when pulling 8d98dab9fc94f7280cd8b3e3786654820d08844b on nwisnewski:M3-517 into 72e82bb15f1757df527bf171af8be83545df3b7c on linode:develop.


[Productize Flash Attention performance] Features

This is the Flash Attention Performance features productization umbrella ticket. Before converting this ticket umbrella ticket, please:

Add the step-by-step Flash Attention Performance features productization plan here.
Create a separate ticket for each step and list it here. For ease of tracking,  prefix the ticket title with [Productize Flash Attention #step_number]
Add the definition of done for this ticket. The definition of done may state that all commits from PoC have been merged and CI run on the main branch shows no difference on performance numbers comparing to the PoC branch

cc: @chengjunlu, @quintinwang5, @Dewei-Wang-sh, @etiotto, @whitneywhtsang, @tdeng5, @LiyangLingIntel

This ticket is related to:

#1450

Update the status for the flash attention performance on the fallback path from the issue https://github.com/intel/intel-xpu-backend-for-triton/issues/878.
The flash attention optimization notes.
The most passes are aligned with the GEMM optimization.
Here is some memo specific for the flash attention optimization:
Already finished:

Reduce the number of the convert layout between the chained dot operations.
-- Remove redundant convert layout: #894
We can remove the un-necessary convert layout for the Q matrix. The dot layout can be backward combine all the way back to the  ops when load the Q operands. As show in the pieces of the MLIR. https://github.com/intel/intel-xpu-backend-for-triton/issues/950

Things need to be finished:

We need to optimize the convert layout op lowering by not using SLM and extra synchronization for PVC, Dtype fp16/bf16. Because it is coincidence we can feed the output from the first DPAS inst directly as the operands A to the second DPAS. The tt.dot if fully paralleled on the row dimension.  https://github.com/intel/intel-xpu-backend-for-triton/issues/951

@vlad-penkin is this issue meant to our flash attention Poc for the demo show with Habana(the block pointer path we are working) or not?

features need to be productize

#1457
#1458
#1459
#1461
#1462
#1303
#1201

code are all merged, still need https://github.com/intel/intel-xpu-backend-for-triton/issues/1758 to make sure the llvm-target branch can reproduce the perf of poc branch.


Add ability to run tests in seeded-random order through --seed flag

Addresses #124

@jzaefferer  @vladikoff  r?

Looks good to me.

Updated and merged 461e408
Thanks @jzaefferer :)


beatsabermodmanager: 0.0.5 -> 0.0.7

Description of changes

Things done

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] 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/)
24.11 Release Notes (or backporting 23.11 and 24.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.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 339370

x86_64-linux

:x: 1 package failed to build:

beatsabermodmanager

Please rebase on master

Build fails:
building '/nix/store/h27blkagnak2sabmhipwx7kxn5jrlf9y-beatsabermodmanager-0.0.6.drv'...
Running phase: unpackPhase
unpacking source archive /nix/store/snvc6h0lg7vf7ks0d66zgfpnjf1sknx6-source
source root is source
Running phase: patchPhase
Running phase: configureNuget
error: File '/build/source/nuget.config' does not exist.

Same here, just tried it by overlaying it into my flake and got the same result
beatsabermodmanager> building '/nix/store/jhnhvdqxf6128lwyvpa0a6c82sm5mamc-beatsabermodmanager-0.0.6.drv'
beatsabermodmanager> Running phase: unpackPhase
beatsabermodmanager> unpacking source archive /nix/store/snvc6h0lg7vf7ks0d66zgfpnjf1sknx6-source
beatsabermodmanager> source root is source
beatsabermodmanager> Running phase: patchPhase
beatsabermodmanager> Running phase: configureNuget
beatsabermodmanager> error: File '/build/source/nuget.config' does not exist.

@ImUrX Hey  I noticed the source files for the tagged version of the package hasn't been updated but the prepacked binaries have... I think it may be for the best to target against the git source instead of the tagged releases since there's been a couple of commits made that fixed the application version's number. Additionally, there's actually a pretty major bug right now that I found that the manager isn't saving the mods 😓

:sweat: yeah i can update the whole thing, will do it today if i dont forget

cc @affederaffe

and sorry for the format changes, i have alexandra on save on format but i can revert those changes if needed :sweat:

If anything, use nixfmt-rfc-style and do it in a separate commit.
We have a standard on this.

so it should be another commit? but isnt that also against contribution guidelines

and if it needs to be another commit, whats the naming convention? sorry for so many questions, i just read the guidelines and it just mentions
(pkg-name): (from -> to | init at version | refactor | etc)

(Motivation for change. Link to release notes. Additional information.)

so it should be another commit? but isnt that also against contribution guidelines

The action of formatting the file is one logical step and should therefore be one commit separated from all the other logical steps/commits.
I don't see how that violates any contributing guidelines, it tells you to do exactly that.

and if it needs to be another commit, whats the naming convention? sorry for so many questions, i just read the guidelines and it just mentions
(pkg-name): (from -> to | init at version | refactor | etc)

(Motivation for change. Link to release notes. Additional information.)

I'm not sure what you're confused about, it tells you right there. You're touching BSMM and what you're doing is apply nixfmt or IOW formatting the nix expressions. Following the pattern given that leaves us with: beatsabermodmanager: format using nixfmt. Stating a motivation isn't required here as it should be obvious.
If the way this section of the contributor's manual is written wasn't immediately understandable to you, please open an issue about that. Most of us don't frequently have a need to read and understand the contributor's manual and will therefore not be aware of any shortcomings.
Alternatively, you could even open a PR where you change the wording such that you would have understood it better. The contributor's manual isn't set in stone and any change to it that helps onboarding future contributors is welcome.
It's absolutely fine and even encouraged to ask questions if you're unsure about something but please always be specific in your questions so that we can effectively answer them.

cool, well should be working fine, and ready for review. thanks for the explanation!

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 339370

x86_64-linux

:white_check_mark: 1 package built:

beatsabermodmanager

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 339370

x86_64-linux

:x: 1 package failed to build:

beatsabermodmanager

Build log
beatsabermodmanager> Running phase: configurePhase
beatsabermodmanager> Executing dotnetConfigureHook
beatsabermodmanager>   Determining projects to restore...
beatsabermodmanager> /build/source/BSIPA-Linux/IPA-lib/IPA-lib.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Ref with version (= 6.0.36) [/build/source/BeatSaberModManager/BeatSaberModManager.csproj]
beatsabermodmanager> /build/source/BSIPA-Linux/IPA-lib/IPA-lib.csproj : error NU1102:   - Found 2 version(s) in _nix [ Nearest version: 8.0.11 ] [/build/source/BeatSaberModManager/BeatSaberModManager.csproj]
beatsabermodmanager> /build/source/BSIPA-Linux/IPA-lib/IPA-lib.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Runtime.linux-x64 with version (= 6.0.36) [/build/source/BeatSaberModManager/BeatSaberModManager.csproj]
beatsabermodmanager> /build/source/BSIPA-Linux/IPA-lib/IPA-lib.csproj : error NU1102:   - Found 2 version(s) in _nix [ Nearest version: 8.0.11 ] [/build/source/BeatSaberModManager/BeatSaberModManager.csproj]
beatsabermodmanager> /build/source/BSIPA-Linux/IPA-lib/IPA-lib.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Ref with version (= 6.0.36) [/build/source/BeatSaberModManager/BeatSaberModManager.csproj]
beatsabermodmanager> /build/source/BSIPA-Linux/IPA-lib/IPA-lib.csproj : error NU1102:   - Found 2 version(s) in _nix [ Nearest version: 8.0.11 ] [/build/source/BeatSaberModManager/BeatSaberModManager.csproj]
beatsabermodmanager> /build/source/BSIPA-Linux/IPA-lib/IPA-lib.csproj : error NU1102: Unable to find package Microsoft.AspNetCore.App.Runtime.linux-x64 with version (= 6.0.36) [/build/source/BeatSaberModManager/BeatSaberModManager.csproj]
beatsabermodmanager> /build/source/BSIPA-Linux/IPA-lib/IPA-lib.csproj : error NU1102:   - Found 2 version(s) in _nix [ Nearest version: 8.0.11 ] [/build/source/BeatSaberModManager/BeatSaberModManager.csproj]
beatsabermodmanager> /build/source/BSIPA-Linux/IPA-lib/IPA-lib.csproj : error NU1102: Unable to find package Microsoft.NETCore.App.Host.linux-x64 with version (= 6.0.36) [/build/source/BeatSaberModManager/BeatSaberModManager.csproj]
beatsabermodmanager> /build/source/BSIPA-Linux/IPA-lib/IPA-lib.csproj : error NU1102:   - Found 2 version(s) in _nix [ Nearest version: 8.0.11 ] [/build/source/BeatSaberModManager/BeatSaberModManager.csproj]
beatsabermodmanager>   Failed to restore /build/source/BSIPA-Linux/IPA-lib/IPA-lib.csproj (in 527 ms).
beatsabermodmanager>   Restored /build/source/BeatSaberModManager/BeatSaberModManager.csproj (in 12.51 sec).

so i guess its still needed, weird. it built for me with nix-build -A. Is there any difference from nixpkgs-review and nix-build -A?

Yes, nixpkgs-review first merges with master, nix-build just runs on your branch.

And you are currently basing your branch on a nixpkgs commit from late October :wink:

should work now i think

Sadly still no word from the upstream maintainers regarding the flaw I found in the app a bit 😭

IME the upstream dev does respond but will take a few months to do so. This is typical for OSS maintainers and I do the same for some of my projects.
I was going to give this some actual testing but, given that it doesn't eval on master anymore and that I didn't get around to it the past few weeks, I'm fine with merging this if someone tells me it successfully installs BS mods for them on a clean BeatSaber install (just rename the game files dir and verify files in Steam).

It's the same on 0.0.6. I'll try 0.0.5 but with the newer dotnet.

Here's what you need to permit:
    nixpkgs.config.permittedInsecurePackages = [
      "dotnet-runtime-wrapped-6.0.36"
      "dotnet-runtime-wrapped-7.0.20"
      "dotnet-runtime-7.0.20"
      "dotnet-core-combined"
      "dotnet-sdk-6.0.428"
      "dotnet-sdk-7.0.410"
      "dotnet-sdk-wrapped-6.0.428"
      "dotnet-sdk-wrapped-7.0.410"
    ];

This is pain. @corngood why is every single one of these marked as insecure separately? Surely the wrappers or the combined package don't need to be as the wrapped/contained packages are already insecure.

@Atemu I had assumed that was because they were transitively insecure, but I guess I misunderstood.  It must be because of how we're inheriting meta.  It should be fixable in that case.

Inheriting meta whole is generally not a good idea. Always pick the parts you actually care about.


WA task configured for Cafcass Upload Docs And Pathfinder cases

Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] README and other documentation has been updated / added (if needed)
[ ] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/PRL-6155
https://tools.hmcts.net/jira/browse/PRL-5951
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No

Changes are moved to https://github.com/hmcts/prl-wa-task-configuration/pull/167 , hence closing this pr


Fix: fixedHeader prop for DataTable

Remove "fake" auto style
Rename to stickyHeader
Maybe only set border when table is scrolled (ref auf scrollContainer + scrollTop > 0 check)

Solved with #383


FusedBatchNorm operation - TF and SameDiff values mismatch

Might be ND4J or test problem:

 RUNNING TEST fused_batch_norm/float16_nhwc...
o.n.l.c.n.o.NativeOpExecutioner - Failed to execute op fused_batch_norm. Attempted to execute with 5 inputs, 3 outputs, 0 targs,0 bargs and 2 iargs. Inputs: [(HALF,[1,2,3,4],c), (FLOAT,[4],c), (FLOAT,[4],c), (FLOAT,[0],c), (FLOAT,[0],c)]. Outputs: [(HALF,[1,2,3,4],c), (FLOAT,[4],c), (FLOAT,[4],c)]. tArgs: -. iArgs: [0, 1]. bArgs: -. Op own name: "FusedBatchNormV3". Input var names: [in_0/read, in_1/read, in_2/read, Const, Const_1]. Output var names: [FusedBatchNormV3, FusedBatchNormV3:1, FusedBatchNormV3:2] - Please see above message (printed out from c++) for a possible cause of error.
o.n.i.T.TFGraphTestAllSameDiff - ERROR Executing test: fused_batch_norm/float16_nhwc - input keys []

TF vs SameDiff mismatch, test to reproduce:

    public void testFusedBatchNorm1() {
        INDArray x = Nd4j.createFromArray(new float[]{0.7788f,0.8012f,0.7244f,0.2309f,
            0.7271f, 0.1804f, 0.5056f, 0.8925f,
            0.5461f, 0.9234f, 0.0856f, 0.7938f,
            0.6591f, 0.5555f, 0.1596f, 0.3087f,
            0.1548f, 0.4695f, 0.9939f, 0.6113f,
            0.6765f, 0.1800f, 0.6750f, 0.2246f}).reshape(1,2,3,4);
        INDArray scale = Nd4j.createFromArray(new float[]{ 0.7717f, 0.9281f, 0.9846f, 0.4838f});
        INDArray offset = Nd4j.createFromArray(new float[]{0.9441f, 0.5957f, 0.8669f, 0.3502f});

        INDArray y = Nd4j.createUninitialized(DataType.DOUBLE, x.shape());
        INDArray batchMean = Nd4j.create(4);
        INDArray batchVar = Nd4j.create(4);

        FusedBatchNorm op = new FusedBatchNorm(x,scale,offset,0,1,
                y, batchMean, batchVar);

        INDArray expectedY = Nd4j.createFromArray(new float[]{1.637202024f, 1.521406889f, 1.48303616f, -0.147269756f,
              1.44721508f,  -0.51030159f,  0.810390055f,     1.03076458f,
              0.781284988f, 1.921229601f,  -0.481337309f,    0.854952335f,
              1.196854949f, 0.717398405f,  -0.253610134f,    -0.00865117f,
              -0.658405781f,0.43602103f,   2.311818838f,    0.529999137f,
              1.260738254f, -0.511638165f, 1.331095099f,   -0.158477545f}).reshape(x.shape());
        Nd4j.exec(op);
        assertArrayEquals(expectedY.shape(), y.shape());
    }

Are you sure you're comparing proper op here? What's TF op name in the graph?

name: "FusedBatchNormV3"
op: "FusedBatchNormV3"

rgr, thanks

Test
    public void testFusedBatchNormHalf() {
        INDArray x = Nd4j.create(DataType.HALF, 1,2,3,4);
        INDArray scale = Nd4j.createFromArray(new float[]{0.7717f, 0.9281f, 0.9846f, 0.4838f});
        INDArray offset = Nd4j.createFromArray(new float[]{0.9441f, 0.5957f, 0.8669f, 0.3502f});

        INDArray y = Nd4j.createUninitialized(DataType.HALF, x.shape());
        INDArray batchMean = Nd4j.create(4);
        INDArray batchVar = Nd4j.create(4);

        FusedBatchNorm op = new FusedBatchNorm(x, scale, offset, 0, 1,
                y, batchMean, batchVar);
        Nd4j.exec(op);
    }

Fixed


Buffered upload no longer requires length in sync client

Previously, Storage's InputStream -> Flux conversion method required a length for pregenerating a flux of set size to chunk the stream into. Since then, azure.core has introduced a converter that uses Flux.generate() to recreate the flux as needed. They serve slightly different cases:

Storage converter can handle stream marking for when we don't want to buffer a payload, but requires length upfront.
Core converted cannot handle stream marking (and so buffering is necessary) but doesn't require a length.

Since any storage transfer method that avoids buffering in favor of seeking requires a supplied length for the REST call anyway, this PR shifts to using the azure.core method when desired, rather than modifying one of those converters to serve both purposes.

/azp run java - storage - ci

/azp run java - storage - ci

/check-enforcer override

overrode check enforcer to deal with pipeline bugs. was green before they were introduced. discussed offline with team.

closing and opening in a new PR to get a new pipeline. this one seems permanently ruined by the bug the other day.

Apparently we're stuck with this pipeline

/azp run java - storage - ci


ARROW-10655: [C++] Add cache and memoization facility

Two cache implementations are provided:

a two-level random replacement cache
a LRU cache

The LRU cache ends up 4 to 5 times faster than the 2-level RR cache.
Benchmarks (arg 1: key size, arg 2: value size):
RRCacheLookup/8/16             8593 ns         8592 ns        79226 items_per_second=11.6386M/s
RRCacheLookup/8/1024           8608 ns         8607 ns        78896 items_per_second=11.6182M/s
RRCacheLookup/64/16           11422 ns        11420 ns        60260 items_per_second=8.75626M/s
RRCacheLookup/64/1024         11477 ns        11475 ns        60242 items_per_second=8.71453M/s
LRUCacheLookup/8/16            1875 ns         1875 ns       367803 items_per_second=53.3402M/s
LRUCacheLookup/8/1024          1867 ns         1867 ns       371785 items_per_second=53.567M/s
LRUCacheLookup/64/16           2621 ns         2621 ns       264372 items_per_second=38.1525M/s
LRUCacheLookup/64/1024         2639 ns         2638 ns       259995 items_per_second=37.9043M/s
MemoizeLRUCached/8/16          5224 ns         5223 ns       133050 items_per_second=19.1452M/s
MemoizeLRUCached/8/1024        5847 ns         5846 ns       115158 items_per_second=17.1043M/s
MemoizeLRUCached/64/16         5800 ns         5799 ns       118064 items_per_second=17.2432M/s
MemoizeLRUCached/64/1024       6492 ns         6491 ns       103886 items_per_second=15.4062M/s

Rebased.

@pitrou @bkietz can we merge this?

@pitrou @bkietz can we merge this?

@nealrichardson I'll probably remove the two-level replacement cache, which doesn't seem useful after all.

I've updated this PR with a thread-unsafe memoizer and revamped benchmarks. I'll let @bkietz take a look.

@bkietz Any other concerns?

same naming style nit I've brought up before LruCacheLookup?  Maybe we should just make this another exception to the style guide?

+1 for renaming LRUCache -> LruCache

+1 for renaming LRUCache -> LruCache

Done.


fixed issue #108 Bug: AOS not working

The Bug/issue #108 that I just opened regarding AOS not working for "projects" card in the vision section has been fixed.
##Demo Working Video below.
https://drive.google.com/file/d/1Z7WLF_iWxNbd37eqfkQegSFl5rlES8CV/view?usp=sharing
##Before and After Comparison
Before:- https://drive.google.com/file/d/17LNAYTOGei1yGaCyXkmrviiqBPrfBfU8/view?usp=share_link
After:- https://drive.google.com/file/d/1Z7WLF_iWxNbd37eqfkQegSFl5rlES8CV/view?usp=sharing
To test it on your local device,
clone the repo using git clone <repo_link>
install dependancies using npm install
run the app using npm run dev.

Nice Work :) @gfaizank

@pooranjoyb Thank you so much :)


Symlinked namespace directories are mishandled

Reported as:
yakut compile https://github.com/UAVCAN/public_regulated_data_types/archive/refs/heads/master.zip
Traceback (most recent call last):
  <...>
  File "<...>/pydsdl/_namespace.py", line 422, in _ensure_no_namespace_name_collisions
    raise RootNamespaceNameCollisionError("The name of this namespace conflicts with %r" % b, path=a)
pydsdl._namespace.RootNamespaceNameCollisionError: /private/var/folders/z9/y477y8hd1gn8ss5__l_x70t00000gn/T/yakut-dsdl-fg59acm6/public_regulated_data_types-master/reg: The name of this namespace conflicts with '/var/folders/z9/y477y8hd1gn8ss5__l_x70t00000gn/T/yakut-dsdl-fg59acm6/public_regulated_data_types-master/reg'

Notice the difference: /private/var/ <--> /var/. This issue appears to affect only macOS users.
The fix should be to use os.path.realpath along with abspath here:
https://github.com/UAVCAN/pydsdl/blob/7d93f00158d2145a2997c37fc16710ae291220a6/pydsdl/_namespace.py#L135-L137
@coderkalyan can you look into this, please?

Sure thing, will take a look this weekend.


fixfix getting ugi methods and unify them

Proposed changes
put all ugi login methods to HadoopUGI

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

run buildall

run buildall


jdk version 1.8.0_292  Mac11.2.3  Failed to write core dump. Core dumps have been disabled

how to deal ?
looking forward to replying to the email
thanks!
describe:
enveriment :IntelliJIdea2021.1
start tomcat: error message
Abnormal build process termination:
Build process started. Classpath: /Applications/IntelliJ IDEA.app/Contents/plugins/java/lib/jps-launcher.jar:/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/lib/tools.jar

A fatal error has been detected by the Java Runtime Environment:

SIGFPE (0x8) at pc=0x000000011165e608, pid=1349, tid=0x0000000000006363

JRE version: OpenJDK Runtime Environment (8.0_292-b10) (build 1.8.0_292-b10)
Java VM: OpenJDK 64-Bit Server VM (25.292-b10 mixed mode bsd-amd64 compressed oops)
Problematic frame:
j  com.sun.tools.javac.comp.ConstFold.fold2(ILcom/sun/tools/javac/code/Type;Lcom/sun/tools/javac/code/Type;)Lcom/sun/tools/javac/code/Type;+877

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

An error report file with more information is saved as:
/Users/didi/Library/Caches/JetBrains/IntelliJIdea2021.1/compile-server/hs_err_pid1349.log
Compiled method (c1)   33720 1611       1       java.lang.Integer::intValue (5 bytes)
total in heap  [0x0000000111ba3bd0,0x0000000111ba3e60] = 656
relocation     [0x0000000111ba3cf8,0x0000000111ba3d20] = 40
main code      [0x0000000111ba3d20,0x0000000111ba3da0] = 128
stub code      [0x0000000111ba3da0,0x0000000111ba3e30] = 144
scopes data    [0x0000000111ba3e30,0x0000000111ba3e38] = 8
scopes pcs     [0x0000000111ba3e38,0x0000000111ba3e58] = 32
dependencies   [0x0000000111ba3e58,0x0000000111ba3e60] = 8

Try one of the 3 solutions outlined in https://izziswift.com/how-to-generate-core-dumps-in-mac-os-x/

I tried,  Solution no. 1, no.2,  no.3,  The error is still there
In my mac, only one project have the problem， others project is normal
no .4 method , I can't find pId, this method has not been tried
I also tried unstall idea, install a new idea   ,change jdk,  clear project, and git clone the error project for a new space
Sadly, it still failed

That's very interesting it's only happening on one project.  So other projects also crash but are able to write crash reports?

Closing this, unable to reproduce with latest temurin and IntelliJ builds


Game tests + sha256 builtin

Adds everything that we need for the demo

sha2 and sha3 primitives
end-to-end tests for game and crowdfunding contract
better comments for the crowdfunding contract

You need to regenerate the package set.

I'd like to merge this soon, looks like the builtins are working.
@vmchale Are you OK with the new module?


substitute "s" does not work

Shift + "s" does not work for me either. This key is bound in the default configuration for this plugin.

Hi!
I just ipm installed this package today and tried "s" or "shift-s", but I guess substitute isn't working..
Could you have a look at it?
Thank you in advance :)

Fixed in v1.0.7. Thanks!


fix grep expression when figuring out release shas

The special release label was being used in a webhook selector which was
removed. This diff broke how we calculated the from and to sha's for the
nightly updates
ie. the following diff is what broke the script before
-    serving.knative.dev/release: "v20220203-d2a7c418"
+    serving.knative.dev/release: "v20220217-f40f6752"
-    serving.knative.dev/release: "v20220203-d2a7c418"
+    serving.knative.dev/release: "v20220217-f40f6752"
-        - key: serving.knative.dev/release

/assign @kvmware

/lgtm