Build Error on React Native 0.59.0 version

Is this a bug report?
YES - The is a Bug

Have you read the Installation Instructions?
YES
Environment
react-native: 0.59.0
react: 16.8.3
react-native-maps: 0.23.0
Target: Android 28
Steps to Reproduce

Create Sample Project using React Native 0.59.0
Install React Native Maps
Run react-native run-android

Expected Behavior
Build Successfully
Actual Behavior
Build Failed
Error Message:
Could not resolve com.android.support:support-compat:28.0.0.
Required by:
      project :react-native-maps > com.facebook.react:react-native:0.59.0 > com.android.support:appcompat-v7:28.0.0
      project :react-native-maps > com.android.support:support-core-utils:28.0.0
      project :react-native-maps > com.android.support:support-fragment:28.0.0
      project :react-native-maps > com.facebook.react:react-native:0.59.0 > com.android.support:appcompat-v7:28.0.0 > com.android.support:support-vector-drawable:28.0.0
      project :react-native-maps > com.android.support:support-core-utils:28.0.0 > com.android.support:loader:28.0.0
      project :react-native-maps > com.android.support:support-core-ui:28.0.0
      project :react-native-maps > com.android.support:support-core-ui:28.0.0 > com.android.support:customview:28.0.0
      project :react-native-maps > com.android.support:support-core-ui:28.0.0 > com.android.support:viewpager:28.0.0
      project :react-native-maps > com.android.support:support-core-ui:28.0.0 > com.android.support:coordinatorlayout:28.0.0
........

Same issue with me

Any workaround to solve this issue?

same issue here

here is aworkaround
yarn add "react-native-maps@jerolimov/react-native-maps#fix-rn59rc-compile-issues"

@mo-ah-dawood thanks i tried that, the build is successful.
But app crashes when opened view with maps element.
Also tried these changes manually @59RC but crashes again

I've fixed it by simply installing the master branch, as it includes this fix I believe https://github.com/react-native-community/react-native-maps/pull/2702
npm install git://github.com/react-native-community/react-native-maps.git#master --save

@kdenz You are right. Next release will fix it!
If you guys prefer to locking to a specific commit you can use the current one:
    "react-native-maps": "https://github.com/react-native-community/react-native-maps.git#c102c36d895cbef8b6a8deefd4c58fb0dc17638e",

Same issue 🥇

@MrDatastorage did you test with the git master version ?

@MrDatastorage did you test with the git master version ?

> Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
   > More than one variant of project :react-native-maps matches the consumer attributes:
       - Configuration ':react-native-maps:debugApiElements' variant android-aidl:
           - Found artifactType 'android-aidl' but wasn't required.
           - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
           - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
           - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
           - Required org.gradle.usage 'java-api' and found compatible value 'java-api'.```

Can you give me an ETA on the next release? Days, weeks, months?

Same as @rangav, adding master did the trick for Android compile but the app keeps crashing on Android when the MapView is ready.
onMapReady gets fired but then the app crashes. I have no error message to understand where it comes from.
On iOS it works fine, no such crashes.

I had this problem too when migrated from 0.57 to 0.59.
For me the problem was with gradle version:
Just change in android/build.gradle:
classpath 'com.android.tools.build:gradle:3.3.1'
with
classpath 'com.android.tools.build:gradle:3.1.4

Ok I found a solution to the problem of the app crashing on map load:
https://stackoverflow.com/questions/50782806/android-google-maps-java-lang-noclassdeffounderror-failed-resolution-of-lorg-a

With master, I keep getting blank map with message: AwesomeProject is having trouble with Google Play services. Please try Again.

@sinodko that’s because your device doesn’t have Google Play Services installed. If you use the android emulator check in the SDK Manager that you downloaded the Google Play Services and then in AVD Manager create a new device using Google Play and not Google APIs (nexus 5 has that option and you’ll see the Play Store logo next to the name on the first step).

@lbtbly hello and thanks for quick response! google maps was working fine on my emulator until yesterday's react-native upgrade :D Do I need to re-install avd device anyway?

@lbtbly I've installed Google Play Service from SDK Manager and created new avd for Google Play (instead of Google API) but I'm getting the same message that my project is having trouble with Google Play services :/

Ok I found a solution to the problem of the app crashing on map load:
https://stackoverflow.com/questions/50782806/android-google-maps-java-lang-noclassdeffounderror-failed-resolution-of-lorg-a

@Aleksion
didn't work here what exactly did you do , ive updated the version to 16.1.0 and tried adding the line to android manifest but encountering same issue

@YazeedAsaad I found that solution by running adb logcat. That enables you to see the error that's thrown when it crashes. Would you be able to share that here?

@YazeedAsaad I found that solution by running adb logcat. That enables you to see the error that's thrown when it crashes. Would you be able to share that here?

Just grep all react info: adb logcat | grep react

@MrDatastorage  Did you solve you issue?

master works for RN 0.59.1
I just published v0.24-rc1 on github. anyone can use this tag for testing until we get a version out via npm.
I tested with react-native init 0.59.1 on both android and iOS
some config differs from the example project but no changes in config for projects with RN 0.58 or higher

@YazeedAsaad I found that solution by running adb logcat. That enables you to see the error that's thrown when it crashes. Would you be able to share that here?

@Aleksion doesn't crash with me sorry if i made it appear like that when i replied to your message ;
the issue i'm talking about is  "the app is having trouble with google play services" message
i also tried 0.59.1  it shows the same message

@YazeedAsaad this issue was solved when using
      <meta-data
               android:name="com.google.android.maps.v2.API_KEY"
               android:value="GOOGLE_MAPS_API_KEY"/>

instead of
 <meta-data
    android:name="com.google.android.geo.API_KEY"
    android:value="Your Google maps API Key Here"/>

in the android manifest
and make sure in your gradle build file you're using the correct versions of google play services
    implementation 'com.google.android.gms:play-services-base:16.1.0'
    implementation 'com.google.android.gms:play-services-maps:16.1.0'

@YazeedAsaad this issue was solved when using
      <meta-data
               android:name="com.google.android.maps.v2.API_KEY"
               android:value="GOOGLE_MAPS_API_KEY"/>

instead of
 <meta-data
    android:name="com.google.android.geo.API_KEY"
    android:value="Your Google maps API Key Here"/>

in the android manifest
and make sure in your gradle build file you're using the correct versions of google play services
    implementation 'com.google.android.gms:play-services-base:16.1.0'
    implementation 'com.google.android.gms:play-services-maps:16.1.0'

@salah-ghanim
now it gives me this error
error: package com.airbnb.android.react.maps does not exist
what should i update it to in the mainApplication.java ?

@YazeedAsaad the gradle file changes are added on top of your current map project setup
so the full map related parts of the gradle file should look something like this
    implementation(project(':react-native-maps')) {
        exclude group: 'com.google.android.gms', module: 'play-services-base'
        exclude group: 'com.google.android.gms', module: 'play-services-maps'
    }
    implementation 'com.google.android.gms:play-services-base:16.1.0'
    implementation 'com.google.android.gms:play-services-maps:16.1.0'

@salah-ghanim any ETA on publishing to npm?
Anything we can do to help?

Just to inform that when upgrading to 0.59 I don't think I had any crash with the maps (at least on iOS). But from the info on this issue changed to the master of this repo and worked just fine without any issue so far :)

just to let you all know that "app is having trouble with google play services. please try again" was solved by changing  com.google.android.gms:play-services-maps from  16.1.0 to 16.0.0 as :
compile "com.google.android.gms:play-services-base:16.0.1"
compile "com.google.android.gms:play-services-maps:16.0.0"

downgrade react-native version to 0.55.4 then build will success

Workaround: Open node_modules/react-native-maps/lib/android/build.gradle and copy & place gradle code from #2702.

Seems still issues not resolved for android ,
The workarounds issues
Solution 1)  "react-native-maps@jerolimov/react-native-maps#fix-rn59rc-compile-issues" resolved the compile issues but maps app closed automatically once opened
Solution 2)"react-native-maps": "https://github.com/react-native-community/react-native-maps.git#c102c36d895cbef8b6a8deefd4c58fb0dc17638e", solution looks better as app is not crashed but I'm getting blank area in MapView area.
Other following fix with above solutions combination didn't have any impact
ex.

updating android:name="com.google.android.maps.v2.API_KEY"
#2702 already available from above solution 1
downgrading react-native or updating play-services-base & maps

tried everything with combination but still maps are not sowing.
PS: My google api keys works fine on react projects,  ( did enable Google android maps  api )

Seems still issues not resolved for android ,
Tried all the solution from previous comments but no luck showing the map.

"react-native-maps@jerolimov/react-native-maps#fix-rn59rc-compile-issues" resolved the compile issues but maps app closed automatically once opened
2)"react-native-maps": "https://github.com/react-native-community/react-native-maps.git#c102c36d895cbef8b6a8deefd4c58fb0dc17638e" still same,
however I've updated  same time so app is not closed but it shows blank
The following didn't have any impact for me
ex

updating android:name="com.google.android.maps.v2.API_KEY"
using #2702
downgrading react-native or updating play-services-base & maps

is anyone have fixed and sample source code available in github ?  I've used react-native"0.59.0-rc.3"
PS: My google api keys works fine on react projects, ( did enable Google android maps api )

downgrade react-native version to 0.55.4 then build will success

that version will have problems with iOS - Archive as it does not support Xcode 10.

I'm using fine latest version of react native and react native maps from master

After switch to master branch, I can build success on android, but this version cause leak memory in MapView, so I decide to switch back to version 0.23.0 and change build.gradle file of react-native-maps project to :
`apply plugin: 'com.android.library'
apply from: 'gradle-maven-push.gradle'
def DEFAULT_COMPILE_SDK_VERSION               = 28
def DEFAULT_BUILD_TOOLS_VERSION               = "28.0.3"
def DEFAULT_TARGET_SDK_VERSION                = 27
def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION      = "16.0.1"
def DEFAULT_GOOGLE_PLAY_SERVICES_MAPS_VERSION = "16.0.0"
def DEFAULT_ANDROID_MAPS_UTILS_VERSION        = "0.5+"
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
android {
compileSdkVersion safeExtGet('compileSdkVersion', DEFAULT_COMPILE_SDK_VERSION)
buildToolsVersion safeExtGet('buildToolsVersion', DEFAULT_BUILD_TOOLS_VERSION)
defaultConfig {
minSdkVersion 16
targetSdkVersion safeExtGet('targetSdkVersion', DEFAULT_TARGET_SDK_VERSION)
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'
}
lintOptions {
disable 'InvalidPackage'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
def googlePlayServicesVersion = safeExtGet('googlePlayServicesVersion', DEFAULT_GOOGLE_PLAY_SERVICES_VERSION)
// Variable lookup order : googlePlayServicesMapsVersion > googlePlayServicesVersion > DEFAULT_GOOGLE_PLAY_SERVICES_MAPS_VERSION
def googlePlayServicesMapsVersion = safeExtGet('googlePlayServicesMapsVersion', safeExtGet('googlePlayServicesVersion', DEFAULT_GOOGLE_PLAY_SERVICES_MAPS_VERSION))
def androidMapsUtilsVersion = safeExtGet('androidMapsUtilsVersion', DEFAULT_ANDROID_MAPS_UTILS_VERSION)
compileOnly "com.facebook.react:react-native:+"
compileOnly('com.facebook.react:react-native:+') {
exclude group: 'com.android.support'
}
implementation "com.android.support:appcompat-v7:${safeExtGet('supportLibVersion', '28.0.0')}"
implementation "com.google.android.gms:play-services-base:$googlePlayServicesVersion"
implementation "com.google.android.gms:play-services-maps:$googlePlayServicesMapsVersion"
implementation "com.google.maps.android:android-maps-utils:$androidMapsUtilsVersion"
}
`
-> android build success and no memory leak.

@kduy969 could you please add some more details about the memory leak? In anew issue? 🤗

@rborn in IOS, each time I open a screen which contain a  , memory go up about 50mb, but when I go back , memory not reduce the same amount ,try this a few times will make app crash. After that, I use Xcode profile tool to monitor leak event, this point out leak memory come from AIRGoogleMap[getActionForTarget] , despite I have no marker on MapView. When I remove MapView, issue gone away.

@kduy969 can you open an new issue please.

@alvelig @rborn I opened new issue here
https://github.com/react-native-community/react-native-maps/issues/2782

Thanks @YazeedAsaad
Changing Google play services version from
compile "com.google.android.gms:play-services-base:16.0.1"
to
compile "com.google.android.gms:play-services-maps:16.0.0"
also solved my problem.
Also adding at AndroidManifest.xml

solved the google map app crashing issue.
Android root build.gradle was also updated with Google play services version         googlePlayServicesVersion = "16.0.0" -
ext {
buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28
supportLibVersion = "28.0.0"
googlePlayServicesVersion = "16.0.0"
androidMapsUtilsVersion = "0.5+"
}

Adding  "" as mentioned by @nazmulhq  solved all of my issues!

when I check on the adb logcat
05-15 15:49:53.819 18537 18556 E ReactNativeJS: s is not a function. (In 's()', 's' is 3)
05-15 15:49:53.828 18537 18557 E AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
05-15 15:49:53.828 18537 18557 E AndroidRuntime: Process: com.beaheromobile, PID: 18537
05-15 15:49:53.828 18537 18557 E AndroidRuntime: com.facebook.react.common.JavascriptException: s is not a function. (In 's()', 's' is 3), stack:

Adding <uses-library android:name="org.apache.http.legacy" android:required="false"/> to the AndroidManifest.xml file fixed the issue for me.  Thanks @nazmulhq!
RN: 0.59.1


Cloud agnostic scenarios ?!

Are the provided scenarios cloud agnostic, meaning if I have my cluster setup in Digital Ocean for example, can I run those scenarios there or not ?
Thanks

Hi @ayoubeddafali thanks for your issue but none of the scenarios are cloud agnostic at the moment. Since all of the scenarios create some deliberately vulnerable infrastructure they aren't something I'd recommend running on your own cluster.

Closing


Manual setup guide

Hi Ray,
I do not use Composer at the moment and I had tried to download your DOMPDFModule as well as the dompdf package from the DOMPDF site. Could you describe what else needs to be done besides the following in order to get it working?:

Putting them into the vendor directory:
vendor/dino/DOMPDFModule
vendor/dompdf/dompdf

Adding entry into the init_autoloader.php file:
Zend\Loader\AutoloaderFactory::factory(array(
'Zend\Loader\StandardAutoloader' => array(
'autoregister_zf' => true,
'namespace' => array(
'dompdf'        => 'vendor/dompdf/dompdf',
'DOMPDFModule'  => 'vendor/dino/DOMPDFModule',
)
)
));

Adding entry into the autoload_classmap.php file:

return array(
'dompdf'        => DIR . '/../../vendor/dompdf/dompdf/',
'DOMPDFModule'  =>DIR.'/../../vendor/dino/DOMPDFModule/',//=>DIR.'/../../vendor/DOMPDFModule-master/',
);
I tried render and putting a PDF file in a directory but received the warning that the PdfModel module could not be found:
Class 'DOMPDFModule\View\Model\PdfModel' not found.

Hi @royyong,
As you've noticed DOMPDFModule hasn't received the time and attention it deserves. I understand how frustrating this is and I'm sorry you've had to deal with this frustration 😢
I'm currently taking steps to stabilize DOMPDFModule which includes code updates as well as creating a backlog that will ensure its continued success.
You can follow project Phoneix  to see what immediate work is being prioritized.
Thank you for your understanding and patience.

Closing issue: This is not a supported method of installation.


Mac + Python 3.6.1: Attempting to download mnist data results in CERTIFICATE_VERIFY_FAILED error

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS X 10.12.5
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): v1.2.0-rc2-21-g12f033d 1.2.0
Bazel version (if compiling from source): n/a
CUDA/cuDNN version: none
GPU model and memory: n/a
Exact command to reproduce:

$ python3 --version
Python 3.6.1

$ python3 -m virtualenv venv
Using base prefix '/Library/Frameworks/Python.framework/Versions/3.6'
New python executable in .../venv/bin/python3
Also creating executable in .../venv/bin/python
Installing setuptools, pip, wheel...done.

$ source venv/bin/activate
$ pip install tensorflow
Collecting tensorflow
  Using cached tensorflow-1.2.0-cp36-cp36m-macosx_10_11_x86_64.whl
  ....

$ python
Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from tensorflow.examples.tutorials.mnist import input_data
>>> mnist = input_data.read_data_sets("/tmp/data/")
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1400, in connect
    server_hostname=server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 401, in wrap_socket
    _context=self, _session=session)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 808, in __init__
    self.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 1061, in do_handshake
    self._sslobj.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 683, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../venv/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 235, in read_data_sets
    SOURCE_URL + TRAIN_IMAGES)
  File ".../venv/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 208, in maybe_download
    temp_file_name, _ = urlretrieve_with_retry(source_url)
  File ".../venv/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 165, in wrapped_fn
    return fn(*args, **kwargs)
  File ".../venv/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 190, in urlretrieve_with_retry
    return urllib.request.urlretrieve(url, filename)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 248, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)>

This doesn't reproduce with TensorFlow 1.1.

Could you try with python2 (default system install of py)? Also,  how did you install with brew or macports (we use brew for our testing so that's more likely to work).

I installed Python 3.6 using the dmg installer from the Python website (not through brew or macports).
It seems to work with Python 2.7.10. I had thought that in Python 2.x urlretrieve didn't validate the server certificate, but apparently it does as of 2.7.9: https://docs.python.org/2/library/urllib.html

It works me on python 3.4 on Linux. I'd try installing python3.6 using brew. It could be the python3 distrib you are using has out of data certificates.

This might have also been because I recently switched to a new machine and it's still only partially installed :)
For future reference: if you want to use the Python dmg installer, you also have to read Python 3's ReadMe and run the /Applications/Python 3.6/Install Certificates.command bash script to install newer certs.
Thanks for the quick response, @aselle!

If you want to just copy paste into Terminal:
/Applications/Python\ 3.6/Install\ Certificates.command

I'm getting exactly this same issue on MacOSX 10.11.6
I first followed exactly the steps here for the virtualenv setup for Python 3.n: https://www.tensorflow.org/install/install_mac
Then, following the first 2 steps in this tutorial https://www.tensorflow.org/get_started/mnist/beginners I see the following; any suggestions for working-around this (e.g. could I download this from somewhere else?) would be greatly appreciated.
(tensorflow) ~/tensorflow  $ python
Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from tensorflow.examples.tutorials.mnist import input_data
>>> mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1318, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1239, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1285, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1234, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 964, in send
    self.connect()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/http/client.py", line 1400, in connect
    server_hostname=server_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 401, in wrap_socket
    _context=self, _session=session)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 808, in __init__
    self.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 1061, in do_handshake
    self._sslobj.do_handshake()
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/ssl.py", line 683, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/aaron/tensorflow/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/mnist.py", line 235, in read_data_sets
    SOURCE_URL + TRAIN_IMAGES)
  File "/Users/aaron/tensorflow/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 208, in maybe_download
    temp_file_name, _ = urlretrieve_with_retry(source_url)
  File "/Users/aaron/tensorflow/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 165, in wrapped_fn
    return fn(*args, **kwargs)
  File "/Users/aaron/tensorflow/lib/python3.6/site-packages/tensorflow/contrib/learn/python/learn/datasets/base.py", line 190, in urlretrieve_with_retry
    return urllib.request.urlretrieve(url, filename)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 248, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1361, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/urllib/request.py", line 1320, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)>

@brightbytes-dude Did you run the command listed here: https://github.com/tensorflow/tensorflow/issues/10779#issuecomment-309134512
/Applications/Python\ 3.6/Install\ Certificates.command

That did the trick, thanks!!  (I stupidly assumed that was only relevant for the dmg installation.)

Could you please change the MNIST download URL in contrib/learn/python/learn/datasets/mnist.py to not use https ? That will help people who are having this problem. In tried in a browser and the http download link works.
line to change:
SOURCE_URL = 'https://storage.googleapis.com/cvdf-datasets/mnist/'
new line:
SOURCE_URL = 'https://storage.googleapis.com/cvdf-datasets/mnist/'

After running /Applications/Python\ 3.6/Install\ Certificates.command, I still have the same problem on my 3.6.3

Hello,
I'm new to python and tensorflow. Trying the MNIST example and receive the about the same error messages as paulcwatts (above)

from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
Traceback (most recent call last):
File "C:\Users\Andreas\Documents\Python\lib\urllib\request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "C:\Users\Andreas\Documents\Python\lib\http\client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\Andreas\Documents\Python\lib\http\client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\Andreas\Documents\Python\lib\http\client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\Andreas\Documents\Python\lib\http\client.py", line 1026, in _send_output
self.send(msg)
File "C:\Users\Andreas\Documents\Python\lib\http\client.py", line 964, in send
self.connect()
File "C:\Users\Andreas\Documents\Python\lib\http\client.py", line 1400, in connect
server_hostname=server_hostname)
File "C:\Users\Andreas\Documents\Python\lib\ssl.py", line 401, in wrap_socket
_context=self, _session=session)
File "C:\Users\Andreas\Documents\Python\lib\ssl.py", line 808, in init
self.do_handshake()
File "C:\Users\Andreas\Documents\Python\lib\ssl.py", line 1061, in do_handshake
self._sslobj.do_handshake()
File "C:\Users\Andreas\Documents\Python\lib\ssl.py", line 683, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<pyshell#4>", line 1, in
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
File "C:\Users\Andreas\Documents\Python\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\mnist.py", line 240, in read_data_sets
source_url + TRAIN_IMAGES)
File "C:\Users\Andreas\Documents\Python\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 208, in maybe_download
temp_file_name, _ = urlretrieve_with_retry(source_url)
File "C:\Users\Andreas\Documents\Python\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 165, in wrapped_fn
return fn(*args, **kwargs)
File "C:\Users\Andreas\Documents\Python\lib\site-packages\tensorflow\contrib\learn\python\learn\datasets\base.py", line 190, in urlretrieve_with_retry
return urllib.request.urlretrieve(url, filename)
File "C:\Users\Andreas\Documents\Python\lib\urllib\request.py", line 248, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "C:\Users\Andreas\Documents\Python\lib\urllib\request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\Andreas\Documents\Python\lib\urllib\request.py", line 526, in open
response = self._open(req, data)
File "C:\Users\Andreas\Documents\Python\lib\urllib\request.py", line 544, in _open
'_open', req)
File "C:\Users\Andreas\Documents\Python\lib\urllib\request.py", line 504, in _call_chain
result = func(*args)
File "C:\Users\Andreas\Documents\Python\lib\urllib\request.py", line 1361, in https_open
context=self._context, check_hostname=self._check_hostname)
File "C:\Users\Andreas\Documents\Python\lib\urllib\request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748)>
The main difference is that I'm on WINDOWS 10 and I cannot find the certificates command.
Sorry for maybe asking "stupid questions" but those errors do not "go away"

If there's anyone stumbling across this page but looking for the answer to permit Tensorflow Hub in Ubuntu, I made it work like this:
# Directory where user certs can be stored
cd /usr/local/share/ca-certificates
# Below may require elevated permissions, such as sudo su
pip3 install --upgrade certifi  # Installs a certificate file
# Move the installed cert to the place Ubuntu expects it
cp /home/ubuntu/.local/lib/python3.5/site-packages/certifi/cacert.pem .
# Convert it into the format Ubuntu expects
openssl x509 -in cacert.pem -inform pem -outform der -out cacert.crt
# Actually load the new cert into the OS
update-ca-certificates

On top of this, some magical combination of configuration of my corporate proxy, restarting the Jupyter notebook kernel, and running TF Hub from a script on the terminal rather than from a notebook eventually caused TF Hub to work both on the terminal and in the notebook.

running that command also failed.
./Install\ Certificates.command
-- pip install --upgrade certifi
Collecting certifi
Cache entry deserialization failed, entry ignored
Could not fetch URL https://pypi.python.org/simple/certifi/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:777) - skipping
Could not find a version that satisfies the requirement certifi (from versions: )
No matching distribution found for certifi
Traceback (most recent call last):
File "", line 44, in
File "", line 25, in main
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6', '-E', '-s', '-m', 'pip', 'install', '--upgrade', 'certifi']' returned non-zero exit status 1.

on MacOS /Applications/Python\ 3.6/Install\ Certificates.command command works for me

/Applications/Python\ 3.6/Install\ Certificates.command did the magic on MacOSX High Sierra. Thx

What is the solution for those using a virtual environment?

If you want to just copy paste into Terminal:
/Applications/Python\ 3.6/Install\ Certificates.command

thank u!

Could you please change the MNIST download URL in contrib/learn/python/learn/datasets/mnist.py to not use https ? That will help people who are having this problem. In tried in a browser and the http download link works.
line to change:
SOURCE_URL = 'https://storage.googleapis.com/cvdf-datasets/mnist/'
new line:
SOURCE_URL = 'https://storage.googleapis.com/cvdf-datasets/mnist/'

I see both the urls are same.

Could you please change the MNIST download URL in contrib/learn/python/learn/datasets/mnist.py to not use https ? That will help people who are having this problem. In tried in a browser and the http download link works.
line to change:
SOURCE_URL = 'https://storage.googleapis.com/cvdf-datasets/mnist/'
new line:
SOURCE_URL = 'https://storage.googleapis.com/cvdf-datasets/mnist/'

It worked for me.

Terminal input
open "/Applications/Python 3.6/Install Certificates.command"

Could you please change the MNIST download URL in contrib/learn/python/learn/datasets/mnist.py to not use https ? That will help people who are having this problem. In tried in a browser and the http download link works.
line to change:
SOURCE_URL = 'https://storage.googleapis.com/cvdf-datasets/mnist/'
new line:
SOURCE_URL = 'https://storage.googleapis.com/cvdf-datasets/mnist/'

I see both the urls are same.

change 'https://...' to 'http://...'

/Applications/Python 3.7/Install Certificates.command
Work for me

How to do it in Manjaro Linux? I have Python3.7 tensorflow.

If you want to just copy paste into Terminal:
/Applications/Python\ 3.6/Install\ Certificates.command

Thanks man! It works for me!
I just run the code in jupyter notebook:
!/Applications/Python\ 3.6/Install\ Certificates.command

Incase of linux...
go to .local/python3.X/lib/python3.6/site-packages/keras/utils/data_utils.py
and below import statements add these----
requests.packages.urllib3.disable_warnings()
import ssl

try:
    _create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
    # Legacy Python that doesn't verify HTTPS certificates by default
    pass
else:
    # Handle target environment that doesn't support HTTPS verification
    ssl._create_default_https_context = _create_unverified_https_context

now try new instance of python and ..hopefully it works :simple_smile:

This might have also been because I recently switched to a new machine and it's still only partially installed :)
For future reference: if you want to use the Python dmg installer, you also have to read Python 3's ReadMe and run the /Applications/Python 3.6/Install Certificates.command bash script to install newer certs.
Thanks for the quick response, @aselle!

You saved my life with this comment! <3

Could you please change the MNIST download URL in contrib/learn/python/learn/datasets/mnist.py to not use https ? That will help people who are having this problem. In tried in a browser and the http download link works.
line to change:
SOURCE_URL = 'https://storage.googleapis.com/cvdf-datasets/mnist/'
new line:
SOURCE_URL = 'https://storage.googleapis.com/cvdf-datasets/mnist/'

New Line
origin_folder = 'http://storage.googleapis.com/tensorflow/tf-keras-datasets/'

Here's what worked for me:

Download the mnist dataset file by hand (the url is given in the error message)
Copy that file into ~/.keras/datasets/

That's all.  The keras download utility looks in that folder for cached data before going over the network.

/Applications/Python\ 3.6/Install\ Certificates.command does this work for virtual environment as well?


Went to another webpage, can't get back to player.

Need help. Uninstall doesn't seem to clear all settings from the system.
OS:
Windows 10
Issue Descriptions:
After installing, went to log into my Google account and clicked a link that took me to some other google website within the program.  Now I can't get back to the login or to the Google play where the music is.  I tried uninstalled, removing any registry reference I could find and lingering directories where it gets installed.  After re-install and opening the program it returns to this other web page.
Steps to Reproduce:

Your settings file has the last stored page in it, I believe on windows it's under %localappdata%\GPMDP_3 or %appdata%\google-play-music-desktop-player. Check for a .settings.json file in there and remove the url from in between the quotes, or delete the file if you don't mind losing settings.

@Krojack This issue has been fixed in master.  The easy work around at the moment is to use the shortcut.
"Control + Shift + G" and enter the url
https://play.google.com/music/listen#/now

This will take you back to Google Play Music


getTrades() returned duplicate results not solved

@defkev I saw you put in: https://github.com/DeviaVir/zenbot/commit/439a024c05284e1a671019a4b4e55fd0f45fa2c0
But as of today, on unstable, running this: ./zenbot.sh backfill binance.EOS-BTC --days=1 results in:
skipping 23 hrs of previously collected data

binance.EOS-BTC saved 3478 trades 1 days left
.
error: getTrades() returned duplicate results
{ product_id: 'EOS-BTC', from:<PHONE_NUMBER>202 }
{ product_id: 'EOS-BTC', from:<PHONE_NUMBER>202 }

So it looks like it's still not solved.

The issue for that is also still open! #1287 ....

Contrary to my initial assumption this isn't related to dupes but most likely exchange specific.


meshroom fails ad deapthmap

using zluda it is able to get to depthmap module and finish one chunk, but fails the rest of them.

Duplicate of #79, closing


Replace Android Groovy Plugin workaround with a new plugin version

With Gradle 3.0.0 there's an issue with compatibility with Groovy (https://github.com/groovy/groovy-android-gradle-plugin/issues/156).
Currently, @mapyo introduced a workaround in rxandroidble/build.gradle. Once the new version of Groovy plugin is released it would be good to bump it in our code and get rid of the workaround.

I think this may be closed now with the plugin in version 2.0.0.

:+1:


fix bug of setting message headers or application properties repeatedly in servicebus message converter

This pr fixes the bug reported in #22893:
When convert ServiceBusReceivedMessage to Spring's Message, the Spring message headers is set twice and at the second time, values are of String format from application properties and will override the original type, and vice versa.

/azp run java - spring - tests

/azp run java - spring - tests

/azp run java - spring - tests

/azp run java - spring - tests

/check-enforcer override


Adding a pointer beside the bar rod.

As you can see the bar rod it has a pointer which is pointing towards the bar rod.
Let me explain. I am using the bar to showcase the marks of the student and i'd like to put the pointer beside the bar rod which will indicate the 'personal best score' of the student. The package uses the custom painter and paints the entire chart so i'm unable to add it. Can anyone help me with this?

Unfortunately, we don't support it at this time.
But it is not a complicated feature.
We can define a new concept of BarRodIndicator and add a list of them in each BarRodData to allow you to draw your custom indicator (we can provide some built-in ones just like FlDotPainter:
https://github.com/imaNNeo/fl_chart/blob/c8dc3c0877f9c0ea25f4f9149eec4f4de7d954b9/lib/src/chart/line_chart/line_chart_data.dart#L800-L808

Hi @PhaniUmmedisetti, I am late here, I guess. The new update in the scatter chart can fulfil your requirements; now, we can put custom paint in the Scatter chart.

Oh, I see that closed it by mistake.
I will re-open it.

Hi @imaNNeo,
Could you please confirm if this ticket is still open?
We're a small Open-Source Group within our company, consisting of 2-3 members, actively engaging with open-source projects. We're interested in tackling a "good first issue" in your FLChart Package, as it's integral to our production apps.
Excited to start collaborating on this new feature with the approach you mentioned before.

Hi @TobiasRump
Sorry for my late answer,
Yes, it is still open and you can work on it.
As a hint, you can use the same approach that we have for the FlDotPainter


Explicit build scripts

This is an attempt at #8... well, it builds locally.

win32/27

markupsafe. speedups.
It's known.
dropping from matrix, to be revisited

linux32/27 https://anaconda.org/anaconda-nb-extensions/nb_conda/builds/6/0#L171

heh, this issue is about windows :trollface:

I don't know how I had missed run_test.py, but that is probably the way of justice... if that test runs properly, we should probably use that approach wherever possible... on nbpresent, though, there would be a bunch of subprocess nonsense, so i'll keep the bat/sh files.

@bollwyvl just the .exe-related comment... I tried win32/27 and linux32/27
Hopefully the linux one will be solved this week with the new Repo release
@bollwyvl about the win one, did you reported it somewhere?
4An unexpected error has occurred, please consider sending the
375following traceback to the conda GitHub issue tracker at:
376
377    https://github.com/conda/conda-build/issues
378
379Include the output of the command 'conda info' in your report.
380
381
382Traceback (most recent call last):
383  File "C:\Users\binstar\Miniconda\Scripts\conda-build-script.py", line 4, in <module>
384    sys.exit(main())
385  File "C:\Users\binstar\Miniconda\lib\site-packages\conda_build\main_build.py", line 190, in main
386    args_func(args, p)
387  File "C:\Users\binstar\Miniconda\lib\site-packages\conda_build\main_build.py", line 468, in args_func
388    args.func(args, p)
389  File "C:\Users\binstar\Miniconda\lib\site-packages\conda_build\main_build.py", line 455, in execute
390    channel_urls=channel_urls, override_channels=args.override_channels)
391  File "C:\Users\binstar\Miniconda\lib\site-packages\conda_build\build.py", line 540, in test
392    channel_urls=channel_urls, override_channels=override_channels)
393  File "C:\Users\binstar\Miniconda\lib\site-packages\conda_build\build.py", line 285, in create_env
394    plan.execute_actions(actions, index, verbose=verbose)
395  File "C:\Users\binstar\Miniconda\lib\site-packages\conda\plan.py", line 537, in execute_actions
396    inst.execute_instructions(plan, index, verbose)
397  File "C:\Users\binstar\Miniconda\lib\site-packages\conda\instructions.py", line 148, in execute_instructions
398    cmd(state, arg)
399  File "C:\Users\binstar\Miniconda\lib\site-packages\conda\instructions.py", line 62, in EXTRACT_CMD
400    install.extract(config.pkgs_dirs[0], arg)
401  File "C:\Users\binstar\Miniconda\lib\site-packages\conda\install.py", line 484, in extract
402    t.extractall(path=path)
403  File "C:\Users\binstar\Miniconda\lib\tarfile.py", line 2078, in extractall
404    self.extract(tarinfo, path)
405  File "C:\Users\binstar\Miniconda\lib\tarfile.py", line 2115, in extract
406    self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
407  File "C:\Users\binstar\Miniconda\lib\tarfile.py", line 2191, in _extract_member
408    self.makefile(tarinfo, targetpath)
409  File "C:\Users\binstar\Miniconda\lib\tarfile.py", line 2231, in makefile
410    with bltn_open(targetpath, "wb") as target:
411IOError: [Errno 13] Permission denied: u'C:\\Users\\binstar\\Miniconda\\pkgs\\markupsafe-0.23-py27_0\\Lib\\site-packages\\markupsafe\\_speedups.pyd'

Merging this one, I will fix the exe and enable the matrix in another PR


2.4.9

Added

test: add unittest for cli

Changed

change: html report name defaults to be in UTC ISO 8601 format

Fixed

fix: display validators in report when validate raised exception
fix: eval validator python script before validating
fix: do not strip string content when preparing lazy data
fix: catch ApiNotFound exception when loading testcases
fix: print exception string with exception stage

Codecov Report

Merging #823 into master will decrease coverage by 0.09%.
The diff coverage is 57.14%.

@@            Coverage Diff            @@
##           master     #823     +/-   ##
=========================================
- Coverage   83.39%   83.29%   -0.1%
=========================================
  Files          33       33
  Lines        2415     2419      +4
=========================================
+ Hits         2014     2015      +1
- Misses        401      404      +3

Flag
Coverage Δ

#unittests
83.29% <57.14%> (-0.1%)
:arrow_down:

Impacted Files
Coverage Δ

httprunner/loader/buildup.py
90.9% <0%> (-1.4%)
:arrow_down:

httprunner/cli.py
55.73% <0%> (-0.93%)
:arrow_down:

httprunner/report/html/gen_report.py
90.9% <100%> (+0.28%)
:arrow_up:

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 aa56893...b1a9c0d. Read the comment docs.


Adding more fields to log

Why not log even more data? With this PR we need to log:

[x] Make it correctly log extension
[x] Log Convergence Parameters
[x] Log Queue sizes
[x] Log the first timestamp/packet which airbrakes.update() runs with

Must be merged after #99

I would argue that after #99 we don't need to log queue sizes anymore.

I still think we should tbh. Theres no reason not to. It definitely helps with debugging and finding where performance issues happen, and it's one of the fields where you cant go back in post-processing and find it out then.

I agree with will. If for some reason in the future they do exceed 15, we wouldn't know that easily,

i mean whats one more column on the log file. Gotta use the whole 128gb if we have 128gb

alright, it could be ever so slightly more overhead but it's probably worth it

Changes:

All packets are now in a separate folder
DebugPacket is only logged for the first packet processed, so that way we know which is the first packet the batch was, and also saves some space since those fields would be repeated for that batch anyway.

Well we do have a lot of fields to log and the log() method is just getting too crowded. We are probably going to have more fields we would want to log in the future.
If we log these for the entire batch, then we would need another field to know which packet was the first one in the batch.
I guess it's now up to @JacksonElia to break the tie.

I agree with Will here, I don't think I like the DebugDataPacket. Though because we have multiple fields we are logging from the apogee predictor, I would be fine with an apogee_prediction_data_packets. As for the queue sizes, I think they should be logged separately/individually.
After thinking about this a lot though, I think that the cleanest solution could eventually be using **kwargs when logging. Maybe I'll add it eventually.

I would be fine with an apogee_prediction_data_packets.

So another data packet class but would only contain things from that process? I can get behind that. How do you want to send the packets from that process to the main process? Do you want to include predicted_apogee in that too? Another Queue?

After thinking about this a lot though, I think that the cleanest solution could eventually be using **kwargs when logging.

Where? Some more details would be nice


Fix resolve failing when package from registry is referenced by name

Fix resolve failing when package from registry is referenced by name
Motivation:
When running swift package --replace-scm-with-registry --default-registry-url {our-registry-url} resolve, the command fails when depending on packages that reference their transitive dependencies by name.
I created a demo where you can reproduce the issue by running swift package --replace-scm-with-registry --default-registry-url {our-registry-url} resolve. You should see the following error:
error: 'cpisciotta.xcbeautify': unknown dependency 'Colorizer' in target 'XcbeautifyLib'; valid dependencies are: 'swift-argument-parser' (from 'https://github.com/apple/swift-argument-parser.git'), 'getGuaka.Colorizer', 'MaxDesiatov.XMLCoder'
error: 'cpisciotta.xcbeautify': unknown dependency 'XMLCoder' in target 'XcbeautifyLib'; valid dependencies are: 'swift-argument-parser' (from 'https://github.com/apple/swift-argument-parser.git'), 'getGuaka.Colorizer', 'MaxDesiatov.XMLCoder'

The issue boils down to:
// Root Package.swift
import PackageDescription

let package = Package(
    name: "package-test",
    dependencies: [
        // We're depending on `xcbeautify` from our root `Package.swift`
        .package(url: "https://github.com/cpisciotta/xcbeautify", exact: "2.13.0")
    ],
    targets: [
        .target(name: "package-test"),
    ]
)

// Package.swift at https://github.com/cpisciotta/xcbeautify/blob/main/Package.swift
import PackageDescription

let package = Package(
    name: "xcbeautify",
    products: [
        .library(name: "XcbeautifyLib", targets: ["XcbeautifyLib"]),
    ],
    dependencies: [
        .package(
            url: "https://github.com/getGuaka/Colorizer.git",
            .upToNextMinor(from: "0.2.1")
        ),
        .package(
            url: "https://github.com/MaxDesiatov/XMLCoder.git",
            .upToNextMinor(from: "0.17.1")
        ),
    ],
    targets: [
        .target(
            name: "XcbeautifyLib",
            dependencies: [
                // Transitive package products referenced by name
                "Colorizer",
                "XMLCoder",
            ]
        ),
    ]
)

The issue is that when swizzling the package product names to their identity counterparts, only dependencies referenced via .product(...) are swizzled. Indeed, when we change the XcbeautifyLib's dependencies to:
.product(name: "Colorizer", package: "Colorizer"),
.product(name: "XMLCoder", package: "XMLCoder"),

the resolution succeeds.
Modifications:
To fix the above issue, we swizzle also dependencies referenced by name iff the product name is the same as the package name the root depends on. This aligns with how byName is treated in other parts of the codebase, such as here.
Result:
swift package --replace-scm-with-registry --default-registry-url {our-registry-url} resolve succeeds when run in the repro sample.

@swift-ci test

@swift-ci test

Hey @MaxDesiatov 👋
Are we waiting for some additional reviews or is there anything else that needs to be done before this PR can be merged?

@swift-ci test windows

This can't be merged currently due to https://forums.swift.org/t/holiday-schedule-2024/75954

This can't be merged currently due to https://forums.swift.org/t/holiday-schedule-2024/75954

Got it, thanks for the quick response. Happy holidays 🎄


Add Warscape Engine

SteamDB app page links to a few games using this
https://steamdb.info/app/10500/
https://steamdb.info/app/34030/
https://steamdb.info/app/214950/
https://steamdb.info/app/325610/
https://steamdb.info/app/364360/
https://steamdb.info/app/594570/
https://steamdb.info/app/712100/
https://steamdb.info/app/1099410/
https://steamdb.info/app/1142710/
https://steamdb.info/app/1937780/
Brief explanation of the change
Find Warscape esf files.

After running changed rules in this pull request (this bot only tests rules.ini changes):
Changed technologies: Engine.Warscape
These apps now match: (15) 10500 15000 34030<PHONE_NUMBER>10<PHONE_NUMBER>70<PHONE_NUMBER>00 1053390 1099410 1142710 1204110 1937780 1946160
Please confirm that all these changed apps are correct.

After running changed rules in this pull request (this bot only tests rules.ini changes):
Changed technologies: Engine.Warscape
These apps now match: (15) 10500 15000 34030<PHONE_NUMBER>10<PHONE_NUMBER>70<PHONE_NUMBER>00 1053390 1099410 1142710 1204110 1937780 1946160
Please confirm that all these changed apps are correct.

merged in 41aaa2549dc25bce82739562515d3d0b878dbd5f


Mix compact and non-compact mode

Hi @bumbeishvili,
Is there any possibility to mix compact and non-compact mode, for example, to render first level with compact mode and for all other levels to have compact mode on?
Thanks in advance.

Hi, no, it's not possible without doing manual adjsutments

Thanks for quick answer. What kind of manual adjustments do you mean? Changing the source code, or I can do it inside my code?

Thanks for quick answer. What kind of manual adjustments do you mean? Changing the source code, or I can do it inside my code?

No, it will require changing the source code


Plugins with no data (empty objects) should not be included or marked

See link-info-server plugin


no project data build/binding.sln

Hi guys,
i do have the following problem for days, without getting it solved. I would like to install noble cause ob BLE access; but as soon as it comes to installing windows-build-tools i run into trouble.
Finally I installed Python 2.7 and wbtools by my own and made the configurations (npm config set msvs_version 2015) as written in the readme manual. But when I start to go one step further (installing noble, i do already have the node-gyp (compiler) (I already reinstalled vs2017 and the redistributables 2015 (64bit and 32bit) twice) ) i get the following all the time. I do
``C:\WINDOWS\system32\node_modules\bluetooth-hci-socket>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
MSBUILD : error MSB1009: Die Projektdatei ist nicht vorhanden.
 System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\WINDOWS\system32\node_modules\bluetooth-hci-socket
gyp ERR! node -v v8.11.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN saveError ENOENT: no such file or directory, open 'C:\WINDOWS\system32\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'C:\WINDOWS\system32\package.json'
npm WARN system32 No description
npm WARN system32 No repository field.
npm WARN system32 No README data
npm WARN system32 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\xpc-connection):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules\bluetooth-hci-socket):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

<EMAIL_ADDRESS>updated 1 package in 7.723s

C:\WINDOWS\system32>``
Is there somebody to help me?

Hm, this appears to be more an issue with the project / MSBuild / your computer configuration than windows-build-tools. It may have something to do with installing Visual Studio 2017 before installing windows-build-tools – I know from personal experience that installing any version of VS2015 after installing any version of VS2017 can mess things up. I know, it's sad.


Datasource support Oracle and PostgreSQL.

Task
MySQL and H2 datasource are currently supported in admin. This task is to implement support for Oracle and PostgreSQL.
Task List:

[ ] Datasource support Oracle
[ ] Datasource support PostgreSQL

Please read the Contribution Guideline before submitting the PR

i want

cool, you need to reply in here : https://github.com/apache/incubator-shenyu/issues/1951 . that can assgin to you.
At 2021-08-20 15:32:13, "奕仁" @.***> wrote:
i want
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

assign to me  [Datasource support Oracle]

assign to me [Datasource support PostgreSQL]. thanks


"-bash: audit-ci: command not found" on CircleCI

Running a CircleCI job in version 2 of CircleCi. Have the two commands, slightly modified from the Readme:
    - run: cd app && npm install --no-audit
    - run: cd app && audit-ci --moderate

When CircleCI executes the command it returns: "/bin/bash: audit-ci: command not found"
We are running node v10.15 and npm v6.9.
What am I missing? From what I understand the code makes a bash script available as audit-ci?

Hi Josh, sorry for the late response!
I am not sure exactly the issue here. We have a file bin/audit-ci that should be picked up within the environment.
One attempt might be cd app && npm install --no-audit && audit-ci --moderate? I don't know how that would be any different, just an attempt.

We had to install audit-ci globally in our Circle builds for it to work. Have you tried the “-g” flag?


Register API

As a developer, I want to be able to register my users through an API, so that I can build my custom registration UI.
**Acceptance criteria

[ ] I am able to register a user with username password
[ ] I am able to register a user with username, password and mfa
[ ] I am able to register a user with passkey
[ ] I am able to register a user with identity brokering
[ ] I am able to register organizations

Request on Discord (from MeeMee) -
Is there a way of getting the registration link after registering a humanUser via the management API, instead of sending out an email automatically? We want to send out the mail via our own API. We need to customize our invitation mail based on the company that invited an user.  (dynamic image, company name... etc...)


Add support for functions, chaining, etc

Dependencies such as JSON.stringify(foo) and bar?.baz were being replaced by undefined in the array. This fixes that problem.

@mcongrove Thanks! Merged and published.


Add username and password arguments to package commands

Hi,
I'm trying to set up CI for an ionic 2 project using Jenkins. I'm having trouble running the package build command on the server because the cli requires a login. While the upload command supports arguments for logging in, the packag commands do not.
Since our Jenkins is running in a docker container, I can't simply perform the login manually, the container is recreated regularly and loses the saved credentials.
Is there a way around this? Can you please add arguments so we can pass credentials to the command as arguments?

Any news on this, it's been quite some time?

Closing as this is related to Ionic Cloud.
The new CLI 4 will have IONIC_TOKEN environment variable you can set (alternatively you can use IONIC_USERNAME and IONIC_PASSWORD).
But I don't think this issue is relevant anymore with the Pro services we offer.


Document how to serve in development, and add --serve to watch:html.

The current npm scripts for development don't include a way to serve the built files. Because 11ty contains a dev server, we can use that.
This adds the --serve flag to npm run watch:html (and by extension npm run watch) so that developers don't need to separately serve the content.
If this is disruptive to existing workflows, we could add an alternate npm run dev that would watch css, js and html, and also serve. Alternatively, we could document how to serve with npx http-server, but since the functionality is already available through 11ty, this seems like a higher burden on contributors.

Would this cause issues for #434 ?

Would this cause issues for #434 ?

I don't think so, no -- this change just means the server will start along with the other watch:* tasks.
#434 is a good idea and will require changes to various aspects of the dev process, so this PR may be temporary.

Ok, fine by me!


Streaming openai api support

Description
Use transformers TextIteratorStreamer to support streaming response for the OpenAI API.
Ref https://huggingface.co/docs/transformers/internal/generation_utils
Related Issue
None

@lealaxy Can you add the usages of the new feature to the  documentation?

@lealaxy Can you add the usages of the new feature to the documentation scripts/openai_server_demo/README.md?

Hello, I have added the docs and modified the format of the chat/completions API request body.
Now, by running openai_api_server.py, you can use chinese-llama-alpaca-2 as the backend for any frontend application based on ChatGPT.

When I test the api with curl:
curl http://localhost:19327/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user","content": "给我讲一些有关杭州的故事吧"}
    ],
    "repetition_penalty": 1.0, "stream":true
  }'

an error occurs:
Traceback (most recent call last):
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 429, in run_asgi
    result = await app(  # type: ignore[func-returns-value]
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
    return await self.app(scope, receive, send)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/fastapi/applications.py", line 289, in __call__
    await super().__call__(scope, receive, send)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/starlette/applications.py", line 122, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__
    raise exc
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
    await self.app(scope, receive, _send)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/starlette/middleware/cors.py", line 83, in __call__
    await self.app(scope, receive, send)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 79, in __call__
    raise exc
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 68, in __call__
    await self.app(scope, receive, sender)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 20, in __call__
    raise e
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 17, in __call__
    await self.app(scope, receive, send)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/starlette/routing.py", line 718, in __call__
    await route.handle(scope, receive, send)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/starlette/routing.py", line 276, in handle
    await self.app(scope, receive, send)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/starlette/routing.py", line 69, in app
    await response(scope, receive, send)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/sse_starlette/sse.py", line 251, in __call__
    await wrap(partial(self.listen_for_disconnect, receive))
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 574, in __aexit__
    raise exceptions[0]
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/sse_starlette/sse.py", line 240, in wrap
    await func()
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/sse_starlette/sse.py", line 225, in stream_response
    async for data in self.body_iterator:
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/starlette/concurrency.py", line 63, in iterate_in_threadpool
    yield await anyio.to_thread.run_sync(_next, iterator)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/anyio/to_thread.py", line 28, in run_sync
    return await get_asynclib().run_sync_in_worker_thread(func, *args, cancellable=cancellable,
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 818, in run_sync_in_worker_thread
    return await future
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 754, in run
    result = context.run(func, *args)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/starlette/concurrency.py", line 53, in _next
    return next(iterator)
  File "/Users/yangziqing/Documents/projects/llama/PR/Chinese-LLaMA-Alpaca-2/scripts/openai_server_demo/openai_api_server.py", line 228, in stream_predict
    yield "{}".format(chunk.json(exclude_unset=True, ensure_ascii=False))
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/typing_extensions.py", line 2509, in wrapper
    return __arg(*args, **kwargs)
  File "/Users/yangziqing/opt/anaconda3/lib/python3.9/site-packages/pydantic/main.py", line 945, in json
    raise TypeError('`dumps_kwargs` keyword arguments are no longer supported.')

@lealaxy Do you have any idea? Could it be related to the package version?
my env:
python                        3.9.16
pydantic                      2.1.1
fastapi                       0.100.1
uvicorn                       0.21.1
sse-starlette                 1.6.1
starlette                     0.27.0

@airaria 是的，因为您使用了pydantic >2.0.0。而我的环境里安装了deepspeed，deepspeed 要求  pydantic<2.0.0。

Yes, it is because your are using pydantic>2.0.0, while in my environment, I have pydantic 1.10.9 installed.
Additionally, deepspeed currently requires pydantic<2.0.0. To maintain consistency between the inference and training environments, I suggest install pydantic<2.0.0.
my env:
Python 3.10.11
pydantic 1.10.9
fastapi 0.100.1
uvicorn 0.22.0
sse-starlette 1.6.1
starlette 0.27.0
torch 2.0.1
deepspeed 0.10.0

After installing pydantic==1.10.9 (other packages remain the same)
run the server (on MacOS)
python openai_api_server.py --base_model ./chinese-alpaca-2-7b --only_cpu

test without streaming
curl http://localhost:19327/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user","content": "中国的首都在哪里？"}
    ],
    "repetition_penalty": 1.0
  }'

output(copied from terminal):
{"id":"chatcmpl-N4hHBcHfx7WjwcEsQaNG8k","object":"chat.completion","created":1691067769,"model":"chinese-llama-alpaca-2","choices":[{"index":0,"message":{"role":"user","content":"中国的首都是哪里？"}},{"index":1,"message":{"role":"assistant","content":"中国的首都是北京。"}}]}

test with streaming
curl http://localhost:19327/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user","content": "中国的首都在哪里？"}
    ],
    "repetition_penalty": 1.0,
    "stream":true
  }'

output (copied from terminal, ping info is omitted):
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"role": "assistant"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "的"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "首都"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "是"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "北京"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "京。"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {}, "finish_reason": "stop"}]}
data: [DONE]

It looks like the output is incomplete and messed up with some tokens.
Did I use it in the right way?

Sorry. This was due to an error during the split generate process. I have fixed the bug now.

There are still some extra tokens...
input:
curl http://localhost:19327/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user","content": "中国的首都是哪里"},
      {"role": "assistant","content": "北京。"},
      {"role": "user","content": "法国的呢"}
    ],
    "repetition_penalty": 1.0,
    "stream": true
  }'

output:
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"role": "assistant"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": " "}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "法国"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "的"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "首都"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "是"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "巴黎"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "黎。"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {}, "finish_reason": "stop"}]}
data: [DONE]

Fixed. I think that "" should not be counted as an extra token.
"}
    ],
    "repetition_penalty": 1.0,
    "stream":true
  }'

Output2:
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"role": "assistant"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "中国"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "的"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "首都"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "是"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "北京"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "京。"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {}, "finish_reason": "stop"}]}
data: [DONE]

data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "北京"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "京。"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {}, "finish_reason": "stop"}]}

But why there is an extra("京。" (and "黎。")   and repeated ""?
Can you fix this?

I test the api with stream mode, but the responses were strange:
My input:
curl http://localhost:19327/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user","content": "告诉我中国的首都在哪里"}
    ],
    "repetition_penalty": 1.0,
    "stream": true
  }'

Output:

The previous responses all returned "", only the last one returned output, and the output loss the first token.

Sorry. Fixed.

When I run on GPU, it seems that not every token is immediately returned when generated. Instead, every once in a while, all tokens during this period will be returned together.
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"role": "assistant"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
... # Here are many lines of the repeat responses
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "亚洲是一个广阔的洲，拥有许多美丽的国家和城市。以下是一些亚洲国家及其首都：\n"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "1. "}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
...
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "印度：新德里\n"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "2. "}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
...
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "巴基斯坦：伊斯兰堡\n"}, "finish_reason": null}]}
...

This is due to the difference in GPU computing power, where different GPU have different token generation speeds.
The generated tokens are added to a buffer.  I use the TextIteratorStreamer to read tokens from the buffer in a loop and return them.
In your case, it is possible that your GPU generated a large number of tokens in a short period of time, and when reading from the buffer, returned multiple tokens at once. Then, due to CUDA calls or other reasons, there was an idle period, followed by another short period of generating a large number of tokens.
However, this does not affect the usage. On my machine (with server cooling) using the A100 GPU, token generation time is consistent.
curl http://localhost:19327/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user","content": "告诉我中国的首都在哪里"}
    ],
    "repetition_penalty": 1.0,
    "stream": true
  }'

data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"role": "assistant"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "中国"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "的"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "首都"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "是"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "北京"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "，位于"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "华北"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "地区"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": ""}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {"content": "。"}, "finish_reason": null}]}
data: {"object": "chat.completion.chunk", "model": "chinese-llama-alpaca-2", "choices": [{"index": 0, "delta": {}, "finish_reason": "stop"}]}
data: [DONE]

I test on a P40 GPU, which has lower computer capability than A100. When generating, the phenomenon is that it return several None output ("content": "") responses, then stop and wait for a long output consist of many tokens. If I input an English instruction, it can return tokens more frequently.
My shell command:
python scripts/openai_server_demo/openai_api_server.py --base_model [model_path] --gpus 0

Input and output:
curl http://localhost:19327/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user","content": "告诉我中国的首都在哪里"}
    ],
    "repetition_penalty": 1.0,
    "stream": true
  }'

curl http://localhost:19327/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [
      {"role": "user","content": "Tell me where is the capital of China."}
    ],
    "repetition_penalty": 1.0,
    "stream": true
  }'

# Here I only paste content
"content": ""
"content": ""
"content": ""
"content": ""
"content": ""
"content": ""
"content": "中国的首都是北京。

The count of "content": "" is the same as tokens count of tokenized following text (Exclude the first return "content": "" of each request).

I guess the TextIteratorStreamer will return the text when the tokens can merge into a complete word. This will lead to discontinuous text generation. However, the process of generation on your device is right. Can you check if there is something wrong with my usage?

You are right. TextIteratorStreamer avoid printing incomplete words.
The issue you encountered occurred in versions of transformers<4.29.0 and was fixed in #22664.
In the latest version of transformers, TextIteratorStreamer has been fixed to handle Chinese text, allowing for smooth retrieval of Chinese tokens.

That's the reason. After updating the version of transformers, everything is ok!


reduce cpu usage when pilot agent get envoy stats

Please provide a description of this PR:
When prom scrap stats of pilot agent, Pilot agent will use io.ReadAll to read all the byte in response.But response will use a 512 bytes slice as  buffer.It will take a lot of time to grow slice, and clean up the old slice when envoy stats is huge(such as gateway or some naming service).
So I replace io.ReadAll with io.Copy. Copy uses constant memory space, it can reduce CPU usage time.

Hi @holooooo. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

In Go 1.17 ,use custom filter to replace "\n\n" with '\n' is cheaper than replaceAll after readAll, and friendly to gc

/ok-to-test

@holooooo: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/ok-to-test

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

The writeto is reconstructed, the performance is increased by 10% compared with the previous implementation, and can deal with some envoy interrupt requests caused by the client side reading metrics too slowly.
At the same time, in order to correctly handle openmetrics, the call order of handlestats is modified. At the beginning of the request, the indicator of the scrape app metrics will be first and the corresponding content type will be set


Improved State Management and Accessibility in dashboard

Current Implementation:

The visibility of sidebars and popups is managed using direct DOM manipulation (e.g., document.querySelector).
The interactive icons ( tags) aren't wrapped inside accessible elements, which may cause usability issues.

Proposed Solution:

State Management:

Use leftSidebarOpen, rightSidebarOpen, accountPopoverOpen, and notificationPopoverOpen to control visibility with React state.

Toggle Functions:
-Use dedicated functions (toggleSidebar, toggleMessage, etc.) to handle sidebars, hidden messages, and popovers.

Conditional Class Names:

Dynamically set className for components based on state, avoiding direct DOM manipulation.

DOM Access:

Use useRef (e.g., innerMessageRef) to access DOM elements instead of document.querySelector.

Accessibility:

Wrap interactive icons in accessible elements ( or buttons) to improve usability.

@Amansingh0807 don't you read contribution guidelines, it's clearly stated issued must be assigned, before making any PR.

@Amansingh0807 don't you read contribution guidelines, it's clearly stated issued must be assigned, before making any PR.

ohh sorry, i just forget to check it though, next time it won't happen
thank you for guiding me 🙏


Cloud Providers in 1.23

The cloud providers are being removed in ~1.23~ unknown:

https://github.com/kubernetes/enhancements/tree/master/keps/sig-cloud-provider/2395-removing-in-tree-cloud-providers
https://github.com/kubernetes/enhancements/issues/2395

This issue can represent what work we have to do to migrate those.

This has been superseded with later issues on cloud provider removal (that is partially happening in 1.27 and more may be removed in later releases).


NXTBOT v5: No more jackbot-discord and per-server prefixes (hopefully)

jackbot-discord is gone!
This PR will merge jackbot-discord and NXTBOT into a single bot.

I will probably need to add a database for per-server prefixes
Also, users should also be able to ping the bot to get the prefix as well
Make sure that the ID isn't hardcoded either (use message.client.user.id i think)

per server prefixes are cancelled


Initial commit for 2017

Merged last year's autonomy code with current repo setup.
Please review:
@sagersmith8 @sagesmith-wf  @angustomlinson @Kuroshii

+1


Can Azure Web App Deployment have an option to stop/start web app?

Currently we're getting an error during the deployment like this:

Web Deploy cannot modify the file 'Microsoft.CodeAnalysis.CSharp.dll' on the destination because it is locked by an external process

if don't stop and the start the website manually.
Can you instead just add an option to do this automatically?

https://github.com/Azure/azure-powershell/issues/669
Currently the command let it'self doesn't support it.
We don't directly use msdeploy now, however this will change soon.

I think as a mid-term workaround, you could call powershell twice yourselves, and then once it's supported 'natively', drop this workaround.

We don't want to hack around this :) Work to switch to msdeploy is near though

I've run into this as well. Here's what we're doing as a work around. We run an Azure Resource Manager powershell script with something like the following code as Manage-WebApps.ps1:
Param(
    [Parameter(Mandatory = $true, ParameterSetName = 'Start')]
    [Parameter(Mandatory = $true, ParameterSetName = 'Stop')]
    [string]$Environment,

    [Parameter(Mandatory = $true, ParameterSetName = 'Start')]
    [switch]$Start,

    [Parameter(Mandatory = $true, ParameterSetName = 'Stop')]
    [switch]$Stop
)

$ResourceGroup = "--Your Resource Group--"
$appsToManage = @("app1", "app2", "appN")

ForEach ($app in $appsToManage) {
    $appName = "$Environment-$app"
    if ($Start) {
        Start-AzureRmWebApp -ResourceGroupName $ResourceGroup -Name $appName | Out-Null
        Write-Host "Started web app '$appName'"
    }
    if ($Stop) {
        Stop-AzureRmWebApp -ResourceGroupName $ResourceGroup -Name $appName | Out-Null
        Write-Host "Stopped web app '$appName'"
    }
}

We'll run this at the beginning of the release:
Manage-WebApps.ps1 -Stop -Environment dev
And this at the end:
Manage-WebApps.ps1 -Start -Environment dev
What other work-arounds have people found?

Yeah, I don't see a better workaround than using Start/Stop-RmWebApp.

I have developed a PowerShell script “Stop-WebSite.ps1” and run the below command to stop the Azure Web App from script.
**Stop-AzureRmWebApp -ResourceGroupName $ResourceGroup -Name $Name
**
But now it is throwing an error “Run Login-AzureRmAccount to login”. So is there any way to login programmatically by PowerShell command.

Thanks in advance
Nabhendu Das

Task doesn't support ARM authentication yet.
You best bet would be to use "Azure powershell" task.
Select "Azure Resource Manager" as connected type and run the script.

After attempting the "DonotDelete" flag in the web app deployment task, I get the following warning:
Cannot update deployment status for webappname - {"Message":"Deployment with id '54b6b36ba42559b6553782de67834afe4c3c98e7' exists"}
The site was locked up for a period of time (maybe about a minute), but eventually came back on line.

Essentially that means deployment was triggered more than once for the same commit.
However, it will be changed in current sprint, so that it would consider other unique Id's instead.

Essentially you need to stop - deploy - restart .
You have many options to do it but to more easy would be:
1- Extention: Azure App Services - Start and Stop
you can try the extension "Azure App Services - Start and Stop" https://marketplace.visualstudio.com/items?itemName=rbengtsson.appservices-start-stop
2- AzureCLI task
From the build or Deployment windows Add am Azure CLI task (currently in Preview)
Add one before the Deployment task
with Inline script:
 azure webapp stop --resource-group NAME_OF_YOUR_RESOURCE_GROUP --name WEBAPP_NAME
Add another one after the Deployment task
with Inline script:
 azure webapp start --resource-group NAME_OF_YOUR_RESOURCE_GROUP --name WEBAPP_NAME
I hope that help.

Careful with "azure webapp stop|start" if you are working with slots.
Currently this command ignores the --slot xxx and always uses the production slot.

@frourke , We recently added Azure App Service Manage Task (Preview) to manage Start, Stop, Restart and swap slots in Azure App Service. This task is available in most of the regions and will be available to all the regions soon.

Has the status of this changed or are we still suggested to use Azure App Service Manage Task to Stop, then Azure App Service Deploy to deploy, then Azure App Service Manage Task to Start again

@mikemaat , there is no change. As you said, the recommended way is to use Manage task for start/stop action and Deploy task for deployment.


Wrong preference for choosing default candidate (not in accordance with rfc5245)

What steps will reproduce the problem?
Just see sources:
Candidate.java getDefaultPreference() and Component.java
selectDefaultCandidate()

The issue is wrong preference for choosing default candidate.

What is the expected output? What do you see instead?
Candidates priority must be:
relayed
reflexive
host

Currently designed in ice4j:
relayed
host
reflexive

https://tools.ietf.org/html/rfc5245#page-25

   It is RECOMMENDED that default candidates be chosen based on the
   likelihood of those candidates to work with the peer that is being
   contacted.  It is RECOMMENDED that the default candidates are the
   relayed candidates (if relayed candidates are available), server
   reflexive candidates (if server reflexive candidates are available),
   and finally host candidates.

What version of the product are you using? On what operating system?
latest trunk version, revision 470

Please provide any additional information below.

Nov 10, 2014 3:32:33 PM org.ice4j.ice.Agent gatherCandidates
INFO: Gather candidates for component command.RTP
Nov 10, 2014 3:32:33 PM org.ice4j.ice.Agent createComponent
INFO:   [fe80:0:0:0:a6:19ff:fe55:827a]:8888/udp (host)
Nov 10, 2014 3:32:33 PM org.ice4j.ice.Agent createComponent
INFO:   <IP_ADDRESS>:8888/udp (host)
Nov 10, 2014 3:32:33 PM org.ice4j.ice.Agent createComponent
INFO:   <IP_ADDRESS>:8888/udp (srflx)
Nov 10, 2014 3:32:33 PM com.streamer.iceagent.Ice createStream
INFO: RTP Component created in 75 ms
Nov 10, 2014 3:32:33 PM com.streamer.iceagent.Ice createAgent
INFO: Total harvesting time: 123ms.

media stream:command (component count=1)
Component id=1 parent stream=command
3 Local candidates:
default candidate: candidate:2 1 udp<PHONE_NUMBER> <IP_ADDRESS> 8888 typ host
candidate:1 1 udp<PHONE_NUMBER> fe80:0:0:0:a6:19ff:fe55:827a 8888 typ host
candidate:2 1 udp<PHONE_NUMBER> <IP_ADDRESS> 8888 typ host
candidate:3 1 udp<PHONE_NUMBER> <IP_ADDRESS> 8888 typ srflx raddr <IP_ADDRESS>
rport 8888
no remote candidates.

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 10 Nov 2014 at 4:04

Thank you for the feedback! Commit 75c2a52f9e1f0a33688950ddd1f55e1f166bb8dd fixes this issue.


Tenant-qualify inbound paths of JSP-based webapps

Description:
The current inbound paths to JSP web apps do not have the tenant domain as a path parameter.
eg: localhost:9443/authenticationendpoint
This task will tenant-qualify the inbound paths by appending the tenant domain as follows,
eg: localhost:9443/t/{tenant.domain}/authenticationendpoint
This task will tenant-qualify the following JSP-based webapp endpoints, which are related to the core login and account lifecycle management functionalities.

[x]  /authenticationendpoint https://github.com/wso2/product-is/issues/8249
[x]  /accountrecovery https://github.com/wso2/product-is/issues/8130

Done


react-native-screens package update

-"react-native-safe-area-context": "^3.0.2",
+"react-native-safe-area-context": "^3.1.1"

Ref: https://github.com/th3rdwave/react-native-safe-area-context/commit/883bc241b08ba67aa532429d9b9dc19dfd2854a1
Bumping version based on the crashes we're seeing
Crash reports
Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 2. Wait queue head age: 6283.4ms.), VisibleToUser

"main" prio=5 tid=1 TimedWaiting
  | group="main" sCount=1 dsCount=0 obj=0x7586de38 self=0xa7784400
  | sysTid=21166 nice=-4 cgrp=default sched=0/0 handle=0xaa498534
  | state=S schedstat=(<PHONE_NUMBER> 48633020 871 ) utm=83 stm=19 core=4 HZ=100
  | stack=0xbe2dd000-0xbe2df000 stackSize=8MB
  | held mutexes=
  at java.lang.Object.wait! (Native method)
- waiting on <0x08c1a22b> (a java.util.concurrent.atomic.AtomicBoolean)
  at java.lang.Object.wait (Object.java:407)
  at com.th3rdwave.safeareacontext.SafeAreaView.waitForReactLayout (SafeAreaView.java:83)
- locked <0x08c1a22b> (a java.util.concurrent.atomic.AtomicBoolean)
  at com.th3rdwave.safeareacontext.SafeAreaView.updateInsets (SafeAreaView.java:54)
  at com.th3rdwave.safeareacontext.SafeAreaView.maybeUpdateInsets (SafeAreaView.java:113)
  at com.th3rdwave.safeareacontext.SafeAreaView.onAttachedToWindow (SafeAreaView.java:137)

I think I found a bug where this is causing the carousel to advance when clicking the "how it works" link in onboarding.
Bug: https://youtu.be/9viBPm1XvVY
Expected behaviour (master): https://youtu.be/irFy1VozOGI

Okay - tested by @henrytao-me @smcmurtry and myself.


allow the static router to be overriden at runtime

When using Envoy in your own app, you don't want Envoy's static content, you want your own. So I allowed your own static path to be passed in at startup.

+1merged


Add credentials and link of the team members. (Link will be provided soon)

In the Teams page, the credentials are just some dummy stuffs. Here is the link for the member's in core group. Add the required credentials and links to each of the members.

This is P0 for now. Let's get this worked on ASAP.

Done


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_52i9k2j6cg/clone/recipe/meta.yaml:1: missing_python: For pypi packages, python should be present in the host and run sections. Missing in host
ERROR: /tmp/abs_52i9k2j6cg/clone/recipe/meta.yaml:1: missing_python_build_tool: Python packages require a python build tool such as setuptools.
ERROR: /tmp/abs_52i9k2j6cg/clone/recipe/meta.yaml:1: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_52i9k2j6cg/clone/recipe/meta.yaml:31: missing_pip_check: For pypi packages, pip check should be present in the test commands
ERROR: /tmp/abs_52i9k2j6cg/clone/recipe/meta.yaml:36: incorrect_license: The recipe's about/license key is not an SPDX compliant license or license exception, closest match: PSF-2.0
WARNING: /tmp/abs_52i9k2j6cg/clone/recipe/meta.yaml:40: missing_license_file: The recipe is missing the about/license_file or about/license_url key.
WARNING: /tmp/abs_52i9k2j6cg/clone/recipe/meta.yaml:40: missing_description: The recipe is missing a description
Errors were found