TypeError: average_precision_score() got an unexpected keyword argument 'pos_label'

I run your keras_demo.py, but have the error below:
I install the mltb by pip install mltb
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-fae66036345b> in <module>()
     28     class_weight={
     29         0: 1.0,
---> 30         1: 9.0
     31     },
     32 )

~/anaconda3/lib/python3.6/site-packages/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, **kwargs)
   1037                                         initial_epoch=initial_epoch,
   1038                                         steps_per_epoch=steps_per_epoch,
-> 1039                                         validation_steps=validation_steps)
   1040
   1041     def evaluate(self, x=None, y=None,

~/anaconda3/lib/python3.6/site-packages/keras/engine/training_arrays.py in fit_loop(model, f, ins, out_labels, batch_size, epochs, verbose, callbacks, val_f, val_ins, shuffle, callback_metrics, initial_epoch, steps_per_epoch, validation_steps)
    215                         for l, o in zip(out_labels, val_outs):
    216                             epoch_logs['val_' + l] = o
--> 217         callbacks.on_epoch_end(epoch, epoch_logs)
    218         if callback_model.stop_training:
    219             break

~/anaconda3/lib/python3.6/site-packages/keras/callbacks.py in on_epoch_end(self, epoch, logs)
     77         logs = logs or {}
     78         for callback in self.callbacks:
---> 79             callback.on_epoch_end(epoch, logs)
     80
     81     def on_batch_begin(self, batch, logs=None):

~/anaconda3/lib/python3.6/site-packages/mltb/keras.py in on_epoch_end(self, batch, logs)
     35
     36         average_precision = sklearn.metrics.average_precision_score(self.val_labels, predict_results,
---> 37                                                                     pos_label=self.pos_label)
     38         logs['average_precision'] = average_precision
     39

TypeError: average_precision_score() got an unexpected keyword argument 'pos_label'

Thanks for the report - I will have a look into it.

Hi @PANXIONG-CN - the problem is that your sklearn package is too old.
Please try to update it with pip install scikit-learn -U.
In your sklearn version the keyword argument 'pos_label' was not implemented.
Can you please report back if your problem has been solved?
Thanks
Philip

I fix it by above method, thanks.

Ok. :-)
So I close this.


python 3.8, unpin packages, use mamba

i was experimenting with rebuilding images locally with new conda-lock, python3.8 (since 3.9 is now out) and mamba, and it is speedy and seems to work well.
replaces #137, closes #118

Any thoughts on how to handle the 3.8 rollout to the jupyterhubs? Short of making things configurable (through KubeSpawner) I don't see a great option.

Any thoughts on how to handle the 3.8 rollout to the jupyterhubs? Short of making things configurable (through KubeSpawner) I don't see a great option.

Do you fore any major issues @TomAugspurger ? I'm tempted to just go for it.
Although, I was thinking now that pangeo-bot is integrated I think a neat testing feature would be to push image builds in a PR to DockerHub and automatically add binder buttons for testing https://mybinder.readthedocs.io/en/latest/howto/gh-actions-badges.html#example-1-comment-on-pull-request-with-a-binder-badge

/condalock
(forgot to commit new conda-lock environment file initially)

Do you foresee any major issues @TomAugspurger ? I'm tempted to just go for it.

Nothing in particular. We could ping people to try out their workflows on staging before deploying to prod.

FWIW, adding mamba definitely speeds up conda-lock, our 3 environments now solve in 2min rather than 9.5 min, and this should also improve binder build speeds for environments with lots of packages.

ping @jhamman @rabernat @rsignell-usgs , going to merge this, if you want to test things out with the master tag (pangeo/pangeo-notebook:master)


Publish jars instead of aars for the android modules

See this: http://stackoverflow.com/questions/19307341/android-library-gradle-release-jar

What is the purpose of jar instead of aar?
On May 14, 2017 10:17 AM, "Vishesh Vadhera"<EMAIL_ADDRESS>wrote:

See this: http://stackoverflow.com/questions/19307341/android-
library-gradle-release-jar
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/apollographql/apollo-android/issues/492, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AEUX3JUN4KyfRC-5DqaHPKJ58TlEAefBks5r5qqRgaJpZM4NaTHt
.

aar would have made sense if we had android resources in our android modules, but since we don't it, it makes sense to publish jar instead.

@VisheshVadhera Where would you use a Jar that contains Android code besides an Android application?

We can publish aars, but the android modules don't really contain resources (layouts or strings), so it's fine I believe to instead publish jars.

I understand but since there is Android code in the jar/aar, it can only be consumed by an Android client such as another Android library or an Android application. Why change them from AAR to JAR? I am just not seeing the benefit.

I don't really have a very strong opinion on aar vs jar. I was leaning slightly towards jar because of what I said above. But if we really don't see any benefit with jar, then we should probably close this issue. @sav007, do you have anything to add here before I close this one?

I vote aar since I think jar would make folks think it will work on just java projects

Yeah agree.

I know this is closed. I didn't have a good example before. I wanted to share this: https://github.com/bumptech/glide/issues/2318. We basically prevented issues like this from happening by closing this issue.


policyAssignment with invalid ResourceType.IdentityType

Describe the bug
This behaviour surfaced in my AzOps implementation, but I am not sure I should report it here - it probably has more to do with an underlying resource provider or az powershell or something else I assume. Please just close it in that case! Anyway, here we go...
Since Jan 5 I see policyAssignments being picked up by the pull pipeline and committed in a state that doesn't play well with the next validate/push invocation but instead report that the deployment template file cannot be parsed.
Steps to reproduce

Modify an arbitrary policyAssignment file (containing an identity) that was pulled from Azure after Jan 5
Create a PR
Wait for the Validate pipeline/action to do its job

I did some simple tests and see the same properties with az powershell but not with az cli, e.g. something like:
> Get-AzPolicyAssignment -Name VNET-to-corp | Select-Object -Property * | ConvertTo-Json
> az policy assignment show --name VNet-to-corp

Screenshots
This is from my good old "eslz-in-a-box" showing that the change was picked up on Jan 5:

The diff as follows:

Made a minor change to the file and committed it - the Validate pipeline then report an error about invalid deployment template file, reason being the IdentityType as far as I understand.

Az.Resources 5.2 maybe?

Changed the type of member 'Identity' in PsPolicyAssignment object from PSObject to PSPolicyIdentity
-- https://github.com/Azure/azure-powershell/pull/16433

But I have no idea what I'm talking about here...

Thank you for reporting this - I have been able to repro the issue myself and can confirm that it is related to the Az.Resource 5.2 property and the fairly recently introduced support for UserAssignedIdentities  in PolicyAssignments.


Fixes scala-compiler not included into the metabuild

When using the launcher's classpath for the metabuild, the
scala-compiler jar can be missing. This is because the managedJars
method only returns the scala-library jar and not the rest of the scala
instance. To fix this, we can always prepend the scala instance jars to
the classpath.
In order to simulate the issue in scripted, I had to manually remove the
scala-compiler.jar from the scripted classpath or else the scripted test
that I added doesn't actually do anything because the scala-compiler.jar
would end up on the app.provider.mainClasspath.
Fixes #4452

As a side note, it does seem a little weird to me that there is an expectation that the scala compiler is on the plugin classpath. I sort of think it is more correct to have to manually depend on it in project/build.sbt but since there are a number of builds that expect its presence, I don't think it hurts too badly to have it.

it does seem a little weird to me that there is an expectation that the scala compiler is on the plugin classpath

More so than any other transitive dependency, like gigahorse?  Btw, did you know https://github.com/cb372/sbt-explicit-dependencies existed?

Yes, exactly. I think it was a mistake that transitive dependencies were ever on the metabuild classpath. In an ideal world, it would have only ever had java, scala, sbt and xsbt classes available.

But with respect to the scala compiler, apparently neither coursier nor ivy consider the scala-compiler part of the transitive classpath (other transitive dependencies like gigahorse were) or this regression would not have existed. It isn't exactly clear to me what historically brought the scala-compiler onto the classpath but it seems like accidental behavior which was what I was getting at with my comment.

With parts of sbt depending on the scala-compiler seems to me the accident is that it wasn't part of that transitive classpath.  I'd understand, somewhat, if it was there but pinned to scalaVersion rather than what the POMs say.


[Release] sdk/resourcemanager/hybridcompute/armhybridcompute/2.0.0

https://github.com/Azure/sdk-release-request/issues/5579

The breaking changes are introduced in https://github.com/Azure/azure-rest-api-specs/pull/29954.

The breaking changes are introduced in Azure/azure-rest-api-specs#29954.

@JeffreyRichter , please approve this major version release by adding label of Approved Major Version, thanks.


Option -f bestaudio[ext=m4a] stopped working

Hi all,
About two weeks ago, an option to tell yt-dl to download the best audio given a specific format, -f bestaudio[ext=m4a] for example,  stopped woking. For over a year, I've had and alias to youtube-dl to grab the highest quality m4a file that used option but that stopped working for some reason. Just using ``-f bestaudio` sucks because it sometimes grabs webm/opus stuff which I don't want (it's unsupported on everything and higher bitrate doesn't mean it's actually better quality).
Anyone know how to get this option back?
Thanks!

Please review our bug reporting guidelines. Without the required information (namely the complete output of youtube-dl when called with -v), we cannot help you. In particular, stopped working could encompass everything from a faulty bit on disk/memory, a custom Python version, networking issues, youtube-dl extractor problems, YoutubeDL core problems with format selection, ffmpeg etc.

Apologies @phihag

youtube-dl -v --no-playlist --no-mtime --youtube-skip-dash-manifest -f bestaudio[ext=m4a]   https://www.youtube.com/watch?v=Kzu6edOTu40
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'--no-playlist', u'--no-mtime', u'--youtube-skip-dash-manifest', u'-f', u'bestaudio[ext=m4a]', u'https://www.youtube.com/watch?v=Kzu6edOTu40']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.02.09
[debug] Python version 2.7.9 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: avconv 11.4, avprobe 11.4, ffmpeg N-69566-g692b226, ffprobe N-69566-g692b226, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] Kzu6edOTu40: Downloading webpage
[youtube] Kzu6edOTu40: Extracting video information
ERROR: requested format not available
Traceback (most recent call last):
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 677, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 722, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1352, in process_video_result
expected=True)
ExtractorError: requested format not available

I believe the problem is --youtube-skip-dash-manifest. I've removed it and now it works!


java.lang.RuntimeException: Unable to start activity

I am facing this exception while adding a slide view in my activity.
 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.infogistic.cloudclinik/com.example.saeeda.cloudclinik.activity.CallingActivity}: android.view.InflateException: Binary XML file line #122: Binary XML file line #122: Error inflating class ng.max.slideview.SlideView

Can you please provide a sample project with this issue?

Closing this issue since error can't be reproduced.


History: fix filtering by expressions

Replace the outdated function, which is not supported in new versions of the pyparsing module, with a supported equivalent.

Please, specify "new version" in the patch description.


Unable to add breakpoint while running debugger

Please answer the following before submitting your issue:
Unable to add breakpoint while running debugger, this started happening after Sierra update
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.

What version of Delve are you using (dlv version)?
1.0.0
What version of Go are you using? (go version)?
go version go1.10.3 darwin/amd64
What operating system and processor architecture are you using?
Mac Os
What did you do?
Tried putting breakpoint when debugger was on
What did you expect to see?
Breakpoint
What did you see instead?
It showed unverified Breakpoint and debugger did not stop

what's an "unverified Breakpoint"? We'll need to see a transcript of the delve session or the output of --log --log-output=rpc

Breakpoints can not be added while the program is running, vscode shouldn't let you do that.

funny it works for once, and stop working.
It that a particularity of

delve ?
debugger with compile language ?
every debugger ?

i've already use debugger with php or js , and i could add breakpoint at runtime.

funny it works for once, and stop working.

The first breakpoint was set before resuming execution

i've already use debugger with php or js , and i could add breakpoint at runtime.

it's a lot simpler to do it with a scripting language.


/join accepts a signature for a third party invite

My only question is if it would be more appropriate for the key to be in a JSON body rather than a query param? It might make it nicer if we want to include a key id or algorithm, etc.

Done, also some tweaks and changes to reflect implementation.

LGTM, might be worth quickly running it past @NegativeMjark

LGTM


Update getting-started.md

Fix for CAP Issue: https://github.tools.sap/cap/issues/issues/17368

Hi, please merge this PR or let me know what's missing.
Thanks,
Markus


New term suggestions (simulation)

The following list of terms should be defined:

[x] Event type
[x] DecFile
[x] Fast simulation

[x] ReDecay
[x] Tracker-only
[x] RICHless
[x] Parametric and/or Delphes
[ ] SplitSim

[ ] Generator (maybe "Event generator")

[ ] Generator-level and/or MC truth
[ ] Generator cut ("GenCut")
[ ] Generator efficiency

[ ] HepMC
[ ] Filtered MC

@abmorris, a PR form today reminds me that several updates are outstanding, such as this one. Would this be something you are willing to tackle soon-ish? Maybe ask Dominik for help?

Thanks for reminding me about this. I have appealed for help in the Simulation Mattermost channel and I'll take a look when I have some free time

Many thanks! Indeed the glossary is a community effort ...

Event type, DecFile, Fast simulation, ReDecay, Tracker-only, RICHless, Delphes are added in https://github.com/lhcb/glossary/pull/49.

Hi @adamdddave, would you be so kind to discuss with Michal and Gloria to try and add the missing terms above to our LHCb glossary? That would be appreciated. Advance thanks,

Closing since there seems to be no appetite for this. We can always add on these names if somebody discusses them and asks for them here.


When choosing xorg, xrdp calls x11rdp

I am compiling from source as I am using little bit old Linux Mint 17.3. But after compiling xrdp and xorgxrdp I fail to log in. I chose xorg in Remote Desktop but on the other side log turns out as follows:
[20180926-07:34:19] [INFO ] scp thread on sck 7 started successfully
[20180926-07:34:19] [INFO ] ++ created session (access granted): username aster, ip [Redacted]:6751 - socket: 12
[20180926-07:34:19] [INFO ] starting X11rdp session...
[20180926-07:34:19] [CORE ] error starting X server - user aster - pid 32210
[20180926-07:34:19] [DEBUG] errno: 2, description: No such file or directory
[20180926-07:34:19] [DEBUG] execve parameter list: 11
[20180926-07:34:19] [DEBUG]         argv[0] = X11rdp
[20180926-07:34:19] [DEBUG]         argv[1] = :10
[20180926-07:34:19] [DEBUG]         argv[2] = -geometry
[20180926-07:34:19] [DEBUG]         argv[3] = 1920x1080
[20180926-07:34:19] [DEBUG]         argv[4] = -depth
[20180926-07:34:19] [DEBUG]         argv[5] = 24
[20180926-07:34:19] [DEBUG]         argv[6] = -bs
[20180926-07:34:19] [DEBUG]         argv[7] = -ac
[20180926-07:34:19] [DEBUG]         argv[8] = -nolisten
[20180926-07:34:19] [DEBUG]         argv[9] = tcp
[20180926-07:34:19] [DEBUG]         argv[10] = (null)
[20180926-07:34:29] [ERROR] X server for display 10 startup timeout

Why xrdp is calling x11rdp? Please help me figure out where is wrong. Thanks!

Forgot to purge old version installed by apt.


ERROR  AT END.

34s
!python /content/Osprey/demo/app.py --model sunshine-lwt/Osprey-7b
output
2024-01-14 16:21:15.919229: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-01-14 16:21:15.919294: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-01-14 16:21:15.919351: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-01-14 16:21:17.052157: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Loading checkpoint shards: 100% 2/2 [00:12<00:00,  6.40s/it]
Some weights of the model checkpoint at sunshine-lwt/Osprey-7b were not used when initializing OspreyLlamaForCausalLM: ['model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.1.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.22.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.13.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.0.blocks.1.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.3.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.16.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.3.blocks.1.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.23.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.5.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.15.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.4.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.9.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.14.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.21.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.0.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.3.blocks.0.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.17.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.18.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.20.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.11.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.24.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.10.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.25.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.3.blocks.2.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.0.blocks.2.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.1.blocks.0.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.19.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.8.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.7.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.0.blocks.0.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.6.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.2.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.26.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.1.blocks.1.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.12.weight', 'model.vision_tower.vision_tower.visual.trunk.stages.1.blocks.2.weight']

This IS expected if you are initializing OspreyLlamaForCausalLM from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
This IS NOT expected if you are initializing OspreyLlamaForCausalLM from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).
Some weights of OspreyLlamaForCausalLM were not initialized from the model checkpoint at sunshine-lwt/Osprey-7b and are newly initialized: ['model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.20.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.19.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.3.blocks.2.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.10.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.7.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.1.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.23.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.22.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.15.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.1.blocks.1.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.17.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.3.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.0.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.18.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.8.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.14.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.13.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.1.blocks.2.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.16.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.25.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.6.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.24.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.0.blocks.2.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.2.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.9.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.26.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.0.blocks.0.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.3.blocks.0.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.0.blocks.1.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.4.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.5.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.21.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.11.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.2.blocks.12.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.1.blocks.0.gamma', 'model.vision_tower.vision_tower.visual.trunk.stages.3.blocks.1.gamma']
You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.
/usr/local/lib/python3.10/dist-packages/transformers/generation/configuration_utils.py:389: UserWarning: do_sample is set to False. However, temperature is set to 0.9 -- this flag is only used in sample-based generation modes. You should set do_sample=True or unset temperature. This was detected when initializing the generation config instance, which means the corresponding file may hold incorrect parameterization and should be fixed.
warnings.warn(
/usr/local/lib/python3.10/dist-packages/transformers/generation/configuration_utils.py:394: UserWarning: do_sample is set to False. However, top_p is set to 0.6 -- this flag is only used in sample-based generation modes. You should set do_sample=True or unset top_p. This was detected when initializing the generation config instance, which means the corresponding file may hold incorrect parameterization and should be fixed.
warnings.warn(
Traceback (most recent call last):
File "/content/Osprey/demo/app.py", line 20, in
sam_predictor = get_sam_predictor()
File "/content/Osprey/demo/inference.py", line 15, in get_sam_predictor
sam = sam_model_registrymodel_type
File "/usr/local/lib/python3.10/dist-packages/segment_anything/build_sam.py", line 38, in build_sam_vit_b
return _build_sam(
File "/usr/local/lib/python3.10/dist-packages/segment_anything/build_sam.py", line 104, in _build_sam
with open(checkpoint, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: './checkpoints/sam_vit_b_01ec64.pth'

Hi, @prabin333
you should  download ViT-B SAM model to ./checkpoints,
or change this line to the path of ViT-B SAM model. https://github.com/CircleRadon/Osprey/blob/ce786ba5f612de3166039c4a9c196f77352f702c/demo/inference.py#L8

I'm currently using Google Colab. Could you please guide me on where to put the checkpoints folder and other required folders? I have already downloaded the Vit-B, SAM, and CLIP models, and placed them inside the checkpoints folder.
2024-01-18 05:23:43.070875: E external/local_xla/xla/stream_executor/cuda/cuda_dnn.cc:9261] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2024-01-18 05:23:43.070933: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:607] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2024-01-18 05:23:43.073035: E external/local_xla/xla/stream_executor/cuda/cuda_blas.cc:1515] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2024-01-18 05:23:44.112812: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Traceback (most recent call last):
File "/content/Osprey/demo/app.py", line 19, in
osprey_ = Osprey(model_path=args.model)
File "/content/Osprey/demo/osprey_inference.py", line 43, in init
self.model = OspreyLlamaForCausalLM.from_pretrained(
File "/usr/local/lib/python3.10/dist-packages/transformers/modeling_utils.py", line 3462, in from_pretrained
model = cls(config, *model_args, **model_kwargs)
File "/usr/local/lib/python3.10/dist-packages/osprey/model/language_model/osprey_llama.py", line 45, in init
self.model = OspreyLlamaModel(config)
File "/usr/local/lib/python3.10/dist-packages/osprey/model/language_model/osprey_llama.py", line 37, in init
super(OspreyLlamaModel, self).init(config)
File "/usr/local/lib/python3.10/dist-packages/osprey/model/osprey_arch.py", line 31, in init
self.vision_tower = build_vision_tower(config, delay_load=False)
File "/usr/local/lib/python3.10/dist-packages/osprey/model/multimodal_encoder/builder.py", line 7, in build_vision_tower
return CLIPVisionTower(args=vision_tower_cfg)
File "/usr/local/lib/python3.10/dist-packages/osprey/model/multimodal_encoder/clip_encoder.py", line 20, in init
self.load_model()
File "/usr/local/lib/python3.10/dist-packages/osprey/model/multimodal_encoder/clip_encoder.py", line 29, in load_model
self.vision_tower.load_state_dict(torch.load(self.clip_model),strict=False)
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 791, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 271, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 252, in init
super().init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'open_clip_pytorch_model.bin'

It appears that the path to the CLIP model is incorrect. Based on the error message and the location of your checkpoints, please update this line in the config.json file of Osprey-7b model to reflect the correct path for the CLIP model, i.e., ./checkpoints/open_clip_pytorch_model.bin.

In colab, localhost is not accessible, you can set os.environ["no_proxy"] = "localhost,<IP_ADDRESS>,::1” in colab. I tried it and it works.

import os
os.environ["no_proxy"] = "localhost,<IP_ADDRESS>,::1"
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/httpx/_urlparse.py", line 339, in normalize_port
port_as_int = int(port)
ValueError: invalid literal for int() with base 10: ':1'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/content/Osprey/demo/app.py", line 5, in
import gradio as gr
File "/content/gradio-osprey-demo/gradio/init.py", line 3, in
import gradio.components as components
File "/content/gradio-osprey-demo/gradio/components/init.py", line 1, in
from gradio.components.annotated_image import AnnotatedImage
File "/content/gradio-osprey-demo/gradio/components/annotated_image.py", line 12, in
from gradio import utils
File "/content/gradio-osprey-demo/gradio/utils.py", line 346, in
class AsyncRequest:
File "/content/gradio-osprey-demo/gradio/utils.py", line 365, in AsyncRequest
client = httpx.AsyncClient()
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1408, in init
self._mounts: typing.Dict[URLPattern, typing.Optional[AsyncBaseTransport]] = {
File "/usr/local/lib/python3.10/dist-packages/httpx/_client.py", line 1409, in
URLPattern(key): None
File "/usr/local/lib/python3.10/dist-packages/httpx/_utils.py", line 397, in init
url = URL(pattern)
File "/usr/local/lib/python3.10/dist-packages/httpx/_urls.py", line 113, in init
self._uri_reference = urlparse(url, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/httpx/_urlparse.py", line 246, in urlparse
parsed_port: typing.Optional[int] = normalize_port(port, scheme)
File "/usr/local/lib/python3.10/dist-packages/httpx/_urlparse.py", line 341, in normalize_port
raise InvalidURL("Invalid port")
httpx.InvalidURL: Invalid port


Introduce test fixtures for TestKit

Context

Reduces boiler plate code in functional tests leading to more maintainable tests
Provides a test framework-specific implementation

For some reason the Spock implementation doesn't work properly yet. The test FixturesEndUserIntegrationTest.can use Spock-based test fixture currently fails.
Whenever a Spock-based test is run it doesn't seem to recognize that the class extends spock.lang.Specification and executes 0 tests. I suspect an issue in RuntimeShadedJarCreator. If I unzip the generated TestKit runtime JAR and repackage with the jar command (e.g. jar cvf gradle-test-kit-4.2-20170811040000+0000.jar *) then it magically works. Any ideas would be appreciated!
Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation including proper use of @since and @Incubating annotations for all public APIs

I think you need to add spock/lang to the excludes for relocation: https://github.com/gradle/gradle/blob/3a59865d436691fc1bbf71885b39eb347fabd2cc/subprojects/dependency-management/src/main/java/org/gradle/api/internal/runtimeshaded/PackageListGenerator.java#L51-L69
In order to avoid needing to build Gradle with an updated version of Gradle you can set the excludes  directly in the definition of the task: https://github.com/gradle/gradle/blob/b940b51ad55b7b17273f182510160ac738dfdd65/subprojects/runtime-api-info/runtime-api-info.gradle#L28-L31

@wolfs Good idea but that isn't it. The Spock library is declared with compileOnly and therefore is used for shading. I also had a look at the byte code of SpockFunctionalTest. The usage of spock/lang/Specification is correct in there.

I don't think providing the super classes is a good idea. Super classes are hard to keep compatible over time as they evolve. I think it would be better to just provide focussed fixture utilities that authors can pull into their tests, and possibly a Groovy trait.
I think we would be better served in the long term to improve our fixtures first, before aiming for minimal boilerplate for users. In this PR, we have just smooshed somethings together.
There are basically three pieces to functional testing:

Building projects under test
Defining the Gradle invocation(s)
Asserting on the outcome

I think we should first focus on a discrete piece that is (1) and incrementally add layers of convenience after that would get us closer to the zero-boilerplate goal of this PR.
I think this PR is trying to address a very real and worthwhile issue. We should make this easier for our users. I think a slightly different, more evolvable and composable, approach is required though. We should do some more design first.

I don't think providing the super classes is a good idea. Super classes are hard to keep compatible over time as they evolve.

Thanks for your feedback. I was kind of concerned about that as well. That's why I had actually started with DefaultFunctionalTestSupport that can follow the delegation pattern. I guess the use of the class in Groovy test classes would be relatively straight-forward if you apply the @Delegate annotation. In Java you'd have to implement the relevant method and delegate to it. Maybe we can split up DefaultFunctionalTestSupport into smaller pieces so that users could pick and choose what they want.

I think we would be better served in the long term to improve our fixtures first, before aiming for minimal boilerplate for users.

This PR was born out of the need to provide test fixtures for the Gradle guides. The only other use case for TestKit I see at the moment in Gradle core are the smoke test for third-party plugins.

I think this PR is trying to address a very real and worthwhile issue. We should make this easier for our users.

I can only speak for myself but I have probably duplicated a similar setup 3-4 times in my external plugins by now.

I think a slightly different, more evolvable and composable, approach is required though. We should do some more design first.

Sounds good. Currently, this work is not lined up with the priorities of the build tool core team. I was doing it on the side lines. We'll see if the need arise anytime soon and then reprioritize.

Closing the PR for the time being.


Inconsistent indentation in example

On the https://docs.microsoft.com/en-us/azure/devops/pipelines/process/templates?view=azure-devops page there is a section:
You can also use conditional insertion for variables:
variables:
  - name: foo
    value: test

pool:
  vmImage: 'ubuntu-latest'

steps:
- script: echo "start"
- ${{ if eq(variables.foo, 'test') }}:
  - script: echo "this is a test"

in which the indentation is different than the rest of the indentations on this whole page.
It is not explained as either relevant or irrelevant. Introducing it there makes no sense.
Please fix this so it cannot create confusion.
There should either be an explanation for the space before the - sign before name: foo or it should be removed.

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 6724abea-bbdc-bf66-ed5e-3214fa6c3e66
Version Independent ID: 4f8dab21-3f0e-da32-cc0e-1d85c13c0065
Content: Templates - Azure Pipelines
Content Source: docs/pipelines/process/templates.md
Product: devops
Technology: devops-cicd-process
GitHub Login: @juliakm
Microsoft Alias: jukullam

@ArendSmit Thanks for the feedback. I'll update the article to make the indentation reason clearer.


Watching Friends from inside of client.

Watching friends games. Niche but would be nice.

What do you mean by "watching"?

The "Watch Game" function.


help me set it up please

idk how to set it up
A clear and concise description of what the bug is.
Expected behavior
I thought there would
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: Windows 10
Python Version: 3.11.3

Additional context
i tried 2 times both failed, 1st one prob was compling. 2nd prob was software terminated. tried on a diff pc and same issue
Some one PLEASE  help.  i deleted the repository for now. My discord is  " Jayw4d "

Have you put python in path? If not, reinstall python and tick the "Add python to path" checkbox in the installer.

Hey, just use the ModdedPysilon version, it covers every bug and it make sure your discord account never get banned.
Leave me a star if you like my project ;)


Operator should default to the watched namespace

Right now the operator seems to rely on the access to the default namespace. In particular, it tries to fetch security tokens from the default namespace instead of the watched one.

That would make the operator behavior inconsistent with the rest of the Kubernetes (the page https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ says that for the objects without the explicitly defined namespace the default one is used). Also, what happens if the operator watches multiple namespaces and every one of them contain slightly different security token?

First we should not mix what does not belong together, so the whole discussion about multiple namespace support is a different requirement and feature and may change some things.
However in this case we need to clearly support the operator to run in an arbitrary specified namespace. And I find it confusing that we have to spec the namespace everywhere, this is not a user friendly default behavior.
For the operator we should simply default to the namespace the operator is running in for every lookup of config and token objects, that is very transparent and easy to understandable. And is aligned with the secrets not being readable across namespaces.

Operator should default to the watched namespace
That would make the operator behavior inconsistent with the rest of the Kubernetes (the page https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ says that for the objects without the explicitly defined namespace the default one is used)

If I understand things correctly, you want to deploy postgres-operator to watched namespaces instead of default one. What do you think about separate configuration options for both of these things, i.e. watched namespaces and deployment target namespace? In this case if target namespace is not defined or empty, then it goes to default  namespace. And watched namespaces will be configured and treated separately.

@erthalion the deployment target namespace is configured in the deployment manifest of the operator , while the watched namespace is controlled by  the environment variable WATCH_NAMESPACE in the operator deployment; that implies they are already separated.
The question in the title of this thread is what should we do if we don't have any namespace specified in the WATCH_NAMESPACE (or the equivalent future configuration parameter in the operator configuration). Our choices are either to listen to the default namespace, or to listen to the  namespace the operator is deployed to.  I don't see any issues with sticking to the default namespace for that case, as any non-default namespace we want the operator to listen to (mostly for the testing purposes) is known during the deployment time and can be specified as a value of the WATCH_NAMESPACE variable in the operator manifest.


How to import the file on mac?

Hi @matdestr I haven't tried the newest update for Mac, but it looks like it may not be supported (which has to be a bug, I can't believe they would intentionally take it out). I'll look into this and get back to you.
http://answers.microsoft.com/en-us/msoffice/forum/msoffice_excel-mso_mac/importing-macro-modules-into-excel-visual-basic/905b01cf-78ce-4bfc-9f93-9f7dda137101

Thanks!
Kind regards,
Mathisse De Strooper
--
Mathisse De Strooper
( m ) +32 474054598 <//+YOURNUMBERNOSPACES>
( e<EMAIL_ADDRESS><EMAIL_ADDRESS>( t ) @matdestr http://www.twitter.com/@matdestr
( ln ) linkedin.com/in/mathissedestrooper
https://www.linkedin.com/in/mathissedestrooper
On September 19, 2016 at 6:21:44 PM, Tim Hall<EMAIL_ADDRESS>wrote:
Hi @matdestr https://github.com/matdestr I haven't tried the newest
update for Mac, but it looks like it may not be supported (which has to be
a bug, I can't believe they would intentionally take it out). I'll look
into this and get back to you.
http://answers.microsoft.com/en-us/msoffice/forum/msoffice_excel-mso_mac/importing-macro-modules-into-excel-visual-basic/905b01cf-78ce-4bfc-9f93-9f7dda137101
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/VBA-tools/VBA-JSON/issues/39#issuecomment-248041642,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOGry1bNb56Kcl_IpUSQy1EVK7w7R6Bqks5qrraVgaJpZM4J-toK
.

Even if I am just copying the files, I'm getting errors all over the place...

Did anyone manage to find a solution to this?  I also can't see/find a way to import this unfortunately!

Likewise

Any solution?

The importing of this should be fixed in the latest Mac, do have another bug, but fixing that in #86

Not fixed yet.  But I found a workaround by opening the specs spreadsheet.  It contains a copy of the imported code, then copied the module into my spreadsheet.


Add Delegate Grants to ProtocolConfigure

Currently ProtocolConfigure only supports normal permission grants, we would like the ability to add a delegate grant to ProtocolConfigure, as it is something that modifies state and an actor may want to delegate that to act on their behalf.

Completed.

Completed


[$500] Display keyboard shortcuts menu in the RHP

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

Action Performed:
Click CMD + J to open the keyboard shortcuts menu
Expected Result:
The keyboard shortcuts menu opens in the RHP

Actual Result:
The keyboard shortcuts menu opens as a modal in the middle of the browser window like this:

Workaround:
n/a
Platforms:

[x] Web
[x] Desktop App

Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~018fa7bda44a6beb13
Upwork Job ID:<PHONE_NUMBER>112583168
Last Price Increase: 2023-09-21
Automatic offers:

samh-nl | Contributor | 26988957

Tagging in @shawnborton for mockup of what the shortcut menu should look like in the RHP

I think something simple like this would do the trick, cc @Expensify/design

I think it'd be like CMD+K. It opens the page, but doesn't close it.

I think we can take this off hold and start moving things forward.

Thanks for the mock @shawnborton! Taking this off hold and adding the External label

@eVoloshchak what's the latest here?

@eVoloshchak can you please review this proposal so we can push this one forward? We'll plan to pull in another C+ if still no update by tomorrow.

@samh-nl's proposal looks good to me!
We also have to make sure to open the new modal when selecting Settings/About/View keyboard

shortcuts
🎀👀🎀 C+ reviewed!

In that screenshot above, it looks like the arrow icon is not vertically centered in the row. Any idea what is going on there?

Ooops, my bad @shawnborton. I made the screenshot on my local build with a draft PR, staging and newDot don't have this problem
Replacing the screenshot, apologies for the confusion

All good, thanks for updating it!

Proposal LGTM, feel free to create a PR @samh-nl. One suggestion that I have would be to remove "show" in "showKeyboardShortcutsPage" and "SHOW_KEYBOARD_SHORTCUTS_PAGE" since i feel like it does not add any value.

Hi @samh-nl are you working on a PR for this issue?

PR is under review

Requested the payment via NewDot

Summarizing payment on this issue:

Issue reporter: N/A
Contributor:  @samh-nl $500 (pay via Upwork)
Contributor+: @eVoloshchak $500 (request via NewDot)

Upwork job is here,  no bonus is included on final payout

$500 payment approved for @eVoloshchak based on summary above.

All paid!


Version of python being used ?

Some dependant library is failing. Please specify the version you are using .
ImportError: cannot import name 'Iterator' from 'typing_extensions' (/opt/conda/lib/python3.10/site-packages/typing_extensions.py)

I tried Python 3.11 and 3.10, and they both worked. Your problems seem related to your conda env; the typing module has been available since Python 3.5.

Any working solution to the typing module problems in conda you can refer.

Hey!
Thanks @timothepearce for answering. RAGatouille supports >=3.9, I'll update the README soon to make it clearer.
The issue you're having is somewhat common with conda, there's a lot of similar issues all over GitHub (e.g. a similar one here https://github.com/tiangolo/fastapi/discussions/9808).
The issue seems to be that there can be conflicting versions of typing_extensions installed at the system level & in the conda env, and also by pypi, or by conda. This is compounded because the library is sometimes called typing_extensions or typing-extensions, but is always imported via from typing_extensions [...]. I'll eventually try to see if I can figure out a way for it to be force-installed when installing RAGatouille.
I think for now this should solve your issue (one of the uninstall might fail, don't worry about it!):
pip uninstall typing_extensions
pip uninstall typing-extensions
pip install --upgrade typing-extensions

@bclavie can you update the README with minimum python version required to setup RAGatouille, I was using 3.8.10 and had trouble installing it and found the python requirement here.


Add shapes to pdfme

Are you planning on adding shapes (rect, circle, triangles) in the pdf generator?

@Sventenhaaf
No, I don't have...


Update dependencies

Summary
Update package dependencies specified in the yarn.lock file. Ensures that future invocations of yarn install uses the updated package versions.

Dependency updates are creating some issues with JSX elements not being recognized. Need to debug before we can merge.

Dependency updates are creating some issues with JSX elements not being recognized. Need to debug before we can merge.

Can you share more? How can I reproduce?

Check out the branch, do a yarn install with the new lock files and present, and open any React file. At least for me, every single React component has a red squiggly line that says it's not a valid type or something like that. Doing a yarn install on the old lock files resolves the issue.

That's interesting. I am not facing the same issue. Everything looks okay on my local


“dns”下的“host”设置无效

你正在使用哪个版本的 V2Ray？
V2Ray 4.35.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.16 linux/amd64)
A unified platform for anti-censorship.
2021/03/11 01:10:48 Using config from STDIN
2021/03/11 01:10:48 [Info] github.com/v2fly/v2ray-core/v4/main/jsonem: Reading config: stdin:
你的使用场景是什么？
chrome 通过 VMess
你看到的异常现象是什么？
host 无法匹配 域名或IP
你期待看到的正常表现是怎样的？
"dns": {
"hosts": {
"domain:zhu.com": "google.com"
},
//当我输入zhu.com的时候，他应该使用Google.com来解析（当该项的地址为域名时，会使用此域名进行 IP 解析，而不使用原始域名https://www.v2fly.org/config/dns.html#dnsobject）
请附上你的配置

服务端配置：
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "debug"
},
"routing": {
    "domainStrategy": "UseIP",
    "domainMatcher": "hybrid",
    "rules": [],
    "balancers": []
},
"dns": {
    "hosts": {
    "domain:zhu.com": "google.com"
},
    "servers": [

        "quic+local://dns.adguard.com",
        "<IP_ADDRESS>",
        "<IP_ADDRESS>",
        "https://<IP_ADDRESS>/dns-query"

]

},
"inbounds": [
    {
        "port": 443,
        "protocol": "vmess",
        "settings": {

            "clients": [
                {
                    "id": "29d2a01a-b081-4a5d-b77e-45f3e01ac164",
                     "alterId": 57
                }
            ]
        }
    }
],
"outbounds": [
    {
        "protocol": "freedom",
        "settings": {}
    }
]

}
// 在这里附上服务器端配置文件

客户端配置：
客户端配置无关紧要，这个问题不应该和客户端有任何关系。
// 在这里附上客户端配置

请附上出错时软件输出的错误日志

服务器端错误日志：
2021/03/11 01:48:07 [Info] [4102618292] github.com/v2fly/v2ray-core/v4/proxy/vmess/inbound: received request for tcp:zhu.com:80
2021/03/11 01:48:07 [Info] [4102618292] github.com/v2fly/v2ray-core/v4/app/dispatcher: default route for tcp:zhu.com:80
2021/03/11 01:48:07 [Info] [4102618292] github.com/v2fly/v2ray-core/v4/proxy/freedom: opening connection to tcp:zhu.com:80
2021/03/11 01:48:07 [Info] [4102618292] github.com/v2fly/v2ray-core/v4/transport/internet/tcp: dialing TCP to tcp:zhu.com:80
2021/03/11 01:48:07 [Warning] github.com/v2fly/v2ray-core/v4/proxy/vmess/encoding: Critical Warning: potentially invalid user: a non VMessAEAD connection is received. From 2022 Jan 1st, this kind of connection will be rejected by default. You should update or replace your client software now.
2021/03/11 01:48:07 [Info] [1582210667] github.com/v2fly/v2ray-core/v4/proxy/vmess/inbound: received request for tcp:zhu.com:80
2021/03/11 01:48:07 [Info] [1582210667] github.com/v2fly/v2ray-core/v4/app/dispatcher: default route for tcp:zhu.com:80
2021/03/11 01:48:07 [Info] [1582210667] github.com/v2fly/v2ray-core/v4/proxy/freedom: opening connection to tcp:zhu.com:80
2021/03/11 01:48:07 [Info] [1582210667] github.com/v2fly/v2ray-core/v4/transport/internet/tcp: dialing TCP to tcp:zhu.com:80
2021/03/11 01:48:22 [Info] [1582210667] github.com/v2fly/v2ray-core/v4/transport/internet/tcp: dialing TCP to tcp:zhu.com:80
2021/03/11 01:48:22 [Info] [4102618292] github.com/v2fly/v2ray-core/v4/transport/internet/tcp: dialing TCP to tcp:zhu.com:80
2021/03/11 01:48:38 [Info] [1582210667] github.com/v2fly/v2ray-core/v4/transport/internet/tcp: dialing TCP to tcp:zhu.com:80
2021/03/11 01:48:38 [Info] [4102618292] github.com/v2fly/v2ray-core/v4/transport/internet/tcp: dialing TCP to tcp:zhu.com:80
2021/03/11 01:48:42 [Info] [1582210667] github.com/v2fly/v2ray-core/v4/transport/internet/tcp: dialing TCP to tcp:zhu.com:80
2021/03/11 01:48:42 [Info] [4102618292] github.com/v2fly/v2ray-core/v4/transport/internet/tcp: dialing TCP to tcp:zhu.com:80
// 在这里附上服务器端日志

客户端错误日志：
2021/03/10 22:48:07 tcp:<IP_ADDRESS>:62673 accepted tcp:zhu.com:80 [proxy]
2021/03/10 22:48:07 tcp:<IP_ADDRESS>:62674 accepted tcp:zhu.com:80 [proxy]
// 在这里附上客户端日志

请附上访问日志

// 在这里附上服务器端日志
2021/03/11 01:48:07 <IP_ADDRESS>:17659 accepted tcp:zhu.com:80
2021/03/11 01:48:07 <IP_ADDRESS>:17660 accepted tcp:zhu.com:80
2021/03/11 01:48:55 <IP_ADDRESS>:17744 accepted tcp:d.dropbox.com:443
2021/03/11 01:48:55 <IP_ADDRESS>:17745 accepted tcp:detectportal.firefox.com:80
2021/03/11 01:48:56 <IP_ADDRESS>:17749 accepted tcp:detectportal.firefox.com:80
2021/03/11 01:48:57 <IP_ADDRESS>:17750 accepted tcp:detectportal.firefox.com:80
2021/03/11 01:49:16 <IP_ADDRESS>:17775 accepted tcp:zhu.com:80
2021/03/11 01:50:37 <IP_ADDRESS>:17880 accepted tcp:clients4.google.com:443

//输入https://zhu.com时的日志

2021/03/11 02:10:35 [Info] [286288645] github.com/v2fly/v2ray-core/v4/proxy/vmess/inbound: received request for tcp:zhu.com:443
2021/03/11 02:10:35 [Info] [286288645] github.com/v2fly/v2ray-core/v4/app/dispatcher: default route for tcp:zhu.com:443
2021/03/11 02:10:35 [Info] [286288645] github.com/v2fly/v2ray-core/v4/proxy/freedom: opening connection to tcp:zhu.com:443
2021/03/11 02:10:35 [Info] [286288645] github.com/v2fly/v2ray-core/v4/transport/internet/tcp: dialing TCP to tcp:zhu.com:443
2021/03/11 02:10:50 [Info] [286288645] github.com/v2fly/v2ray-core/v4/transport/internet/tcp: dialing TCP to tcp:zhu.com:443

其它相关的配置文件（如 Nginx）和相关日志
如果 V2Ray 无法启动，请附上 --test 命令的输出
如果 V2Ray 服务运行异常，请附上 journal 日志

"routing": {
    "domainStrategy": "UseIP",

This is incorrect. See https://www.v2fly.org/config/routing.html

"domain:zhu.com": "google.com"

This is not how you use hosts. Your request will be rejected by Google's server due to the invalid SNI (zhu.com).

"routing": {
    "domainStrategy": "UseIP",

This is incorrect. See https://www.v2fly.org/config/routing.html
But the document says I should use "Useip" other than the default setting.

WARNING

For outbounds with freedom protocol, the default value of domainStrategy is AsIs, therefore the DNS settings will not be applied to this outbound by default. If necessary, it should be configured as UseIP.

"routing": {
    "domainStrategy": "UseIP",

This is incorrect. See https://www.v2fly.org/config/routing.html

But the document says I should use "Useip" other than the default setting.

WARNING

For outbounds with freedom protocol, the default value of domainStrategy is AsIs, therefore the DNS settings will not be >applied to this outbound by default. If necessary, it should be configured as UseIP.

But the document says I should use "Useip" other than the default setting.

UseIP is only used in outbound settings. See https://www.v2fly.org/config/protocols/freedom.html#outboundconfigurationobject. For example:
{
    "protocol": "freedom",
    "settings": {
        "domainStrategy": "UseIP"
    },
    "tag": "direct"
},

But I'm pretty sure you don't actually want UseIP. What you're attempting to do is just not possible in practice. It's never going to work the way you want it to.

There are two domainStrategys, one in routing, the other in freedom outbound.
The one in routing has three options "AsIs" | "IPIfNonMatch" | "IPOnDemand". The one in freedom outbound has four options "AsIs" | "UseIP" | "UseIPv4" | "UseIPv6".

For outbounds with freedom protocol, the default value of domainStrategy is AsIs, therefore the DNS settings will not be applied to this outbound by default. If necessary, it should be configured as UseIP.

The meaning of the above sentence states that DNS settings will not apply to freedom outbound if the domainStrategy in freedom outbound is using the default value AsIs.

"domain:zhu.com": "google.com"

This is not how you use hosts. Your request will be rejected by Google's server due to the invalid SNI (zhu.com).

Why, I assumed when I type zhu.com in my browser, the V2ray should request google.com instead.

hosts: map{string: address}

Static IP list, its value is a series of "domain name": "address". The address can be an IP or domain name. When resolving a >domain name, if the domain name matches an item in this list when the address of the item is an IP, the resolution result is the >IP of the item, and the following servers are not used for resolution; when the address is a domain name, this domain name will >be used for IP resolution instead of the original domain name.

There are two domainStrategys, one in routing, the other in freedom outbound.
The one in routing has three options "AsIs" | "IPIfNonMatch" | "IPOnDemand". The one in freedom outbound has four options "AsIs" | "UseIP" | "UseIPv4" | "UseIPv6".

For outbounds with freedom protocol, the default value of domainStrategy is AsIs, therefore the DNS settings will not be applied to this outbound by default. If necessary, it should be configured as UseIP.

The meaning of the above sentence states that DNS settings will not apply to freedom outbound if the domainStrategy in freedom outbound is using the default value AsIs.
OK, thanks, I see it now.

But the document says I should use "Useip" other than the default setting.

UseIP is only used in outbound settings. See https://www.v2fly.org/config/protocols/freedom.html#outboundconfigurationobject. For example:
{
    "protocol": "freedom",
    "settings": {
        "domainStrategy": "UseIP"
    },
    "tag": "direct"
},

But I'm pretty sure you don't actually want UseIP. What you're attempting to do is just not possible in practice. It's never going to work the way you want it to.

Yes, you are right, I can use it to jump to my own site. But why can't google.

"domain:zhu.com": "google.com"

This is not how you use hosts. Your request will be rejected by Google's server due to the invalid SNI (zhu.com).

Got it. Thanks a lot.

Yes, you are right, I can use it to jump to my own site. But why can't google.

Because you didn't configure your web server to enforce a server name. A common practice is to configure a default server to return 404 for requests with a server name not matched by any other server. For example, with nginx, we can do:
http {
    server {
        listen       80 default_server;
        listen       [::]:80 default_server;
        listen       443 ssl http2;
        listen       [::]:443 ssl http2;
        server_name  _;

        if ($host = zhu.com) {
            return 301 https://$host$request_uri;
        }

        return 404;
    }

    server {
        listen       443 ssl http2;
        listen       [::]:443 ssl http2;
        server_name  zhu.com;
    }
}

Yes, you are right, I can use it to jump to my own site. But why can't google.

Because you didn't configure your web server to enforce a server name. A common practice is to configure a default server to return 404 for requests with a server name not matched by any other server. For example, with nginx, we can do:
http {
    server {
        listen       80 default_server;
        listen       [::]:80 default_server;
        listen       443 ssl http2;
        listen       [::]:443 ssl http2;
        server_name  _;

        if ($host = zhu.com) {
            return 301 https://$host$request_uri;
        }

        return 404;
    }

    server {
        listen       443 ssl http2;
        listen       [::]:443 ssl http2;
        server_name  zhu.com;
    }
}

Well, I thought when I put request zhu.com  to V2ray it would turn my request as google.com to DNS. Guess I thought it wrong. Though I think the document is confusing in that part.


Update not working for dependecy installed from GIT hidden ref if ref comes from a fork

Github allows you to reference a pull request as a hidden ref you can fetch. This feature is useful to keep a log of you open PR required by your project.
In order to declare a dependency to a new patched version of one of my project's dependencies, I've added into my requirements.txt.in the following line:
odoo10-addon-account-banking-mandate @ git+https://github.com/oca/bank-payment.git@refs/pull/727/head#subdirectory=setup/account_banking_mandate

and used the update command to install and freeze this new version of my dependency
pip-df sync --update odoo10-addon-account-banking-mandate
(PR from acsone/bank-payment  to oca/bank-payment)
At the end of the process, the dependency is correctly installed however the updated entry into my  requirements.txt file is not right. Indeed, even if the sha is the right one, the ORG into the github url is the one on which the pr has been made not the one from which the changes are submitted....
odoo10-addon-account-banking-mandate @ git+https://github.com/oca/bank-payment.git@84d5fd2cc8c9bbca6b036ad5f8d87776d1b3fdad#subdirectory=setup/account_banking_mandate

Is-it a know limitation or a bug?

This issue can probably be addressed in pip.
The issue is that the commit is not directly reachable after a git clone.
One possibility could be to do something around here, such as a git ls-remote to see if the commit exists when the first checkout attempt has failed.

The bottom of the issue is that most git servers (and GitHub in particular) do not allow fetching arbitrary commits. Even if pip would try to be smart to find the commit with git ls-remote, it would lose access to it as soon as someone would add a commit to the original pull request. So that is probably not a very useful change to do in pip.
At the end of the day, one must make sure that all commits referenced in requirements.txt are and remain reachable via a branch or a tag.

I share this thought. The correct use is therefore to avoid using hidden ref. We must always use a reference that remain reachable..

@lmignon it is true that one must make sure that the commits referenced in requirements.txt remain reachable.
However in the case you mention, the commit is reachable via a git fetch.
So I think this is worth fixing in pip. I created an issue (https://github.com/pypa/pip/issues/8815) and I'll come up with a PR.

@lmignon This should work fine with https://github.com/pypa/pip/pull/8817.
Now the last missing piece of the puzzle is the tool that places tags on all commits referenced in requirements.txt, and to do that automatically pushes them to an org where the user has right to create tags. I'm not sure this should be part of pip-deepfreeze. It would probably be best as a standalone tool.

@lmignon This should work fine with pypa/pip#8817.

great! :champagne:

Now the last missing piece of the puzzle is the tool that places tags on all commits referenced in requirements.txt, and to do that automatically pushes them to an org where the user has right to create tags. I'm not sure this should be part of pip-deepfreeze. It would probably be best as a standalone tool.

+1 to place this part into a standalone tool

This will be part of the upcoming pip release, so closing this issue.

OK thank you for the follow up.


rbac, ServiceAccount: Use default K8s client-set

Change the client type of rbac.CreateServiceAccount() to the default client-set (kubernetes.Interface).
Because we are using K8s fake client as a stub, there is no need to use a client other than the default.
Depends on PR #54.

Change: Rebase.


Rewords unsupported workload notification

Reword unsupported workload notificaton.
Signed-off-by: Christopher Collins<EMAIL_ADDRESS>

/lgtm
/approve