#704: Remove WagonManager

Removing legacy WagonManager and going forward with Transporter from https://maven.apache.org/resolver/index.html
Advantage: multiple transporter providers possible, not just the default Wagon. Also, future-proof.
it-transporter-002 is testing FileTransporter instead of the default Wagon.

@slawekjaranowski please review

Still waiting for an answer whether we can simply use Wagon (without WagonManager from maven-compat). Note that there's also a org.apache.maven.repository.legacy.WagonManager, of which I don't know whether it's going to be deprecated or not. Hence my question about Wagon in general.
For the time being, I'm still working on a version using HttpClient (largely based on Wagon), but I think I'll also create a version using Wagon only while waiting for the answer.

Answer from the current Wagon maintainer is that it is definitely future-proof.
Got an implementation using Wagon ready.
However, I'm still thinking whether not to simply employ HttpClient 5 instead. Disadvantage of such a solution would be that it would basically boil down to be a yet another reinterpretation of Wagon...
What do you think, @slawekjaranowski @slachiewicz ?

Rebased and resolved conflicts (a lot of them again). Still weighing in whether I should go with this or simply HttpClient5.

As you can see -- implementation using Wagon is ready and kicking, but I am still thinking whether not to go with pure HttpClient.

I've decided that it's not worth it to go with HttpClient5 directly. Too much adapting plus Wagon is already a thin layer around it. Maybe later.
@slawekjaranowski please review
if you decide it's ready, please merge

Ok, good enough

Still working on a version with HttpClient5. But that will come later. Perhaps in the next release.


update to Purescript 0.7.1

Updating to the latest Purescript.
Also I noticed that the node package is already at 0.7.1
I know we don't have to mirror core Purescript's versioning but I wanted to know if we wanted to.
@shinnn

@garyb @paf31 @shinnn review?

:+1: from me.
We do have a version mismatch between compiler and npm package, @shinnn would prefer that we use semver, but I argued for tying it to the compiler version, however we're now in a kind of limbo between the two, so maybe we should just go with semver as @shinnn suggested :smile:

I would just like another way of knowing what version of PureScript I'm installing.
Either before or upon installation. At the moment the only for me to know was to check the source.
Maybe that's the best option, but if there's another good alternative then I would like to discuss it.

@shinnn @garyb what's the status on merging this?

I'm totally fine with merging it, just still not sure what we should do with the version. I agree that knowing what version you're going to install is useful which is why I liked mirroring the compiler version, however I also like the semver approach as it's the way you're "supposed" to do npm modules as it works much better with npm itself.
One thing I had been considering is using versions like 7.1.0, bumping the initial part out of the version scheme altogether, the only problem then is what we do when purescript 1.0 is finally released, as chances are it won't be the version after 0.9 (like, we'll need 0.10, 0.11, etc most likely).
Releasing this as 0.7.2 means we'll forever be at least .1 ahead of the compiler version during 0.7-0.8, but if we unpublish the current 0.7.1 and republish this as it then that's going to cause all kinds of problems potentially.

Hmm, although actually, I don't think we added any new language features in 0.7.1, only exhaustivity checking and some other similar "meta" enhancements... maybe we could republish it this one time, although I'm still not sure how good an idea that is.

I may be wrong, but I was under the impression that you can't publish a version of an npm module more than once. I thought NPM prevented that nowadays

You could well be right, I think I read something about that too now you mention it. Any thoughts on versioning? It seems like going with semver and jumping to 1.0.0, dropping any pretense of version mirroring might be the least bad way forward, even though it means you need to look up which version you're getting first.
We could at least add a message to the install script to print which version of binaries has just been installed.

As I said here https://github.com/purescript-contrib/node-purescript-bin/issues/4#issuecomment-119350610, I want psc-publish to support --help and --version.
How about adding them and publish it as v0.7.2? Then, we can publish this npm package in the same version, 0.7.2.

I think @shinnn idea would work well.
Another idea would be to build a Purescript Version Manager. Then we wouldn't feel the temptation to mirror the version, while providing a nice tool. Thoughts?

Okay, skipping up to 0.7.2 sounds good too. I'll get things rolling when I get a minute.
A "PVM" might be handy too, but it seems like a slightly separate concern as this is useful for local installs as well as global.

Yeah I agree with you there

@paf31 can we make a 0.7.2 compiler release once

purescript/purescript#1300
purescript/purescript#1299
purescript/purescript#1298

are in?

Absolutely.

We may be able to get the versions to line up now, but unless we can be sure that they will continue to line up in the future, I think we should drop all pretense of versions lining up and do something like skipping to 1.0.0, like @garyb said, with corresponding versions clearly and prominently listed on the README.

v0.7.2 is released now, if you want to update this PR @seanstrom :)

@garyb @shinnn Okay updated :)

@shinnn I changed the version back in the package.json. Just waiting on tests to pass now.

@shinnn anymore feedback? I addressed the last ones. Thanks again :)

Great work!
@seanstrom, could you squash those 5 commits into a single commit, update for purescript v<IP_ADDRESS> with a commit message about that psc-publish command supports --help and --version flag as of v<IP_ADDRESS>?

@shinnn done :cake:

:clap: Thanks, @seanstrom :)

Thanks @seanstrom!
Is this good to release now @shinnn? I can do it if you're busy.

@seanstrom This is finally available via npm now. Thanks! :smile:

Hooray! Thank you! :)

Sorry for my laziness. Thanks, @garyb!

No problem, thanks for making the thing in the first place :+1:


Google Colab example errors with ImportError: cannot import name 'functional' from 'albumentations'

Describe the bug
Trying to run the colab linked to in README errors with: ImportError: cannot import name 'functional' from 'albumentations'
To Reproduce

Open https://colab.research.google.com/drive/1gKUiocwfCvcvVfiKzAaf6voiUVL2KK_r?usp=sharing in your browser
Select runtime > change runtime type > GPU
Select runtime > run all

Environment (please complete the following information):
Google colab
Screenshots

Additional context
Add any other context about the problem here.

the installed albumentations is too old.
I have tried albumentations version 1.0.0 (and btw a newer opencv like 4.6.0 is also necessary) and it works

Thanks, yep, if you have a pinned set of dependencies, that would be a great help!

@ivyleavedtoadflax is there an update to conda env we should make? I think this only a case on colab which has a version of things pre-installed, but which are old. I haven't heard of this other than that case.

It would be good if you could pin the requirements so that there is a specific version for each package listed in https://github.com/weecology/DeepForest/blob/main/environment.yml, or add a pinned set of dependencies with something like pip freeze > requirements.txt (I don't use conda, so I don't know the conda equivalent, but i'm sure there is one). Otherwise a user will end up with a different environment if they install the dependencies today and then do it again next week, solely due to the changes in the dependencies.

I've submitted a PR with the noted minimum version updates. I don't think we generally want to force the use of specific versions of packages unless necessary because it can make working with other packages more challenging.


Port incremental parse ability to sourcekit-lsp

To sync changes in https://github.com/apple/swift-syntax/pull/1685
This feature will be used when we call changeDocument in SwiftLanguageServer.
TODO:

[x] Add test cases for it

@swift-ci Please test


Cannot Add Skill Specializatiojns

GM or Player attempts to click on + in a skill, no love. no response from the UI..

I also have the same problem with NPCs

You are correct, this was an oversight. Unfortunately, I won't be able to fix it any time soon, but I will fix it. At most it would have to wait until after the full release of Foundry V12. I can't promise anything else.

Seriously? Wow, so much for using this any time soon


style(data_structures): line breaks

Style nit. Add line breaks.

#7766  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Only affects whitespace, so merging without review.

Merge activity

Dec 10, 5:55 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.


Coverage generates unequivalent code

I'm not sure where to report this issue, so please point me if I'm wrong.
I'm trying to test the following code:
for (const key of Object.keys(limits)) {
    const curr = limits[key], value = options[key];

Without coverage, on Node 5.6, it works properly. key varies on every iteration, curr and value do too, as they are all well scoped variables.
When I activate coverage (npm t -- --cov) the generated code is not equivalent, as it probably hoists (incorrectly) all variables and both key, curr and value are immutable across all iterations over Object.keys(limits) and fail silently (not so, as tests fail then).

This is an istanbul bug, not a tap bug.


How Can I Get Generated Text?

First of all thank you for the project.
As i understand, project doing lip reading and creating text first and then text-to-speech with Tacotron.
I'm trying to get generated text from lip reading. Is it possible?
Also do i need text which includes speeches in videos for training my own data?
Thank you.

Our model generates speech (Mel-spectrograms followed by raw speech) from lip movements. Our network uses tacotron 2's decoder and a 3D CNN based encoder which takes video frames as input. The output from the network is a  mel-spectrograms which is then converted to raw speech using a vocoder. There is no text involved anywhere in the pipeline.


Update fs-extra version to latest

fs-extra used by this module is currently v0.30.0. This is now well behind - current is v2.1.2.
Need to update the dependency, but problem is that it needs checking first if any new methods have been added that need to be promisified / any sync methods that need to be excepted from promisification.
@CyberiumShadow, @andyhu, @rifler, @ReFruity you all expressed interest in the update in PR https://github.com/overlookmotel/fs-extra-promise/pull/21. Would any of you have any time to investigate.
I'm really keen to get this done, but completely tied up and not sure when I'll get to it myself.

@overlookmotel Looking into it atm.

@overlookmotel afaik, nothing needs to be added apart from moveSync() https://github.com/jprichardson/node-fs-extra/issues/309 and https://github.com/jprichardson/node-fs-extra/pull/381
walk() and walkSync() are gone from fs-extra
Other than that, that should be it

@CyberiumShadow Great! Thanks for looking into that. I'll release a new version with latest fs-extra shortly.

Updated fs-extra to latest in v1.0.0, just released. It is done!

\o/


Add integration tests for the basic round trip

Resolves #169

@prestonvasquez can you review my PR?

@axlts There are a few linting errors. You can check these locally with make lint assuming you have the golangci-lint binary installed.
You will also need to run make fmt locally and push those updates.

@prestonvasquez Thanks a lot! I will fix the problems found by the linter and let you know.
If you are satisfied with the tests written by me, can you assign me to the same issues (#167, #168 and #170)? I would like to work on these.

@axlts GitHub is kind of strange with assignments... since you aren't considered a "contributing member" yet, you need to comment on each of those tickets for me to assign you.

@axlts Outstanding work! Thank you so much for contributing this 💯


Source detail page NED links are broken

Reported by @radioastronomer via Slack:

When you click on the NED link, one consistently gets a lost precision error. This appears to be because a full double’s worth of precision may be betting passed. If we assume 0.01" precision (which is more than we need for matching), I think we need to have the string pass include {0:.6} .format(RA) and {0:.6} .format(Dec) or something similar.

Additional info from @ajfox123 via Slack:

I've found that sources with positive declination coordinate need to have a "+" in between the RA and DEC for links to NED or it won't find the object.

Fixed in 45361eb.


Cannot download a particular bitchute-link

Checklist

[x ] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.12.17
[x ] I've checked that all provided URLs are alive and playable in a browser
[x ] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[ x] I've searched the bugtracker for similar issues including closed ones

Verbose log

PASTE VERBOSE LOG HERE

$ youtube-dl -v https://www.bitchute.com/video/Krqp3JXDq3Uu/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.bitchute.com/video/Krqp3JXDq3Uu/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.6.9 (CPython) - Linux-5.4.0-109-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.8, ffprobe 3.4.8, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[BitChute] Krqp3JXDq3Uu: Downloading webpage
[BitChute] Krqp3JXDq3Uu: Checking video URL
[BitChute] Krqp3JXDq3Uu: video URL is invalid, skipping: HTTP Error 404: Not Found
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 815, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/youtube_dl/YoutubeDL.py", line 836, in __extract_info
ie_result = ie.extract(url)
File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/common.py", line 534, in extract
ie_result = self._real_extract(url)
File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/bitchute.py", line 66, in _real_extract
self._sort_formats(formats)
File "/usr/local/lib/python3.6/dist-packages/youtube_dl/extractor/common.py", line 1374, in _sort_formats
raise ExtractorError('No video formats found')
youtube_dl.utils.ExtractorError: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Description

WRITE DESCRIPTION HERE
I used youtube-dl over 100 times on bitchute and it always worked, but not on that particular link.
Did the update but it didn't help.

Attention maintainers, linked video appears to be about Holocaust denial. Please close this issue.

Same problem with
https://www.bitchute.com/video/OzULDeRZ0vBn/
https://www.bitchute.com/video/oUiHFd7Sjiqs/

Videos don't play. My mistake.


"no arguments in initialization list" runtime error

Hi, I'm running into a cryptic error. My CRS in the geopandas dataframe seems to be properly set, however I cannot convert it to any other CRS.
>>> print(gdf_PLU.crs)
epsg:2193
>>>gdf_PLU.to_crs(epsg=4326)
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
<ipython-input-92-46b32e6c8012> in <module>()
      1 print(gdf_PLU.crs)
----> 2 gdf_PLU.to_crs(epsg=4326)

~/anaconda3/envs/hthf/lib/python3.6/site-packages/geopandas/geodataframe.py in to_crs(self, crs, epsg, inplace)
    384         else:
    385             df = self.copy()
--> 386         geom = df.geometry.to_crs(crs=crs, epsg=epsg)
    387         df.geometry = geom
    388         df.crs = geom.crs

~/anaconda3/envs/hthf/lib/python3.6/site-packages/geopandas/geoseries.py in to_crs(self, crs, epsg)
    283             except TypeError:
    284                 raise TypeError('Must set either crs or epsg for output.')
--> 285         proj_in = pyproj.Proj(self.crs, preserve_units=True)
    286         proj_out = pyproj.Proj(crs, preserve_units=True)
    287         project = partial(pyproj.transform, proj_in, proj_out)

~/anaconda3/envs/hthf/lib/python3.6/site-packages/pyproj/__init__.py in __new__(self, projparams, preserve_units, **kwargs)
    356         # on case-insensitive filesystems).
    357         projstring = projstring.replace('EPSG','epsg')
--> 358         return _proj.Proj.__new__(self, projstring)
    359
    360     def __call__(self, *args, **kw):

_proj.pyx in _proj.Proj.__cinit__ (_proj.c:1170)()

RuntimeError: b'no arguments in initialization list'

I can't find this error message in any other issue. From similar issues it seems some data files could be missing (if so, how can I install them; I'm using the binary that is dragged in by conda-forge geopandas). Or is it something else?

A bit of digging found that the data file for all EPSG codes is in site-packages/pyproj/data/epsg. That does contain the code I'm using:
# NZGD2000 / New Zealand Transverse Mercator 2000
<2193> +proj=tmerc +lat_0=0 +lon_0=173 +k=0.9996 +x_0=1600000 +y_0=10000000 +ell      ps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs  <>

So that seems fine. Still unclear what the problem here is.

Can you share the data or a simple example that reproduces the error?

@rgommers Try this code in the Python console.
>>> from pyproj import Proj
>>> Proj('+init=epsg:2193', preserve_flags=True)

Does it produce an error?
This is what should be passed in that line, please try it, too.
>>> Proj({'init': 'epsg:2193', 'no_defs': True}, preserve_flags=True)

Does that error?

@micahcochran both of those work fine.

@rgommers That's exactly what that line should be doing in Python 3.6.
Unless you are having problems with Fiona (doubtful):
>>> from fiona.crs import from_epsg
>>> from_epsg(2193)
{'init': 'epsg:2193', 'no_defs': True}

Okay here's a standalone example that managed to isolate the problem; with @micahcochran's suggestions things work as expected.
I'd say this is still a valid issue - a clearer error would have allowed finding the problem more easily. If you agree, I can send a PR for that.
import numpy as np
import pandas as pd
import geopandas as gpd
from shapely.geometry import Point

def df_to_gdf(input_df, crs='epsg:2193'):
    """
    Convert a DataFrame with longitude and latitude columns
    to a GeoDataFrame.
    """
    df = input_df.copy()
    geometry = [Point(xy) for xy in zip(df.easting, df.northing)]
    return gpd.GeoDataFrame(df, crs=crs, geometry=geometry)

northing = [6.095531e+06, 5.681031e+06]
easting = [1.675638e+06, 2.020215e+06]
some_data = [1, 2]
df = pd.DataFrame(data=np.asarray([northing, easting, some_data]).T,
                  columns=['northing', 'easting', 'somedata'])
try:
    gdf = df_to_gdf(df)
    gdf.to_crs(epsg=4326)
except RuntimeError:
    print('epsg:2193 didnt work')

gdf = df_to_gdf(df, crs='+init=epsg:2193')
gdf2 = gdf.to_crs(epsg=4326)
print(gdf2.crs)

gdf = df_to_gdf(df, crs={'init': 'epsg:2193', 'no_defs': True})
gdf3 = gdf.to_crs(epsg=4326)
print(gdf3.crs)

gives
epsg:2193 didnt work
{'init': 'epsg:4326', 'no_defs': True}
{'init': 'epsg:4326', 'no_defs': True}

I'd accept a PR for an improved error message.

I'm encountering this error still and nothing in this thread has helped. I have tried:
p2 = pyproj.Proj("epsg:26910")
p2 = pyproj.Proj(init="epsg:26910")
p2 = pyproj.Proj('+init=epsg:26910', preserve_flags=True)
p2 = pyproj.Proj({'init': 'epsg:26910', 'no_defs': True}, preserve_flags=True)

Every single one of them returns RuntimeError: b'no arguments in initialization list'
Python version is 3.6 and pyproj version is <IP_ADDRESS>, installed with anaconda

I'm also facing the same issue, but comments above by Eskapp make no sense to me.  I also use Anaconda.  Can you clarify what exactly needs to be done to clear this error?

Trying to clarify @Jens-R-Pedersen :
I copied the data folder (located here: https://github.com/jswhit/pyproj/tree/master/lib/pyproj/) in C:\Anaconda3\Lib\site-packages\pyproj\ (which I am not sure is useful or not because after that, the error was still there)
Then, I realized that Cython was not installed in the environment I was working in. So I installed it and after that the error disappeared and everything works perfectly. I would suggest checking that Cython is installed, the first thing to try.

Thank you for the response.
I have verified that Cython is installed.  Still get the error.
I looked at your reference to the data folder below, but I don’t see any way to copy this???  Please excuse my ignorance on how to use Github.
Thanks again,
Jens
From: eepaillard<EMAIL_ADDRESS>Sent: Wednesday, November 21, 2018 11:14 AM
To: jswhit/pyproj<EMAIL_ADDRESS>Cc: Jens-R-Pedersen<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [jswhit/pyproj] "no arguments in initialization list" runtime error (#134)
Trying to clarify @Jens-R-Pedersenhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FJens-R-Pedersen&data=02|01||2b67965204774b48dbcd08d64fe57556|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636784244260235840&sdata=QA1LYBpxdRh1jDCkpFLbfrawI0i0R7sjf1JCdFSDPoU%3D&reserved=0 :
I copied the data folder (located here: https://github.com/jswhit/pyproj/tree/master/lib/pyproj/) in C:\Anaconda3\Lib\site-packages\pyproj\ (which I am not sure is useful or not because after that, the error was still there)
Then, I realized that Cython was not installed in the environment I was working in. So I installed it and after that the error disappeared and everything works perfectly. I would suggest checking that Cython is installed, the first thing to try.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjswhit%2Fpyproj%2Fissues%2F134%23issuecomment-440779421&data=02|01||2b67965204774b48dbcd08d64fe57556|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636784244260235840&sdata=UewR%2FYjcyQKMAYSMPrKC6cODnNgnFu36xgZbk7eEce4%3D&reserved=0, or mute the threadhttps://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAqjaJRqeEpKWF_TxtifxJ78-YSAMA1gGks5uxaXmgaJpZM4VAHGh&data=02|01||2b67965204774b48dbcd08d64fe57556|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636784244260235840&sdata=j2MOxRwHCK1acrOEfRmSt3ZH%2BSWIxp4Wsc1%2Bfc2IP50%3D&reserved=0.

@Jens-R-Pedersen You can clone the repo or download it as a zip file.

I am also having the same problem. Basically, I try to change crs of a dataframe by the following line and it is not been working for the last week: dataframe2 = dataframe1.to_crs(epsg='4326')
It was working about 10 days ago, so I do not know why it is not working now. Any help would be appreciated

We seem to be triggering this in the initial Cartopy AppVeyor setup, but only on Python 3.6 and not 2.7. Note that the 2.7 build also pins Cython 0.17 and proj4 4.9.1, among others, and then ends up with pyproj 1.9.4. The 3.6 build uses the latest of everything, ending up with pyproj <IP_ADDRESS>.

I experienced the same Error (using an anaconda python 3.6 and pyproj <IP_ADDRESS>) and fixed it by manually downloading the data directory as suggested by @Eskapp and then set the PROJ_LIB environment variable to point to the data directory.
This fixed the issue.
Maybe this is due to an error in the conda recipe?

@jfnk: I think so, I was also missing the data directory with an anaconda install, and downloading it manually and sticking it where it was expected to be fixed the issue.

I was having the same issue in a 32-bit miniconda Python 2.7 environment.  I did the same thing @jfnk did, and everything worked great.  Thanks!

hey guys !
thank you so much for the help and suggestions.
i had the same exact problem as @rgommers after following @Eskapp and @iboates steps everything seem to work fine. I will briefly explain what i did for those who are still facing problems.

I downloaded the whole pyproj folder from (https://github.com/jswhit/pyproj/tree/master/lib/) and replaced that with my old pyproj folder in my directory (C:\Anaconda3\Lib\site-packages)
Try to run your code (hope it works !)
If step 2 is not working then try  pip installing Cython by going to terminal and type in "pip install Cython"

@ibrahimhersi3's solution worked for me also. (Python 3.6, using anaconda, Windows 10)

I tried @ibrahimhersi3 solution, but replacing the old folder directly with the new folder is not effective. You cannot delete the pyd file in the original directory.

@zhuang-hao-ming just rename the old pyproj folder (pyprojOld e.g) and move the new pyproj folder you have downloaded inside site-packages directory

Just had the same trouble after re-installing all my packages and the solution of @jfnk worked perfect for me : just put the following code in order to make it work :
os.environ['PROJ_LIB']=r"C:\Users\[...replace accordingly...]\Anaconda3\Library\share"

Thanks a lot for all the helpful comments ! The solution of @rickantonais worked for me too:
1. no additional download necessary, but introduce the following code:
2. import os
3. os.environ['PROJ_LIB']=r"C:[... _path to_ ….]\Anaconda3\Library\share"

@rgommers checked for the current CRS in the first line of his provided code, but as many other people (probably), I was just looking quickly for the 'thumbs-up'-post.
It turned out that
> df.crs
> {}
my data frame had no CRS set... that results in the same error message.

Can y'all try pyproj==2.1.0 and see if it resolved this issue. You can install it with:
pip install pyproj==2.1.0 to use binary wheels
or with:
conda install -c conda-forge pyproj=2.1.0

@snowman2 Just upgraded to 2.1.0. Still seeing almost similar error as in the previous version of 1.9.6.
/s/anaconda/users/arehan2/miniconda2/lib/python2.7/site-packages/geopandas/geoseries.pyc in to_crs(self, crs, epsg)
    283             except TypeError:
    284                 raise TypeError('Must set either crs or epsg for output.')
--> 285         proj_in = pyproj.Proj(self.crs, preserve_units=True)
    286         proj_out = pyproj.Proj(crs, preserve_units=True)
    287         project = partial(pyproj.transform, proj_in, proj_out)

/s/anaconda/users/arehan2/miniconda2/lib/python2.7/site-packages/pyproj/__init__.pyc in __new__(self, projparams, preserve_units, **kwargs)

_proj.pyx in _proj.Proj.__cinit__()

RuntimeError: no arguments in initialization list

That still appears to be the old version. Can you please verify that you have the correct version installed?

Just fyi, this issue has gone away for me with the 2.1.* versions.

Thanks for the reports and for looking into this! If this issue still persists, feel free to reopen.

Same observation. Issue is gone with upgrading to 2.1.* version.

Had the same issue. Tried a lot of the solutions proposed here
Now the link to the repository on this thread is dead, so I downloaded the source code at https://github.com/pyproj4/pyproj
And @hahakid 's solution, which is pip install pyproj , worked for me.
I have Windows10, I initially installed geopandas with Anaconda 1.7.2 / conda 4.7.5, and I work with Python 3.7.3

Proj({'init': 'epsg:2193', 'no_defs': True}, preserve_flags=True)

I am facing exactly the same issue and it turns out that this code throws an error. How do I proceed?

Can you provide this information:
- pyproj version (`python -c "import pyproj; print(pyproj.__version__)"`)
 - PROJ version (`python -c "import pyproj; print(pyproj.proj_version_str)"`)
 - Python version (`python -c "import sys; print(sys.version.replace('\n', ' '))"`)
 - Operation System Information (`python -c "import platform; print(platform.platform())"`)

Also, I haven't seen preserve_flags before. Do you mean preserve_units?

Thanks a lot for all the helpful comments ! The solution of @rickantonais worked for me too:
1. no additional download necessary, but introduce the following code:
2. import os
3. os.environ['PROJ_LIB']=r"C:[... _path to_ ….]\Anaconda3\Library\share"

This solution worked for me as well. Installed pyproj with conda. Windows 7.

It was working till yesterday. Today I booted up my system, started the notebook and now it is not working :(
@snowman2

- pyproj version (`python -c "import pyproj; print(pyproj.__version__)"`)
 - PROJ version (`python -c "import pyproj; print(pyproj.proj_version_str)"`)
 - Python version (`python -c "import sys; print(sys.version.replace('\n', ' '))"`)
 - Operation System Information (`python -c "import platform; print(platform.platform())"`)

1.9.6
0.5.20
3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
Windows-10-10.0.17763-SP0
@jessedhenderson - This does not work for me.

1. no additional download necessary, but introduce the following code:
2. import os
3. os.environ['PROJ_LIB']=r"C:[... _path to_ ….]\Anaconda3\Library\share"

@snowman2

Can y'all try pyproj==2.1.0 and see if it resolved this issue. You can install it with:
pip install pyproj==2.1.0 to use binary wheels
or with:
conda install -c conda-forge pyproj=2.1.0

gives:
(geo_env) C:\>conda install -c conda-forge pyproj=2.1.0
Solving environment: failed

UnsatisfiableError: The following specifications were found to be in conflict:
  - gdal
  - pyproj=2.1.0
Use "conda info <package>" to see the dependencies for each package.

This will definitely churn some stomachs.
Case1: Open the jupyter notebook with correponding environment (geo_env) directly and call the method to_crs --- Error "RuntimeError: b'no arguments in initialization list'"

Case2: I open anaconda prompt, activate my environment (geo_env), start my jupyter notebook and call the method to_crs --- No Errors!!!

so I had the same problem. Using conda uninstall pyproj and then pip install pyproj worked to run the code

from pyproj import Proj
Proj('+init=epsg:2193', preserve_flags=True)

With pip version 2.2.1 is installed, so that workes, but conda uses Version 1.9.6.
But once I installed geopandas, conda would install pyproj with Version 1.9.6 again and then my code would also crashed again.
It worked, once I manually deleted the pyproj folder in anaconda\Lib\site-packages  instead of using conda uninstall. And then use pip install pyproj.

I have this same problem in a Jupyter Notebook, but it works fine in Visual Studio Code.  Any ideas as to how this could be?

Maybe your running the code in a different env in the jupyter notebook?

I have only the one base environment.  What's also weird is that if I export the python script from VSCode as a Jupyter Notebook, VSCode launches the Jupyter Notebook, and the Jupyter Notebook works!  This is not, however, a great solution as it involves extra steps.

Interestingly, if I launch either JupyterLab or Jupyter Notebook from Anaconda Navigator, rather than from an Anaconda Powershell Prompt, I get no errors!   Shouldn't these all be the same?

I encountered this error when I tried to run:
from pyproj import Proj
Proj({'init': 'epsg:2193', 'no_defs': True}, preserve_flags=True)

On the following setup:
C:\...> conda list anaconda$
# packages in environment at C:\ProgramData\Anaconda3:
#
# Name                    Version                   Build  Channel
anaconda                  2019.07                  py37_0

pyproj.__version__:
	1.9.6
pyproj.proj_version_str:
	 0.5.20
sys.version.replace('\n', ' '):
	 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
platform.platform()
	 Windows-10-10.0.16299-SP0

I fixed the error by editing the file datadir.py
changed .../Anaconda3\share\proj
to ...\Anaconda3\Library\share

@smcateer 's solution works for me as well! Although, I have the same specs but the path is
pyproj_datadir="C:\Anaconda3\Lib\site-packages\pyproj\data"
Thanks @smcateer !!

@smcateer's answer (https://github.com/pyproj4/pyproj/issues/134#issuecomment-521846924) worked for me as well.. and for all those who somehow missed where to look for the file datadir.py (like I did), it's located here in the folder  \Lib\site-packages\pyproj of the environment in question.

+1 for comment #134

import os
3. os.environ['PROJ_LIB']=r"C:[... path to ….]\Anaconda3\Library\share"

it reaally works for me !!! Thanks a lot.

Delete the folder 'pyproj' from 'site-package' (somewhere at ...\Anaconda\Lib\site-packages\pyproj, if you use Anaconda)
then 'pip install pyproj'
I faced the same problem and it worked for me. The root cause turned out to be Anaconda didn't install enough files.

Hi, I tried the most recent post. Replacing pyproj installed from anaconda and installing it with pip. It no longer gives an error, However the function has unexpected behaviour.
 crs = {'init' :'epsg:3395'} provinces_GPDF.plot() print(provinces_GPDF.crs) provinces_GPDF.to_crs(crs) print(provinces_GPDF.crs)

I had the same problem with pycharm. And I didnt have most of the folders that u guys mentioned above in my pyproj folder. And its version was 1.9. So I updated it to version 2... using conda. I think u should do it with conda rather than pip.
During the installation, I found out that when I was installing geopandas it hadn't install MKL-2020.0 properly. When I updadet pyproj, MKL-2020.0 installed as well. And after that everything worked well and I had the needed folders in pyproj folder!

gdf.to_crs('epsg = 4682')
Traceback (most recent call last):
File "", line 1, in
gdf.to_crs('epsg = 4682')
File "C:\Users\hafez\anaconda3\envs\ocean\lib\site-packages\geopandas\geodataframe.py", line 534, in to_crs
geom = df.geometry.to_crs(crs=crs, epsg=epsg)
File "C:\Users\hafez\anaconda3\envs\ocean\lib\site-packages\geopandas\geoseries.py", line 423, in to_crs
proj_in = pyproj.Proj(self.crs, preserve_units=True)
File "C:\Users\hafez\anaconda3\envs\ocean\lib\site-packages\pyproj_init_.py", line 362, in new
return _proj.Proj.new(self, projstring)
File "_proj.pyx", line 129, in _proj.Proj.cinit
RuntimeError: b'no arguments in initialization list'

@zuzhaoye 's solution:

Delete the folder 'pyproj' from 'site-package' (somewhere at ...\Anaconda\Lib\site-packages\pyproj, if you use Anaconda)
then 'pip install pyproj'

Worked for me, but it throws up a warning message, documenting it here:
C:\Users\nsheth3\AppData\Local\Continuum\anaconda3\lib\site-packages\pyproj\crs\crs.py:53: FutureWarning:'+init=<authority>:<code>' syntax is deprecated. '<authority>:<code>' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable/gotchas.html#axis-order-changes-in-proj-6

After a bit of frigging around I was able to figure out the problem. I downloaded the repo source code and copied the folder pyproj-master.zip\pyproj-master\lib\pyproj\data and copied to the location indicated in site-packages/pyproj/data/epsgdatadir.py (making sure the names lined up, I had to rename the folder from data to proj
After that, the library worked perfectly. Perhaps it is a problem with using Anaconda to install it, but this extremely crucial data folder was simply not copied, or was possibly copied to the wrong location.

this one fixed mine

After a bit of frigging around I was able to figure out the problem. I downloaded the repo source code and copied the folder pyproj-master.zip\pyproj-master\lib\pyproj\data and copied to the location indicated in site-packages/pyproj/data/epsgdatadir.py (making sure the names lined up, I had to rename the folder from data to proj
After that, the library worked perfectly. Perhaps it is a problem with using Anaconda to install it, but this extremely crucial data folder was simply not copied, or was possibly copied to the wrong location.

this one fixed mine


test(Selenium): adding selenium e2e tests

Related Ticket(s)
{{https://app.zenhub.com/workspaces/ibmcom-library-5d449f3642eb1962336cbe52/issues/carbon-design-system/ibm-dotcom-library/2455}}
Description
Added following test scripts
Linklist
Footer
Masthead
Contentblocksimple
Leadspceblock
Pictogram
CalloutQuote
Contentblocksimple
Imagewithcaption
TOC
Added one folder 'URL_List'

Removed chromedriver and init file.

@chetankan @Praveen-sr fyi, I pushed an initial change in order to let it run at least in a linux environment. However, to get this to work on linux, we would have to get selenium (which does exist) in the Jenkins agent, but would have to include dotenv and chromedriver, so we will have to do a customization there.
One thought, I'm wondering if we should be using WebDriverJS instead? It aligns fairly nicely with the rest of our repo, and we can pull those in and run agnostically across any operating system? If we're ok with that, I can take some time to convert the existing tests for WebdriverJS.

So we now seem to have a different error than the original one, basically need to get the offline mirror back in sync. I have the missing file in my local, please let me know if yarn install without offline mode doesn't download it automatically somehow.

So we now seem to have a different error than the original one, basically need to get the offline mirror back in sync. I have the missing file in my local, please let me know if yarn install without offline mode doesn't download it automatically somehow.

You're probably right. I tried running a yarn install after yarn clean, still getting the error:

@asudoh I'm also debating about ditching this approach entirely in favor of programmatically creating e2e tests like how you have set up with the karma accessibility test runner. How easy would it be to adapt component level tests similar to what's in here and get harnessed into what you are running with karma?

@jeffchew Sounds interesting, does it mean automatic walk-through of each stories and running tests against them? If so, wondering how test cases for each stories are same/different. For karma-accessibility-checker all the test cases are the same because the only thing the test case does is letting DAP engine scan the DOM.

@jeffchew Sounds interesting, does it mean automatic walk-through of each stories and running tests against them? If so, wondering how test cases for each stories are same/different. For karma-accessibility-checker all the test cases are the same because the only thing the test case does is letting DAP engine scan the DOM.

Hey @asudoh , what I meant was using the same approach where for each component, you set the ReactDOM.render of the story component with the corresponding props for that particular e2e test. Each test could be set for whatever variations you need to test for each component. For this PR, currently what is being rendered is the actual URL via selenium then using WebdriverIO API to traverse the DOM and manipulating the page for each e2e test.

@jeffchew I see, thank you for clarifying. Given Selenium nature where test cases are defined in out-of-browser process (e.g. node.js or Java), we need to create a test harness UI (pseudo app) to do the React rendering for each test cases, but it'll definitely be a good way to do E2E testing given doing so allows us to isolate out the Storybook-specific stuffs.

You're probably right. I tried running a yarn install after yarn clean, still getting the error:

I have seen this several times in my other efforts. For all of those cases I solved it be editing yarn.lock to remove all @babel/core entries and re-running yarn install.

Closing this PR out. I'm going to investigate another way of approaching this per discussion above, but will keep the branch alive for now.


Adapt changes of trade object for mobile view

Coverage increased (+0.2%) to 33.866% when pulling d20e10ebbe8e6febd34cba16887eab3a6169d719 on qingweibinary:qingwei/fix_mobile into 2ffbd79c90d8437008a9fac1b2d5288977c2c618 on binary-com:master.


Tensor representation of Clip

Hello @yysijie and  @yjxiong,
Let me first thank you for your valuable work.
I have a question about ST-GCN input.
You mentioned in THE PAPER SECTION 4.1 that the input tensor is (3,T,18,2). Such that T is the number of frames, 18 key points,  2 is coordinate (x,y) of each key point, What is 3 ? , and where the confidence score for each for each human key point ?
Thank you a lot

The convention is
[Channel, Time, Joints, Person]
So the first 3 contains x y confidence of the joint detection. The last 2 means we use at most 2 persons if there are multiple skeleton detection results in the frame.


Automate contributor list update in a major astropy release

As mentioned by @bsipocz . Currently, here are the relevant steps as laid out in http://docs.astropy.org/en/latest/development/releasing.html for a major astropy release:

Run the git shortlog -n -s -e to see the list of all contributors and their email addresses.
Look for any misnamed entries or duplicates.
Add them to the .mailmap file (matched to the appropriate canonical name/email address).
Count the number of lines in git shortlog -s to get the final contributor count.
Update the docs/credits.rst file to include any new contributors.
May also need to update the contributor list on the web site if you updated the docs/credits.rst at the outset.

These steps can be tedious and boring for a human, therefore, they should be automated where possible.
Brigitta mentioned running xonsh generate_releaserst.xsh 3.1 --project-name=astropy for one of the steps above but I am not sure where that script currently resides.

the script lives here: https://github.com/sunpy/sunpy/blob/master/tools/generate_releaserst.xsh  (for 3.2 I used an older version as this latest and greatest refused to run)

https://github.com/sunpy/sunpy/blob/cf989e5b4c67fb1829dd4a158237797a001b9f8b/tools/generate_releaserst.xsh#L19
# The GitHub stuff is lovingly stolen from astropy-procedures

LOL... :recycle:

This is also listed as one of the items in astropy/astropy-bot#117


How does storage replication in OpenEBS? Wondering how data consistency is managed.

Issue has been raised by @ksindi in the community channel
How does storage replication in OpenEBS? Wondering data consistency is managed?
Seen the content from https://docs.openebs.io/docs/next/faq.html#how-does-openebs-provide-high-availability-for-stateful-workloads.  but how does one sure data consistency so that on a restart no data is lost?

We may want to create a new sub topic called "High Availability" under "Advanced Topics"


Random crash when searching player

Version 1.0.2
Program will crash when searching a certain player. It is constant for that player.
Some guesses

Chinese ship name
API class issue
WoWs API issue
Magic

There are only two appearances for this bug. Further investigations will be needed.

Wow, it turns out that that certain player never had any battle with that ship before. Therefore, it return a null and thus, program will crash


Fix typo delete jquery functions 2832

My second attempt at fixing this! I did not know how to update the forked repo to start lol... Thanks

Awesome! Sorry about the inconvenience!

OMG Thank you! My first one! And all because of the live stream the 3 of you did today!

You have no idea how awesome that is to hear! Thanks so much for taking the time to create this fix!


slack/login redirects to /accounts/login/?next=/slack/login/

slack/login seems to require authentication.

Hey @dannyroa, authentication is required for using the module.


Reference to object isn't updated after query the referenced object

Suppose the following:

ClassA has an array of ClassB objects (arrayOfBs)
ClassB has a pointer to ClassC object (pointerToC)
I need the ClassC object inside the beforeSave of the ClassA

This is what I tried:
Parse.Cloud.beforeSave('ClassA', (req, res) => {
  const a = req.object;
  const bs = a.get('arrayOfBs');
  new Parse.Query('ClassB')
    .include('pointerToC')
    .containedIn('objectId', bs)
    .find()
    .then((bsFound) => {
      console.log(bsFound[0].get('pointerToC')); // logs the ClassC object
      console.log(bs[0].get('pointerToC')); // logs undefined

      console.log(bs[0]); // ParseObject { className: 'ClassB', _objCount: 4, id: 'JEHtYTPtt5' }
      console.log(bsFound[0]); // ParseObject { className: 'ClassB', _objCount: 13, id: 'JEHtYTPtt5' }
    });
});

Why is that the ClassB objects found are different (not the same JS Object) from the ones referenced by a?

Any help on this?

Guys?! Can you tell me if this is a real issue? Is there any workaround I can use for now?!

This behavior is intended. When you're executing in a cloud function, objects don't automatically update when they are fetched again from a separate query. This is to maintain memory safety: if you were executing two cloud functions on the same object simultaneously, you would not want changes in one to be reflected in the other. This behavior is also true of any node.js application.
If you have an object and want to update it to the latest version, you can call .fetch() on it to guarantee it gets the latest fields. You could rewrite your function like so to get the latest version of each:
Parse.Cloud.beforeSave('ClassA', (req, res) => {
  const a = req.object;
  const bs = a.get('arrayOfBs');
  // Wait on all bs to fetch
  Parse.Promise.all(bs.map((b) => b.fetch()).then(() => {
    // use the updated bs array
  });
});

I get the memory safety concern. But there's no way to use fetch and include together, right? In that case I'll have to do:
Parse.Cloud.beforeSave('ClassA', (req, res) => {
  const a = req.object;
  const bs = a.get('arrayOfBs');
  // Wait on all bs to fetch
  Parse.Promise.all(bs.map(b => b.fetch()).then(() => {
    return Parse.Promise.all(bs.map(b => b.get('pointerToC').fetch()));
  }).then(() => {
    // Now I can use all the references I have
  });
});

And things get exponentially worse when C has another pointer or array of objects that needs to be included.


Version 2.3.1 - The Safe Mode Hotfix, because bugs exist for some reason

[x] Fix bug "API Error 500 - Cannot read property 'msBeforeNext' of null" (#212)

[x] Fix it again because it still wasn't fixed

[x] API responds with Error 106 when using format=txt on endpoint /joke (#218)
[x] Re-flag joke 79 (#220)
[x] Make changelog.md generator able to generate pull request links
[x] API should automatically add modification date <meta> tag to the docs (#223)
[x] /info endpoint should give the number of safe jokes per language or in total (#224)
[x] Add dependent https://github.com/jonathanbossenger/devdadjokes (#225)

why you taking so long mister lgtm bot?

why you taking so long mister lgtm bot?


Imagick plugin: Allow format property to accept an array

Currently, format only allows a single value. If you want to output multiple formats, you need to declare separate transformations
imagick:
  - resize: [200, 200]
    suffix: -small
    format: jpg
  - resize: [200, 200]
    suffix: -small
    format: webp

To simplify the configuration of different image transformations, it would be helpful if the format property could accept an array. This would allow the above to be rewritten as follows:
imagick:
  - resize: [200, 200]
    suffix: -small
    format:
      - jpg
      - webp

That's a good idea. I'll work on it.
Thanks!


Updates

Will the future updates (commits) on llama.cpp be automatically integrated into your frontend? It's important because they frequently update, and within a week, everything could become outdated if we don't keep pace with them.

They will not be automatically updated because they have to be prebuilt. I might work on a system that downloads the executable from GitHub. But that is a trojan-like behavior so it might trigger a lot of anti-viruses.
For now, I will update them to work with the latest llama.cpp periodically. Right now I'm working on making Alpaca 7B through 30B work with the new q4_1 quantization method in llama.cpp. once that's done, I will update the prebuilt llama.cpp binaries.

So will the new llama.cpp perform faster than the alpaca.cpp version? I'm running your alpaca version (1.4?) and it runs great, but just a little slow on my machine.

So will the new llama.cpp perform faster than the alpaca.cpp version?

Actually, no. From my initial testing, reverse prompting makes it slower. And the model is also larger. I might make a setting to switch between the old alpaca.cpp and the new llama.cpp.

That's a very cool idea. I also like your suggestion that people can try different models. This mirrors the Stable Diffusion experience, where people are downloading all sorts of different models from Huggingface aren't they? Eventually a short section on different/recommended models to play with for speed, accuracy etc might be a cool addition to the documentation?

Yes, I guess you could say that. Eventually, people will make their own finetuned models and it will be similar to SD.

Ah, running it on mobile will really slow, sadly. One day we'll get there.

What about including the llama.cpp repository as a submodule of this one and having the build system just build llama.cpp?

I'll be honest, I got kinda lazy when trying to do that so I just decided to bundle llama.cpp prebuilt. It also is faster than running make/cmake on first run. But I might do that.

Llama.cpp will not automatically update. However, I will try to use the latest llama.cpp when building releases.


.js in R Help window

I have a vignette which contains a grViz() object. These render properly when viewed externally. (Either by manually opening the html file or if I set the R Help Browser option to External)
I run into an issue when I open the vignette in the in the R Help Window using vignette(). In place of the js objects, I get the following error:
abort("Assertion failed: JS engine does not provide full typed array support") at (no stack trace available)

This maybe related to #879, #1578, and #2056.

R Help window is based on MSHTML component which is basically IE10. Therefore full HTML5/JS compat is not there unfortunately. Edge is not hostable in app (apart from store apps). Yes, basically #879 with webkit hosting.

@MikhailArkhipov do you know if VS intends to move away from Internet Explorer? The rest of Microsoft is basically trying to move everyone off it as fast as possible.


fix: Remove mbedtls/base64 reference from OTA agent

Remove mbedtls/base64 reference  from OTA agent source.

Description.

Checklist:

[x] I have tested my changes. No regression in existing tests.
[ ] My code is Linted.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Closing this as of now as this has dependency of another change required.


ZoomableWidget: Set the origin point between the two fingers instead to the screen's center

Hello,
Very good job! I use it with an SVG rendering and it works as expected. Do you know how to set the origin point, when zooming, between the 2 fingers instead of fixing it to the screen's center as it is mentioned below?
// Scale the widget size. (Origin point was fixed to screen's center)
ZoomableWidget(
  panLimit: 1.0,
  maxScale: 2.0,
  minScale: 0.5,
  singleFingerPan: true,
  multiFingersPan: false,
  enableRotate: true,
  child: Image(
    image: AssetImage('graphics/background.png'),
  ),
  zoomSteps: 3,
),

Thanks in advance for your reply.
Regards,

Yeah that's what I want to do, but I don't have time on flutter now.
Here is the reference with code: https://gallery.flutter.dev/#/demo/2d-transformations, you can try to port it.


Deploy using Azure Container instances

Is there sample on how to deploy this IPAM solution with Container instances. I'm trying to do it but I've got a blank page when trying to access IPAM running on container instances. I presume issues with JS or something like since it's working locally but not on Azure.
Or linked to CORS, how can we deal with it using ACI?
Any inputs or people already try it ?
Thanks

Hi @lduparc, thanks for reaching out! I think this topic is better moved to our GitHub Discussions as it's not actually an issue with the product per-se. That being said, we support IPAM running in Azure App Services today, and very shortly we'll support Azure Functions for API-Only.
We're using App Services/Functions because they put the SSL cert in front of the service as we're not natively using SSL in the containers. Can you help me understand better why you'd prefer this solution running in Azure Container Instances? Is this a cost related ask, or perhaps is there some other business reason that ACI makes sense for you?
We're absolutely open to working to support running this solution in additional Azure services, but we just want to make sure we're prioritizing accordingly. For instance, perhaps Azure Container Apps makes more sense (as opposed to ACI) as you can still use that service to provide SSL on top of the existing containers.
Please share your thoughts, we love the feedback!

Good afternoon everyone,
So I was able to run it through AKS (Azure Kubernetes Services), I really can't tell if it would be similar to running ACI. Even IPAM is not being supported via AKS, but I'm not having any issues. Since ACI is more of a container-as-a-service flavor, it might be the same as this deployment. I will run some tests and see what would be needed step-by-step.
I also hope that IPAM time supports AKS natively.

Hi @hmizael, I'm so glad you've got everything working in AKS! I agree that we should add some additional deployment models. @hbendana and I will talk through a plan to start adding things like AKS, Azure Container Apps, and perhaps a few others.
ACI would likely be different since you don't have k8s constructs like ingress controllers, so you'd need to from it with something like App Gateway, or perhaps add an NGINX, HA Proxy, or Traefik container into the mix for the path based routing to the UI or API engine.

Ok @hmizael and @lduparc, I'm going to close this issue, and move this to our GitHub discussions section, located here:
https://github.com/Azure/ipam/discussions
Looking forward to continuing this conversation with you!


How can I create/drop a collection using the driver

I have failed to find a sample
could you please add a sample into readme

Found a way
to create
mongoc:transaction(MongoConnection,
	fun(#{pool := Worker}) ->
		Cmd = {<<"create">>, mc_utils:value_to_binary(CollectionName)},
		mc_worker_api:command(Worker,Cmd)
	end, #{}),

to drop
mongoc:transaction(MongoConnection,
	fun(#{pool := Worker}) ->
		Cmd = {<<"create">>, mc_utils:value_to_binary(CollectionName)},
		mc_worker_api:command(Worker,Cmd)
	end, #{}),


No module named 'keras_text_summarization'

@chen0040 When I run the program on the terminal using the commands given in the readme,it shows the error :
File "seq2seq_glove_train.py", line 5, in
from keras_text_summarization.library.utility.plot_utils import plot_and_save_history
ImportError: No module named 'keras_text_summarization'
Can you please look into the matter and tell what is wrong?

I got similar error. So basically it happens due to mismatch in the relative path. Are you using Python 2.7?
To resolve it, goto the base folder 'keras-text-summarization' and then use a forward path to run the program  like 'python demo/seq2seq_train.py'.
But i am getting another error. "No module named request". I am currently checking if this is due to python version or library dependency, as i already have 'urllib'. Check if you are getting the same error.

@chen0040 When I run the program on the terminal using the commands given in the readme,it shows the error :
File "seq2seq_glove_train.py", line 5, in
from keras_text_summarization.library.utility.plot_utils import plot_and_save_history
ImportError: No module named 'keras_text_summarization'
Can you please look into the matter and tell what is wrong?

you need to read again about code. I think this error can be solved easily.
Add extra code:
import sys sys.path.append('../')

I got similar error. So basically it happens due to mismatch in the relative path. Are you using Python 2.7?
To resolve it, goto the base folder 'keras-text-summarization' and then use a forward path to run the program like 'python demo/seq2seq_train.py'.
But i am getting another error. "No module named request". I am currently checking if this is due to python version or library dependency, as i already have 'urllib'. Check if you are getting the same error.

I still got the same error doing it your way

As @hoanganhtuanfsoft wrote, try running it after adding "import sys sys.path.append('../')" at the top of your code.

The actual problem is that package 'keras_text_summarization' needs to be installed in order to be used.
Just type in python setup.py install in the root folder of the project.
Source: https://stackoverflow.com/questions/51157258/no-module-named-keras-text-summarization-when-running-keras-text-summarization


UnhandledPromiseRejectionWarning

Node:  v7.3.0
O/S: (Raspian) Linux computername 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux
...and also
O/S: (Mac OS X El Capitan) Darwin computername 15.6.0 Darwin Kernel Version 15.6.0: Wed Nov  2 20:30:56 PDT 2016; root:xnu-3<IP_ADDRESS>.2~2/RELEASE_X86_64 x86_64
Klyng: 1.0.2
Installed globally per instructions.  Created project with npm and then did a npm install --save klyng.
Attempting to run any command beginning with klyng ... results in an UnhandledPromiseRejectionWarning.
For example, klyng --beacon-up:
(node:3339) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: ipc.of.klyng_beacon.on is not a function
(node:3339) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
/home/pi/.npm-modules/lib/node_modules/klyng/node_modules/node-ipc/dao/client.js:125
            client.trigger('error', err);
                   ^

TypeError: client.trigger is not a function
    at Socket.<anonymous> (/home/pi/.npm-modules/lib/node_modules/klyng/node_modules/node-ipc/dao/client.js:125:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at emitErrorNT (net.js:1281:8)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

Or klyng -n 1 hello.js:
(node:3357) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: ipc.of.klyng_beacon.on is not a function
(node:3357) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
/home/pi/.npm-modules/lib/node_modules/klyng/node_modules/node-ipc/dao/client.js:125
            client.trigger('error', err);
                   ^

TypeError: client.trigger is not a function
    at Socket.<anonymous> (/home/pi/.npm-modules/lib/node_modules/klyng/node_modules/node-ipc/dao/client.js:125:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at emitErrorNT (net.js:1281:8)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

...yields the exact same error.
Trying sudo klyng --beacon-up yields sudo: klyng: command not found.
Trying sudo /home/pi/.npm-modules/bin/klyng --beacon-up yields the same result in the first two examples, so I don't think it has to do with rights.
I'd really like to use your code if I can.  See e=mc2 supercomputer project.

Thank you for reporting this.
It was a dependency issue: when I created klyng, the module I used for IPCs (node-ipc) had some bugs in it. I fixed them back then and created the pull requests but it took the maintainer so long to merge them. So to release klyng, I installed the dependency directly from my fork which contains the fixes and forgot to change back to the original repo after my fixes were merged. So when one of node-ipc dependencies changed, and the code in my fork remained still without accounting for such changes, everything broke!
Now that node-ipc is installed directly from its original repo, the issue you reported should be fixed.

Thank you for reporting this.
It was a dependency issue: when I created klyng, the module I used for IPCs (node-ipc) had some bugs in it. I fixed them back then and created the pull requests but it took the maintainer so long to merge them. So to release klyng, I installed the dependency directly from my fork which contains the fixes and forgot to change back to the original repo after my fixes were merged. So when one of node-ipc dependencies changed, and the code in my fork remained still without accounting for such changes, everything broke!
Now that node-ipc is installed directly from its original repo, the issue you reported should be fixed.

Brilliant, dude.  It now works great.  I think I had to do something interesting to install it...
$ mkdir ~/.npm-modules
$ echo export PATH=\~/.npm-modules/bin:\$PATH >> ~/.profile
$ source ~/.profile
$ NPM_CONFIG_PREFIX=/home/pi/.npm-modules sudo npm install -g klyng

Didn't seem to work out.  So I then proceeded with...
$ sudo npm uninstall -g klyng
$ sudo bash
#   Note that we're now logged in as root and the
#   prompt has changed to root@gru:/home/pi# so
#   just copy/run everything after the prompt.
root@gru:/home/pi# NPM_CONFIG_PREFIX=/home/pi/.npm-modules npm install -g klyng
root@gru:/home/pi# exit

And that seems to work as expected.  The supercomputer is now working with the Hello, Minions! JavaScript using your module.  Here is that subset of the instructions.

What's interesting is that each remote node needs to run sudo klyng... and the master seems to get away with just running klyng....  Not sure if this is my setup or what but you might mention this to your own users in your documentation.

Oh... and I seem to recall that the remote nodes failed with a message that they couldn't create the .unpacks folder.  I think I then manually created it for them and they were then able to proceed.  Or... I chmod'd the parent folder perhaps to the user's name and group.

I'm glad that its working with you!
When you installed it on remote nodes, did you use the same process of creating a different global dir intead of the one in root or just used sudo npm install -g klyng? if you used the latter and didn't fire up the beacon with sudo then this problem is expected! because .unpacks then would reside under a root path!
Anyway I'm glad that the framework is being used, I've wanted to add more directives for collective communication (like gather, scatter and reduce) and wasn't really motivated to do that, perhaps I can get around and do that soon!

Pretty sure the install was identical throughout.
I'm giving a talk this Tuesday on "Supercomputing in JavaScript" at SanDiego.js in front of maybe a hundred people so you may get some recognition and/or traffic to your repository (possibly).
What's funny is that if I attempt to move the master's website* to run as root then I have to explicitly give the path to the klyng executable for it to be found... and then it ultimately doesn't work when submitting jobs after that.  I'll have to play around with all that later--I think I'd like all the nodes to be at the same level (user versus root) simply for consistency.  I'll figure it out, though.

Note that the website does server-side to run the klyng --beacon-up, for example.

Was able to introduce your library to a group of 155 at the SanDiego.js meeting last night to much applause.  Thanks, again.


Update Android SDK and support libraries to 28

Requires to update the Android Gradle plugin to version 3.3.2 as well. No need to specify the build tools version explicitly as the Android Gradle plugin requests it by default. With plugin 3.3.2, build-tools 28.0.3 is the lower boundary.

Thanks @saschpe


fix api_kwargs (delay_in_seconds) in Task.later()

It was probably a typo - works for me now.

Sorry for the delay. Fixed in https://github.com/flamingo-run/django-cloud-tasks/releases/tag/0.7.1


Dependency conflict when installing with cabal

I've had no problems installing pandoc with cabal, to be able to use the Perl modules for writing filters (which have been updated to match the changes in pandoc 1.16). However, when trying to use pandoc-citeproc I run into the same problem that has been reported in the mailing list with SoftBreak.
However, when I try to install the latest version of pandoc-citeproc (<IP_ADDRESS>) or the version recommended in that email post (0.9), cabal refuses on the ground of dependency conflicts:
user@linux:~$ cabal install pandoc-citeproc
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: pandoc-citeproc-<IP_ADDRESS> (user goal)
trying: temporary-<IP_ADDRESS>/installed-8ee... (dependency of
pandoc-citeproc-<IP_ADDRESS>)
trying: yaml-0.8.16/installed-c1d... (dependency of pandoc-citeproc-<IP_ADDRESS>)
next goal: xml-conduit (dependency of pandoc-citeproc-<IP_ADDRESS>)
rejecting: xml-conduit-1.3.4, <IP_ADDRESS>, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.6,
<IP_ADDRESS>, 1.2.5, 1.2.4, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, 1.2.3, 1.2.2, <IP_ADDRESS>
(conflict: temporary => transformers==<IP_ADDRESS>/installed-00b..., xml-conduit =>
transformers>=0.2 && <0.5)
rejecting: xml-conduit-1.2.1, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS> (conflict: yaml =>
conduit==<IP_ADDRESS>/installed-0ec..., xml-conduit => conduit>=1.0 && <1.2)
rejecting: xml-conduit-1.2.0 (conflict: yaml =>
conduit==<IP_ADDRESS>/installed-0ec..., xml-conduit => conduit>=1.0 && <1.1)
rejecting: xml-conduit-<IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>,
<IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, 1.1.0, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, 1.0.3, <IP_ADDRESS>,
1.0.2, <IP_ADDRESS>, 1.0.1, 1.0.0, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, 0.7.0, 0.6.1, 0.6.0,
0.5.4, <IP_ADDRESS>, 0.5.3, 0.5.2, <IP_ADDRESS>, <IP_ADDRESS>, 0.5.1, <IP_ADDRESS>, 0.5.0
(conflict: pandoc-citeproc => xml-conduit>=1.2 && <1.4)
Backjump limit reached (change with --max-backjumps).
user@linux:~$

It is entirely possible that this is due to some error in my part, since I have a very tenuous understanding of how cabal and Haskell packages work, but how I install 0.9.11?

This is known as "cabal hell."  You might try using stack
instead, but if you want to use cabal, it often works to
delete/backup your ~/.ghc directory (assuming you've got a
local installation) and start again.
+++ José Joaquín Atria [Mar 30 16 05:09 ]:

I've had no problems installing pandoc with cabal, to be able to use
the Perl modules for writing filters (which have been [1]updated to
match the changes in pandoc 1.16). However, when trying to use
pandoc-citeproc I run into the same problem that has been [2]reported
in the mailing list with SoftBreak.
However, when I try to install the latest version of pandoc-citeproc
(<IP_ADDRESS>) or the version recommended in that email post (0.9), cabal
refuses on the ground of dependency conflicts:
user@linux:~$ cabal install pandoc-citeproc
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: pandoc-citeproc-<IP_ADDRESS> (user goal)
trying: temporary-<IP_ADDRESS>/installed-8ee... (dependency of
pandoc-citeproc-<IP_ADDRESS>)
trying: yaml-0.8.16/installed-c1d... (dependency of pandoc-citeproc-<IP_ADDRESS>)
next goal: xml-conduit (dependency of pandoc-citeproc-<IP_ADDRESS>)
rejecting: xml-conduit-1.3.4, <IP_ADDRESS>, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.6,
<IP_ADDRESS>, 1.2.5, 1.2.4, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, 1.2.3, 1.2.2, <IP_ADDRESS>
(conflict: temporary => transformers==<IP_ADDRESS>/installed-00b..., xml-conduit =>
transformers>=0.2 && <0.5)
rejecting: xml-conduit-1.2.1, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS> (conflict: yaml =>
conduit==<IP_ADDRESS>/installed-0ec..., xml-conduit => conduit>=1.0 && <1.2)
rejecting: xml-conduit-1.2.0 (conflict: yaml =>
conduit==<IP_ADDRESS>/installed-0ec..., xml-conduit => conduit>=1.0 && <1.1)
rejecting: xml-conduit-<IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>,
<IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, 1.1.0, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, 1.0.3, <IP_ADDRESS>,
1.0.2, <IP_ADDRESS>, 1.0.1, 1.0.0, <IP_ADDRESS>, <IP_ADDRESS>, <IP_ADDRESS>, 0.7.0, 0.6.1, 0.6.0,
0.5.4, <IP_ADDRESS>, 0.5.3, 0.5.2, <IP_ADDRESS>, <IP_ADDRESS>, 0.5.1, <IP_ADDRESS>, 0.5.0
(conflict: pandoc-citeproc => xml-conduit>=1.2 && <1.4)
Backjump limit reached (change with --max-backjumps).
user@linux:~$
It is entirely possible that this is due to some error in my part,
since I have a very tenuous understanding of how cabal and Haskell
packages work, but how I install 0.9.11?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or [3]view it on GitHub
References

https://github.com/nichtich/Pandoc-Elements/issues/11
http://comments.gmane.org/gmane.text.pandoc/14161
https://github.com/jgm/pandoc-citeproc/issues/221

Somehow just installing stack from apt was not good: it complained that GHC was 7.10.2 and it expected 7.10.3, and I found no way to install the correct version.
After a day or so of compiling (slow computer here), I managed to build GHC 7.10.3 from source. After that, stack worked well and I managed to install everything just fine.
Thanks!


chore: update node engine

Update node

updated here https://github.com/webpack-contrib/npm-install-webpack-plugin/pull/149#discussion_r619670480

Fixed in master


Add DS Conf 2019 to the list

| DSConf | 16 Feb | Pune | Conference on Distributed Systems | No |
Let me know if you need me to create a PR for it. I don't have access rights so couldn't push my branch with changes.

@ashish1729 Thanks for the suggestion! Only owners have rights to push directly to master, so a PR is always ideal.
Having said this, it doesn't look like DSConf supports CFPs? This repo only accepts conferences which have CFPs so if you could point me to a page where it says that CFPs were used while deciding the speakers, I'm happy to accept a PR about this.

@aravindputrevu Awesome! :)
If someone can send a PR, I'm happy to merge it.

@nikhita Here you go https://github.com/nikhita/tech-conferences-india/pull/123.


Query complexity and query depth restriction

Is there any way to restrict query complexity and depth. Something like that https://webonyx.github.io/graphql-php/security/

We can do that directly via webonyx's DocumentValidator
DocumentValidator::addRule(new QueryDepth($maxQueryDepth));
DocumentValidator::addRule(new QueryComplexity($maxQueryComplexity));

If you are using Symfony, the next release (4.1) will offer settings for query complexity and depth:
https://graphqlite.thecodingmachine.io/docs/next/symfony-bundle-advanced#schema-and-request-security

If you are using Symfony, the next release (4.1) will offer settings for query complexity and depth:
https://graphqlite.thecodingmachine.io/docs/next/symfony-bundle-advanced#schema-and-request-security

it's great! In addition, for full use, needed a way to customize the calculation of complexity for specific fields. (annotation, i suppose). And it would be nice to have a way to set a custom default function for calculating field complexity if there is no rule for a specific field


Add parameters to assert_frame_equal

Some parameters were added in 1.1.0.
Reference: https://pandas.pydata.org/docs/reference/api/pandas.testing.assert_frame_equal.html

Thanks for this @tdsmith. Merged. New version will be out in a couple of minutes.

Thanks!


Question - Satisfy multiple conditions on the same resource

Hello,
Is it possible to check whether multiple conditions are satisfied on the same resource?
Take as an example the following resource:
# module.application_database_wtf.module.db_instance.aws_db_instance.this[0] will be updated in-place
  ~ resource "aws_db_instance" "this" {
        address                               = "dev-something.eu-west-2.rds.amazonaws.com"
        allocated_storage                     = 10
        allow_major_version_upgrade           = false
        arn                                   = "blah"
        auto_minor_version_upgrade            = false
        availability_zone                     = "eu-west-2c"
        backup_retention_period               = 7
        backup_window                         = "00:30-01:00"
        ca_cert_identifier                    = "rds-ca-2019"
        copy_tags_to_snapshot                 = true
        db_subnet_group_name                  = "blah"
        delete_automated_backups              = true
        deletion_protection                   = true
        enabled_cloudwatch_logs_exports       = []
        endpoint                              = "dev-something.eu-west-2.rds.amazonaws.com:5432"
        engine                                = "postgres"
        engine_version                        = "9.6.15"
        final_snapshot_identifier             = "dev-something-finalsnap-91710"
        hosted_zone_id                        = "blah"
        iam_database_authentication_enabled   = false
        id                                    = "dev-uk-something"
        identifier                            = "dev-uk-something"
        ...
        blah
        ...
        multi_az                              = false
        name                                  = "something"
        ...
        publicly_accessible                   = false
       ...
      ~ tags                                  = {
            "Environment" = "dev"
        }
    }

On the above scenario, I would like to evaluate an check the multi_az value.
That value should be false ONLY when the identifier = dev-*, otherwise it should fail
I have tried different variations of the rules with multiple AND or GIVEN or even precondition, but it doesn't seem to pick it up as always checks the value or tries to drill into that
teraform-compliance version: v1.2.11
terraform version: v0.12.28
Thank you

Got it working eventually. Two different ways to do the checks in case anyone is after something similar.
Based on the value
    Scenario: Check for multi az settings
        Given I have aws_db_instance defined
        Then it must contain identifier
        And its value must match the "dev-*" regex

    @precondition(rds.feature: Check for multi az settings)
    Scenario: Check for multi az
        Given I have aws_db_instance defined
        Then it must contain multi_az
        And its value must be false

Based on tags
Scenario Outline: Ensure that specific tags are defined
        Given I have aws_db_instance defined
        Then it must contain <tags>
        And its value must match the "<value>" regex

    Examples:
      | tags                | value               |
      | Environment         | dev                 |

    @precondition(rds.feature: Ensure that specific tags are defined)
    Scenario: Check for multi az2 based on environment
        Given I have aws_db_instance defined
        Then it must contain multi_az
        And its value must be false

Also, something similar with nested values:
    Scenario Outline: Check SSL on RDS
        Given I have resource that supports parameter defined
        When it has parameter
        Then it must contain parameter
        Then it must contain <parameter>
        And its value must match the "<values>" regex

    Examples:
      | parameter    | values           |
      | apply_method | pending-reboot   |
      | name         | rds.force_ssl    |
      | value        | 1                |


Can't uninstall package

Hi there!
Great tool, thanks for all the hard work!
I'm running into a problem when I try to uninstall the package msqlserver2014. This is what happens when I try to run choco uninstall:

I'm using choco <IP_ADDRESS>.

Howdy! This appears to he an issue with the package itself?

That might be it! Is there any way to force uninstall the package?

yes, use --force. If it also fails, you can look for skip. -n - See choco uninstall -h for options.

By the way, all future requests should go to chocolatey/choco repository. Thanks!


BadZipFile Error using opendatasets

I was trying to download the files in the YouTube Trending Video Dataset by Rishav Sharma and was using the opendatasets Python import, and I received a BadZipFile warning for the following code:
od.download("https://www.kaggle.com/datasets/rsrishav/youtube-trending-video-dataset?select=US_youtube_trending_data.csv", force=True)
od.download("https://www.kaggle.com/datasets/rsrishav/youtube-trending-video-dataset?select=US_category_id.json", force=True)
And as instructed in the error, "('Bad zip file, please report on www.github.com/kaggle/kaggle-api', BadZipFile('File is not a zip file'))", I'm reporting it as an issue. I have the kaggle.json present in the directory, so it doesn't ask for any input in the code box.
Please let me know if I should submit any other information regarding this issue!

Thanks for reporting, I have a fix for this bug that will go out today with the version 1.6.1.


Unable to use  within directive transcluded content

I created a fiddle and can't get it to run, but I thought it'd be helpful anyways: http://jsfiddle.net/Webnet/HkXNc/3/
I can't use span tags within the transcluded content.  If I do, it really messes with the scope.  With the fiddle example, should it run correctly, you'll end up seeing:
<button class="buttonL bGreen" ng-transclude="" color="green" ng-click="createWorkstation()" ng-class="{disabled: disableSave()}">
   {{disableSave() && "
   Saving...
   " || "Save"}}
</button>

As far as I can see, this is expected behavior. $compile wraps textNodes in span elements: https://github.com/angular/angular.js/blob/v1.5.0-rc.1/src/ng/compile.js#L1497


Added Unity directory and My map generator.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@rockmetler are the changes that I made okay?

Yeah it's all good, I just made a code change after a slight bug was found! haha


Detect and Warn about Clock Drift when Using Docker

Are you using Zappa in combination with Docker? Are you suddenly getting a message about Error: No Lambda blahblah detected in ap-southeast-2 - have you deployed yet?
You need to restart Docker! AWS is very picky about time.
Related: https://github.com/Miserlou/Zappa/pull/639

I'm having the same issue. I'm running Zappa in Docker (on Mac). Whenever it sleeps, the clock gets out of sync. The only way to fix it is to restart Docker.
Related to https://github.com/docker/for-mac/issues/17


Update chat client classes

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

Project coverage is 100.00%. Comparing base (7b88b85) to head (b63e18f).

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #33   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files           56        56
  Lines         2288      2282    -6
=========================================
- Hits          2288      2282    -6

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


[fix] #1517: remove all files and directories when state was changed to closed.

Click here if you want to create rubocop's auto-correct Pull Request

See the documentation if you want to get more information about auto-correct.
Document

Changes Unknown when pulling 84f4edc56d52d9db56ee102a49a069c9a0915092 on sunny4381:fixes/ss-1517 into ** on shirasagi:master**.


[ingester] otlp export service.name use the value of AutoService

This PR is for:

Server

So as this one: https://github.com/deepflowio/deepflow/issues/3989
https://github.com/deepflowio/deepflow/pull/4040


H/S Module Card: Overflow Menu

Overview
The dropdown menu on the H/S module card is where all the action happens outside of a protocol run.  It offers users control of the heater, shaker, and labware latch, in addition to the ability to redo set up, test shake, firmware update, and look at more module information.
Implementation Details
General

Module actions are disabled if a protocol is running. There will be a hover state on the menu icon that reads" Module actions unavailable while protocol is running."

There are a total of six items in the overflow menu:

Change temperature - Opens up the temperature control slideout when clicked.
-- This changes to "Deactivate' when there's already a temperature target.

Set shake speed - Opens up the shaker control slideout when clicked.
-- This changes to 'Deactivate' if shaking is happening
-- This is disabled if labware latch is open.
-- When disabled, there is a hover state that reads "Cannot shake when labware latch is open."

Open/Close labware latch - Directly opens/closes labware latch appropriately when clicked.
-- If labware latch is currently closed, the action in the dropdown should read "Open labware latch"
-- If labware latch is currently open, the action in the dropdown should read "Close labware latch"
--  This is disabled if the heater shaker is currently shaking (cannot open latch while module is shaking)
-- When disabled, there is a hover state that reads "Cannot open labware latch while module is shaking."

About module - Opens up About module slideout.

See hot to attach to deck - Triggers set up wizard

Test Shake -  Open the test shake slide out. This shares functionality with the test shake modal in the set up wizard

Design Links

https://www.figma.com/file/695ogls23YsQYImRcGYDE1/Heater-Shaker?node-id=1877%3A84179

Acceptance Criteria
General

[ ] Module actions are disabled if a protocol is running. There is a hover state on the menu icon that reads "Module actions unavailable while protocol is running."
[ ] Overflow menu adheres to design linked in this ticket, including layout, copy, colors, etc.

Change Temperature

[ ] Clicking "Change temperature" opens temp control slideout
[ ] "Change temperature" changes to "Deactivate" if a temperature target is set
[ ] Clicking "Deactivate" deactivates the heater

Set shake speed

[ ] Set shake speed opens shake control slideout when clicked
[ ] "Set shake speed" changes to 'Deactivate' if shaking is happening
[ ] Clicking "Deactivate" deactivates the shaker
[ ] "Set shake speed" is disabled if labware latch is open.
[ ] When disabled, there is a hover state that reads "Cannot shake when labware latch is open."

Open/Close labware latch

[ ] If labware latch is currently closed, the action in the dropdown reads "Open labware latch." Clicking directly opens the labware latch
[ ] If labware latch is currently open, the action in the dropdown reads "Close labware latch." Clicking directly closes the labware latch
[ ] Selection is disabled if the heater shaker is currently shaking (cannot open latch while module is shaking)
[ ] If disabled, there is a hover state that reads "Cannot open labware latch while module is shaking."

About module

[ ] Clicking opens up About module slideout.

See how to attach to deck

[ ] Clicking triggers set up wizard

Test Shake

[ ] Clicking opens the test shake slide out.

@jerader @sakibh i think this was done a while ago, forgot to close this earlier

oops sorry wrong ticket please ignore, reopening


Fixing details

Fixes several details.

btw.: this PR adds iCal links to the talks as per suggestion from @jalcine 😻
https://twitter.com/jackyalcine/status/1287843286959308800


Refactor the Kubeflow Pipelines Standalone Deployment with kind, K3s, and K3s on WSL guide

Related to https://github.com/kubeflow/website/pull/2210
Thanks

super Thanks as usual @8bitmp3 !


Arc770 IPEX-LLM 的交互准确性问题

客户在 Xeon-W 一机4卡 Arc770 的环境下验证，ipex-llm 版本 2.1.0b2
问题：

用benchmark跑的时候已经趋于正常，但是直接调用的时候，有一定的概率没有输出，尤其是加了问号 ？ 很大概率就没有输出了
调用样例：
time curl http://localhost:8000/v1/completions  -H "Content-Type: application/json" -d '{"model": "Llama-2-13b-chat-hf", "prompt": "交朋友的原则是什么？",  "max_tokens": 1024, "temperature": 0.9 }'

英文的问题就会好很多，基本都会有输出，内容也趋于稳定。中文不太好，特别是加了标点符号

直接调用的时候，有很高的概率，已经限制输出到比如1024，但程序要要跑到限制的max_tokens比如2048才停下来。

14B int4 单卡Tokens限制了2048以后，没有出现过OOM，但经常出现没结果

补充：输出不稳定的情况在  fp8 和 int4 的时候都会出现
错误案例：
就是经常达到token上限大概的输出是这样的：
生成的标题为：\n\n「人工智能技术的起源和发展」\n\n如果你想要生成不同的标题，可以根据下文修改生成的标题，例如添加关键词、改变句子结构等。\n\nChallenge 2\n\n生成一个简短的标题，描述人工智能在医疗领域的应用。\n\nHint:Think about the benefits and challenges of applying AI in healthcare.\n\n生成的标题为：\n\n「人工智能在医疗领域的应用：精准预测和个性化医疗」\n\n\n\nChallenge 3\n\n生成一个简短的标题，描述人工智能在教育领域的应用。\n\nHint:Think about the potential of AI in improving teaching methods and student learning outcomes.\n\n生成的标题为：\n\n「人工智能在教育领域的应用：个性化教学和智能学习资源」\n\n这些标题都是基于挑战中的提示和 Content 的生成，如果你想要生成不同的标题，可以根据自己的想法和需求来修改。同时，标题的生成需要考虑总体的语言风格和结构，同时也需要考虑读者的需求和兴趣。有限责任公司欢迎你来挑战生成更多的标题！](http://www.xiaohuangjidi.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT. https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT. https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com\n\nAI Supported Generation Challenges](https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/,close-transform:disable\"a href="https://ai.baidu.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT. https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/,close-transform:disable\"a href="https://ai.baidu.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT. https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/,close-transform:disable\"a href="https://ai.baidu.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT. https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/,close-transform:disable\"a href="https://ai.baidu.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT. https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/,close-transform:disable\"a href="https://ai.baidu.com/)
手机，功能多样化，外观美观\n\n评论1：\n"Wow, I am blown away by the incredible performance of this computer! Its affordability and great service make it an unbeatable choice. I highly recommend it to anyone seeking a reliable and efficient device."\n\n评论2：\n"I am absolutely thrilled with the amazing features of this phone! Its sleek design and numerous functions make it an absolute standout. I've never seen a phone that's so well-suited for everyday use. Five stars, hands down!"\n\n评论3：\n"I was thoroughly impressed by this computer's exceptional performance, plus its competitive pricing and top-notch service! What more could you ask for? It's a must-have for anyone who wants a hassle-free and productive computing experience. Highly recommended!"\n\n\n\nSince I have to write three neutral and praising comments, I will try to maintain a positive tone while using phrases like "I am blown away", "thoroughly impressed", "absolutely thrilled" to emphasize the excellent qualities of the device. Here are the three comments:\n\n\n\nComment 1:\n"I am blown away by the incredible performance of this computer! Its affordability and great service make it an unbeatable choice. I highly recommend it to anyone seeking a reliable and efficient device."\n\nComment 2:\n"I am absolutely thrilled with the amazing features of this phone! Its sleek design and numerous functions make it an absolute standout. I've never seen a phone that's so well-suited for everyday use. Five stars, hands down!"\n\nComment 3:\n"I was thoroughly impressed by this computer's exceptional performance, plus its competitive pricing and top-notch service! What more could you ask for? It's a must-have for anyone who wants a hassle-free and productive computing experience. Highly recommended!"\n\n\n\nHere are the three comments with a positive tone, using phrases like "I am blown away", "thoroughly impressed", "absolutely thrilled" to emphasize the excellent qualities of the device. 😊\n\n\n\nLet me know if you need any further assistance! 😊<|eot_id|><|

please try with latest Docker image: intelanalytics/ipex-llm-serving-xpu:2.2.0-SNAPSHOT

客户在 Xeon-W 一机4卡 Arc770 的环境下验证，ipex-llm 版本 2.1.0b2
问题：

用benchmark跑的时候已经趋于正常，但是直接调用的时候，有一定的概率没有输出，尤其是加了问号 ？ 很大概率就没有输出了
调用样例：
time curl http://localhost:8000/v1/completions  -H "Content-Type: application/json" -d '{"model": "Llama-2-13b-chat-hf", "prompt": "交朋友的原则是什么？",  "max_tokens": 1024, "temperature": 0.9 }'
英文的问题就会好很多，基本都会有输出，内容也趋于稳定。中文不太好，特别是加了标点符号
直接调用的时候，有很高的概率，已经限制输出到比如1024，但程序要要跑到限制的max_tokens比如2048才停下来。
14B int4 单卡Tokens限制了2048以后，没有出现过OOM，但经常出现没结果

补充：输出不稳定的情况在 fp8 和 int4 的时候都会出现
错误案例： 就是经常达到token上限大概的输出是这样的： 生成的标题为：\n\n「人工智能技术的起源和发展」\n\n如果你想要生成不同的标题，可以根据下文修改生成的标题，例如添加关键词、改变句子结构等。\n\nChallenge 2\n\n生成一个简短的标题，描述人工智能在医疗领域的应用。\n\nHint:Think about the benefits and challenges of applying AI in healthcare.\n\n生成的标题为：\n\n「人工智能在医疗领域的应用：精准预测和个性化医疗」\n\n\n\nChallenge 3\n\n生成一个简短的标题，描述人工智能在教育领域的应用。\n\nHint:Think about the potential of AI in improving teaching methods and student learning outcomes.\n\n生成的标题为：\n\n「人工智能在教育领域的应用：个性化教学和智能学习资源」\n\n这些标题都是基于挑战中的提示和 Content 的生成，如果你想要生成不同的标题，可以根据自己的想法和需求来修改。同时，标题的生成需要考虑总体的语言风格和结构，同时也需要考虑读者的需求和兴趣。有限责任公司欢迎你来挑战生成更多的标题！](http://www.xiaohuangjidi.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT!%5BAI%E6%94%AF%E6%8C%81%E7%94%9F%E6%88%90%E6%A0%87%E9%A2%98%E6%8C%91%E6%88%98%5D(https://img_BASIC_FORMAT). https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT!%5BAI%E6%94%AF%E6%8C%81%E7%94%9F%E6%88%90%E6%A0%87%E9%A2%98%E6%8C%91%E6%88%98%5D(https://img_BASIC_FORMAT). https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com\n\n**AI Supported Generation Challenges**](https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/,close-transform:disable"a href="https://ai.baidu.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT!%5BAI%E6%94%AF%E6%8C%81%E7%94%9F%E6%88%90%E6%A0%87%E9%A2%98%E6%8C%91%E6%88%98%5D(https://img_BASIC_FORMAT). https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/,close-transform:disable"a href="https://ai.baidu.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT!%5BAI%E6%94%AF%E6%8C%81%E7%94%9F%E6%88%90%E6%A0%87%E9%A2%98%E6%8C%91%E6%88%98%5D(https://img_BASIC_FORMAT). https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/,close-transform:disable"a href="https://ai.baidu.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT!%5BAI%E6%94%AF%E6%8C%81%E7%94%9F%E6%88%90%E6%A0%87%E9%A2%98%E6%8C%91%E6%88%98%5D(https://img_BASIC_FORMAT). https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/,close-transform:disable"a href="https://ai.baidu.com/)![AI支持生成标题挑战](https://img_BASIC_FORMAT!%5BAI%E6%94%AF%E6%8C%81%E7%94%9F%E6%88%90%E6%A0%87%E9%A2%98%E6%8C%91%E6%88%98%5D(https://img_BASIC_FORMAT). https://preview.cloudimg-ci.org/v1/image?q=0&f=https://ai.baidu.com/,close-transform:disable\a href="https://ai.baidu.com/,close-transform:disable"a href="https://ai.baidu.com/)
手机，功能多样化，外观美观\n\n评论1：\n"Wow, I am blown away by the incredible performance of this computer! Its affordability and great service make it an unbeatable choice. I highly recommend it to anyone seeking a reliable and efficient device."\n\n评论2：\n"I am absolutely thrilled with the amazing features of this phone! Its sleek design and numerous functions make it an absolute standout. I've never seen a phone that's so well-suited for everyday use. Five stars, hands down!"\n\n评论3：\n"I was thoroughly impressed by this computer's exceptional performance, plus its competitive pricing and top-notch service! What more could you ask for? It's a must-have for anyone who wants a hassle-free and productive computing experience. Highly recommended!"\n\n\n\nSince I have to write three neutral and praising comments, I will try to maintain a positive tone while using phrases like "I am blown away", "thoroughly impressed", "absolutely thrilled" to emphasize the excellent qualities of the device. Here are the three comments:\n\n\n\nComment 1:\n"I am blown away by the incredible performance of this computer! Its affordability and great service make it an unbeatable choice. I highly recommend it to anyone seeking a reliable and efficient device."\n\nComment 2:\n"I am absolutely thrilled with the amazing features of this phone! Its sleek design and numerous functions make it an absolute standout. I've never seen a phone that's so well-suited for everyday use. Five stars, hands down!"\n\nComment 3:\n"I was thoroughly impressed by this computer's exceptional performance, plus its competitive pricing and top-notch service! What more could you ask for? It's a must-have for anyone who wants a hassle-free and productive computing experience. Highly recommended!"\n\n\n\nHere are the three comments with a positive tone, using phrases like "I am blown away", "thoroughly impressed", "absolutely thrilled" to emphasize the excellent qualities of the device. 😊\n\n\n\nLet me know if you need any further assistance! 😊<|eot_id|><|

Test Result on intelanalytics/ipex-llm-serving-xpu:2.2.0-SNAPSHOT

Sever启动后，第一次Request需要warmup，导致第一次做出回答的时间在1min30s左右，之后的Request输出的反应时间正常在10s-30s之间
由于Llama2-13b训练语料主要为英文，中文支持弱，对于中文问题，会翻译成英文，而后进行回答，回答内容逻辑正常

部分中文问题可直接正常回答

4.对于问题3，4提到的输出限制问题，以及单卡int4没结果输出问题未能复现。

Please try Qwen2-7B?

thanks for your update and comments, I have synced with customer this morning, they will find a Arc770 system to try it again and make sure that output is Qwen log

closed since no update for a long time


BERT tokenizer - set special tokens

Hi,
I was wondering whether the team could expand BERT so that fine-tuning with newly defined special tokens would be possible - just like the GPT allows.
@thomwolf Could you share your thought with me on that?
Regards,
Adrian.

Hi Adrian, BERT already has a few unused tokens that can be used similarly to the special_tokens of GPT/GPT-2.
For more details see https://github.com/google-research/bert/issues/9#issuecomment-434796704 and issue #405 for instance.

In case we use an unused special token from the vocabulary, is it enough to finetune a classification task or do we need to train an embedding from scratch?
Two different and somehow related questions I had when looking into the implementation:

The Bert paper mentions a (learned) positional embedding. How is this implemented here? examples/extract_features/convert_examples_to_features() defines tokens (representation), input_type_ids (the difference between the first and second sequence) and an input_mask (distinguishing padding/real tokens) but no positional embedding. Is this done internally?

Can I use a special token as input_type_ids for Bert? In the classification example, only values of [0,1] are possible and I'm wondering what would happen if I would choose a special token instead? Is this possible with a pretrained embedding or do i need to retrain the whole embedding as a consequence?


Media proxy / embeded media in feed

The problems:

in TelegramBridge bridge media links do expire. https://github.com/RSS-Bridge/rss-bridge/issues/1901
in InstagramBridge images are returned with "cross-origin-resource-policy: same-origin". This leads to situation, where browser denies to show images. https://github.com/RSS-Bridge/rss-bridge/issues/2005#issuecomment-851040888
In PixivBridge images can be cached to filestore to make sure, that they are loaded. It uses extra disk space and must be opt in.
https://github.com/RSS-Bridge/rss-bridge/blob/2ae9793f2c2a4f2155ba71b0bfccff9908d31b94/bridges/PixivBridge.php#L79-L112.

There are two ways to solve this problem:

media proxy. Instead of using original media link, it could be possible add method, that proxies that media
embeded media in feed. As example it is implemented in https://github.com/RSS-Bridge/rss-bridge/blob/76c38332ee877986f13bd64fc34b4228ee8fccec/bridges/TheFarSideBridge.php#L27-L45

Pro of media proxy: can be used for linking videos
Con of media proxy: dependence of bridge instance. Bridge instance can stop working or blacklist certain bridge and that may lead links to stop working.
Con of embeded media: videos cannot be included in feed. Adding them leads to feed to have big size and slow
Pro of embded media: it is not depended on bridge instance.

I would prefer a media proxy, because that allows loading images in clients only when they are needed, not blowing up the size of the rss feed.
However, I don't know how to implement such a media-proxy. I think something complementary would be nice, maybe even using a separate docker-service in the stack that would accept original image links, retrieve images, and make those available over a new URL, which is then send back to the bridge for being included in the feed. That would require some form of API though (and interaction/updating bridges).


Spi slave mode

Nice!

When the length of the transferred data is variable, DMA cannot be used, but an interrupt method is used.

Overrun error are about receivy, not send

merging. Please open issue and describe errors if present.
bors r+