Problems installing pandas using pip

Hey everyone,
I installed pandas via pip git
pip install git+git://github.com/pydata/pandas.git
and during the installation it says:
Running setup.py install for pandas ... done Successfully installed pandas-0.18.0+207.gc6110e2
But when I want to import it, it gives an error
C extension: hashtable not built. If you want to import pandas from the source directory, you may need to run  'python setup.py build_ext --inplace' to build the C extensions first.
I already tried to run this but the response is always:
python: can't open file 'setup.py': [Errno 2] No such file or directory
Maybe I am in the wrong directory. So in which I am suppose to run it?
Also I looked in site-packages but can't find pandas or something similar.
I am confused since it said it runs the setup.py during the installation...
Can anyone help? What I am doing wrong?
Thanks in advance
Leni

are you trying to contribute? you need to git clone, see here
otherwise see installation instructions here
generally a pip install pandas (or much better is simply to use conda).
I think that pip doesn't install the deps correctly if you are installing like this (and that its failing because you don't have the build deps installed, e.g. cython/numpy).

http://stackoverflow.com/questions/31495657/development-build-of-pandas-giving-importerror-c-extension-hashtable-not-bui
Think the error message from pandas could include --force

@MaximilianR that's a good point. do you want to PR for an extended message?

I tried conda before but it is the same problem with importing. So I tried it in an new created environment and without. Installing seems to be always fine. Just importing is the same problem always
adding -force doesn't help since it can't find setup.py at all such that it still gives the error

so I found now the pandas in
/anaconda/lib/python2.7/site-packages
but still can't find any setup.py

once you install via anaconda you don't need to do anything else.
conda create -n test pandas
. activate test
 python -c 'import pandas; print(pandas.__version__)'

Great it worked, except form another name of the environment I don't what I did different last time. However, it worked! So thanks a lot!!! :)
Could just explain me why do I need this environment?

@lherstix you don't :> that was just a test the -n <name_of_environment> can be anything. its up to you (and you can have multiple ones). http://conda.pydata.org/docs/

Thanks a lot, that helped :)

Me again...
So after pandas worked fine, I installed seaborn the same way and in the same environment. Now  I get an error for pandas and for seaborn when I import them:
import pandas as pd
import seaborn as sns
I get the following error:
 Traceback (most recent call last):   File "test1.py", line 1, in <module>     import pandas as pd   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/pandas/__init__.py", line 39, in <module>     from pandas.core.api import *   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/pandas/core/api.py", line 10, in <module>     from pandas.core.groupby import Grouper   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/pandas/core/groupby.py", line 18, in <module>     from pandas.core.frame import DataFrame   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/pandas/core/frame.py", line 39, in <module>     from pandas.core.series import Series   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/pandas/core/series.py", line 2944, in <module>     import pandas.tools.plotting as _gfx  # noqa   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/pandas/tools/plotting.py", line 27, in <module>     import pandas.tseries.converter as conv   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/pandas/tseries/converter.py", line 7, in <module>     import matplotlib.units as units   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/matplotlib/__init__.py", line 1131, in <module>     rcParams = rc_params()   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/matplotlib/__init__.py", line 975, in rc_params     return rc_params_from_file(fname, fail_on_error)   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/matplotlib/__init__.py", line 1100, in rc_params_from_file     config_from_file = _rc_params_in_file(fname, fail_on_error)   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/matplotlib/__init__.py", line 1018, in _rc_params_in_file     with _open_file_or_url(fname) as fd:   File "/Users/lena/anaconda/envs/test/lib/python2.7/contextlib.py", line 17, in __enter__     return self.gen.next()   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/matplotlib/__init__.py", line 1000, in _open_file_or_url     encoding = locale.getdefaultlocale()[1]   File "/Users/lena/anaconda/envs/test/lib/python2.7/locale.py", line 543, in getdefaultlocale     return _parse_localename(localename)   File "/Users/lena/anaconda/envs/test/lib/python2.7/locale.py", line 475, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: UTF-8
If I comment out import pandas as pd, I get:
Traceback (most recent call last):   File "test1.py", line 9, in <module>     import seaborn as sns   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/seaborn/__init__.py", line 1, in <module>     from .rcmod import *   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/seaborn/rcmod.py", line 6, in <module>     import matplotlib as mpl   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/matplotlib/__init__.py", line 1131, in <module>     rcParams = rc_params()   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/matplotlib/__init__.py", line 975, in rc_params     return rc_params_from_file(fname, fail_on_error)   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/matplotlib/__init__.py", line 1100, in rc_params_from_file     config_from_file = _rc_params_in_file(fname, fail_on_error)   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/matplotlib/__init__.py", line 1018, in _rc_params_in_file     with _open_file_or_url(fname) as fd:   File "/Users/lena/anaconda/envs/test/lib/python2.7/contextlib.py", line 17, in __enter__     return self.gen.next()   File "/Users/lena/anaconda/envs/test/lib/python2.7/site-packages/matplotlib/__init__.py", line 1000, in _open_file_or_url     encoding = locale.getdefaultlocale()[1]   File "/Users/lena/anaconda/envs/test/lib/python2.7/locale.py", line 543, in getdefaultlocale     return _parse_localename(localename)   File "/Users/lena/anaconda/envs/test/lib/python2.7/locale.py", line 475, in _parse_localename     raise ValueError, 'unknown locale: %s' % localename ValueError: unknown locale: UTF-8
I hope it is understandable and you can help me! Greatz!

@lherstix I suppose you are running a Mac? See http://conda.pydata.org/docs/troubleshooting.html#issue-valueerror-unknown-locale-utf-8-on-os-x

Perfect, thank you!!


Luci -- dnsmasq + proxydnssec

It would be great to have a swich in Luci to deal with uci option<EMAIL_ADDRESS>

What is the label and description of proxydnssec?
What are its possible values?
Does it depend on other options?

in /etc/init.d/dnsmasq there is a line
append_bool "$cfg" proxydnssec "--proxy-dnssec
thus this is bool, and think it should not be turn on together with dnssec enabled because with proxydnssec dnsmasq does not validate dnssec by itself.
this is what is manual:

--proxy-dnssec Copy the DNSSEC Authenticated Data bit from upstream servers to downstream clients and cache it. This is an alternative to having dnsmasq validate DNSSEC, but it depends on the security of the network between dnsmasq and the upstream servers, and the trustworthiness of the upstream servers.

This is useful in case of using stubby/unbound + dnsmasq
https://forum.openwrt.org/t/tutorial-dns-over-tls-with-dnsmasq-and-stubby-no-need-for-unbound/18663/16

I found that proxydnssec works with no-DNSSEC dnsmasq, too. Thus dnsmasq does not need to be dnsmasq-full.

I'd love to have this feature ... and to use an unbound in front of the included dnsmasq, basing the dnssec validation on the unboud (which i don trust, because it is mine).
But from my tests with pi-hole (which is based on dnsmasq) I see the proxy-dnssec is not working the way one would expect.
If I do a first query with dig I get the ad flag delivered by a dnsmasq with proxy-dnssec set. But any subsequent dig calls don't deliver the ad flag, as it seems it is not chached by dnsmasq.
If this is the case for the dnsmasq in OpenWrt as well and not a problem of the pi-hole version, this 'feature' is useless.


Why use freezing layers?

Why use freezing layers?
Is it for small GPU memory?  or for obtaining the training stability ?
By the way, is there no possibility of making training precision down, by freezing layers first?

Freezing the layers will increase the training time a lot, since the backpropagation only needs to pass through the final layer and not all layers. For many problems it is sufficient to only train the final layer and the rest can remain the same. I think the GPU memory is also reduced when freezing. I dont know about trianing stability, but I guess this is not the main reason and it will only have a small effect on that.

In general, training the whole net on some data will most likely get a better output precision than only training the last layer and freezing the rest.
However, when you want to train on a new dataset with different classes than the original dataset (e.g. coco), you can only train the last layer and you will get already really good results, even if you only have a small training set. If you have sufficient large number of training images, then it is probabliy a better idea to unfreeze layers

stefanbo92,
I really appreciate your answer!

https://github.com/YunYang1994/tensorflow-yolov3 hope it helps you


GetSourceDir() returns a less-surprising source directory

GetSourceDir() used to get confused by my ~/src/salesforce directory,
because "src" was a part of the directory name. Now, GetSourceDir()
prefers looking at subdirectories and then walks up the parent branch,
until it finds what it's looking for.
It also relies on the existence of package.xml, instead of just the
name of the directory itself.
Finally, GetSourceDir() no longer searches for "src" exhaustively
because looking for "metadata".

@dcarroll, do you mind taking a look at this change?

@dcarroll: Ping?


Ship libpq using BinDeps2

Use BinDeps2 (or whatever it ends up being called) to ship the libpq library.

Now ships with BinDeps1 so I changed the title

Closed by #29


How do you generate an API key?

Hi guys, I would like to use this SDK. How do I get an API key?

Yes How can we get an API key?

Is there any comment for get an API key?


Move Hathi Deny items to new temporary location in Voyager

This will prevent patrons from checking out these items.
Full List of Accept/Deny: https://drive.google.com/file/d/13EOsp6HbiLOw397YNteTGbG3zg0EDYFa/view
There are some rake tasks that exist which may be useful as reference. The code that splits out DENY from ALLOW should be added to Marc Liberation.
Existing rake tasks: https://github.com/pulibrary/marc_liberation/blob/master/lib/tasks/hathi.rake#L15
Some of these items may be charged to the CDL user. What will happen when we attempt to move them to a non-circulating location? The answer to this question will impact the implementation of https://github.com/pulibrary/orangelight/issues/2185

a new "etas" holding location has been created and added to bibdata. We have two example items under this location in Voyager.
Firestone Item: https://catalog.princeton.edu/catalog/162632
Recap Item: https://catalog.princeton.edu/catalog/162629

The request form on these does now go to our default behavior, the "Help Me Get It" button. Some wonkiness in the display which I will ticket in the requests repo.

We are moving to alma. We will not use ETAS any more. The location has been removed.


Fix UDF arg parse null reference

Arg Identifier is null for certain UDF declarations eg: SomeFunc(: and F(a: Boolean,:):Number = 1;. these are intermediate states when writing UDFs and these cause Null ref exception. this makes changes to prevent NRE.

✅ No public API change.


unable to train a model from scratch

Checks

[X] This template is only for bug reports, usage problems go with 'Help Wanted'.
[X] I have thoroughly reviewed the project documentation but couldn't find information to solve my problem.
[X] I have searched for existing issues, including closed ones, and couldn't find a solution.
[X] I confirm that I am using English to submit this report in order to facilitate communication.

Environment Details
ubuntu 22.04 (wsl) Python 3.10.12
Steps to Reproduce

following the instructions regarding training, I setup a dataset as well as modified train.py to point to it and setup training parameters.
I initiate training, however receive an error if I choose to not use a base model to finetune from.
For experimentation I'm interested in training from scratch, so please let me know if there's something different I have to do to initialize the model.
I'm getting the error below:

Traceback (most recent call last):
  File "/home/daniel/F5-TTS/src/f5_tts/train/train.py", line 103, in <module>
    main()
  File "/home/daniel/F5-TTS/src/f5_tts/train/train.py", line 96, in main
    trainer.train(
  File "/home/daniel/F5-TTS/src/f5_tts/model/trainer.py", line 257, in train
    start_step = self.load_checkpoint()
  File "/home/daniel/F5-TTS/src/f5_tts/model/trainer.py", line 159, in load_checkpoint
    latest_checkpoint = sorted(
IndexError: list index out of range

✔ Expected Behavior
Training should start at least as I understand it, even without a base model.
Thanks in advance for any guidance on this.
❌ Actual Behavior
No response

Hi @danielw97
https://github.com/SWivid/F5-TTS/blob/ab2ad3b005ea839ab698493a819bde909761d96e/src/f5_tts/train/train.py#L24
use an exp_name that there is no conflict with an existing dir, say, pointing to a new empty dir is fine.
or just clean up all files in the existing dir.

Hi @SWivid
Thanks for your fast reply on this.
Unfortunately I'm still running into the same error, even when training with an empty ckpt directory.
Are there other files I have to clean up beforehand?
It looks to me as though these lines in trainer.py are trying to load a pt file that doesn't exist, is there a way to get around this for creating a new model?
Thanks again for your help, I know this may be an edge case as most folks will want to finetune.
        if "model_last.pt" in os.listdir(self.checkpoint_path):
            latest_checkpoint = "model_last.pt"
        else:
            latest_checkpoint = sorted(
                [f for f in os.listdir(self.checkpoint_path) if f.endswith(".pt")],
                key=lambda x: int("".join(filter(str.isdigit, x))),
            )[-1]
        # checkpoint = torch.load(f"{self.checkpoint_path}/{latest_checkpoint}", map_location=self.accelerator.device)  # rather use accelerator.load_state ಥ_ಥ
        checkpoint = torch.load(f"{self.checkpoint_path}/{latest_checkpoint}", weights_only=True, map_location="cpu")

@danielw97
make sure using an empty dir that verify this
https://github.com/SWivid/F5-TTS/blob/ab2ad3b005ea839ab698493a819bde909761d96e/src/f5_tts/model/trainer.py#L148-L153

I'm still running into this issue, unfortunately even with no project directory under ckpts.
Calling train.py like this: python src/f5_tts/train/train.py results in the directory being created, but it immediately errors out before training starts with the error I mentioned, I've also put a more complete output below.
I'm not sure if it's something I'm doing wrong or not, or if there's another directory I have to make sure doesn't exist.
Using logger: None
Loading dataset ...
Download Vocos from huggingface charactr/vocos-mel-24khz
Sorting with sampler... if slow, check whether dataset is provided with duration: 100%|█| 448/448 [00:00<00:00, 1457756.
Creating dynamic batches with 38400 audio frames per gpu: 100%|██████████████████| 448/448 [00:00<00:00, 2314098.76it/s]
Traceback (most recent call last):
  File "/home/daniel/F5-TTS/src/f5_tts/train/train.py", line 103, in <module>
    main()
  File "/home/daniel/F5-TTS/src/f5_tts/train/train.py", line 96, in main
    trainer.train(
  File "/home/daniel/F5-TTS/src/f5_tts/model/trainer.py", line 257, in train
    start_step = self.load_checkpoint()
  File "/home/daniel/F5-TTS/src/f5_tts/model/trainer.py", line 159, in load_checkpoint
    latest_checkpoint = sorted(
IndexError: list index out of range

unfortunately even with no project directory under ckpts

so you have make sure that self.checkpoint_path is pointing to the ckpts/[exp_name_you_use] which is an empty one and is not another path modified
try print out the self.checkpoint_path see if correctly set

@danielw97 oh, are you using log_samples=True?
seems conflict with this newly added feature if True and train from scratch

@SWivid many thanks for your help in tracking this down, that was the problem.
Hopefully this can help in future if someone else runs across this though.

@danielw97 yes, we will add a quick fix to it, will be able to use log_samples

Can you help me with the training phase? I am trying to train E2TTS from stratch with LibriTTS dataset. The loss function indicates that the model has converged. But when I try to synthesized, or even listen to the logged samples, I can't hear a single word from it.
As I inspect the code, I see that the vocab are just letters from the English alphabet with some special symbols like bracket and stuff. However, the provided vocab.txt file for Emilia_ZH_EN_pinyin dataset also has CMU phonemes in there. From the original paper, the author said that no phonemes and duration predictor are used. Therefore I don't know why my synthesized audio is not speaking what I want.
Is there a chance that I need to train with bigger dataset for it to work? Or are phonemes crucial?

[https://storage.googleapis.com/wandb-production.appspot.com/ndhuynh/ZACT-TTS/k2l3xgu2/media/audio/Gen Audio_35000_cdca4d7d4f49e312fb4e.wav?Expires=1734580771&GoogleAccessId=gorilla-files-url-signer-man%40wandb-production.iam.gserviceaccount.com&Signature=K3JfaxnMsn1%2FzMCO22VMqxw%2B2sUdDKLfYc5UCWYPmsytifzDzETKIpy2Ae6LjQftyLrm6O73M5Nvdf5eAXkusP9jZcU1S0QXcsou5FSfXtwiNZ2TgL5KJPYsYzaPNJRI4TP2Nwk1bdUi7zx7y%2BqE5yS4ffJJPIFRo8e1qi7pFC9VwNpu0vhZK3w1ddkgfocgwoUWt%2F8w1C11%2B%2BMsXlNt%2FzAHbaLbAcDx9nENx0dq8xuwaUrH0A7JNAlMg0ano5aMa2K7pAM7%2B5ezgN0d%2BO94GVKh947Wfvw0g%2FrjYY7ct3Pl52%2FJtM4aDVwhbiFfpml9vH2ITIIOJ%2B9aHxePVQuTLQ%3D%3D](generated speech.wav)
Expected gen text: "mr hoopdriver felt flattered"

the provided vocab.txt file for Emilia_ZH_EN_pinyin dataset also has CMU phonemes in there

we use only EN chars and ZH full pinyin, could you elaborate or pointing out for the phonemes mentioned?

The loss function indicates that the model has converged.

not converged, train longer


About the signature of the package .app under MacOS

I generated the .app package with the demo by myself, referring to the signing steps on the avalonia official website, it can be signed and notarized successfully. But I will include the cefnet project and use the script to make it into an .app package. When taking the steps of signing and notarization under macos, the step of signing is always abnormal. Prompt the following information:
[INFO] Signing app file
/Users/mesign/Documents/cefdemo/cef-84_4-example-master/bin/Sign/AvaloniaApp.app: replacing existing signature
/Users/mesign/Documents/cefdemo/cef-84_4-example-master/bin/Sign/AvaloniaApp.app: code object is not signed at all
In subcomponent: /Users/mesign/Documents/cefdemo/cef-84_4-example-master/bin/Sign/AvaloniaApp.app/Contents/Frameworks/Chromium Embedded Framework.framework
mesign@MeSigndeMacBook-Air Sign % codesign --verify --verbose /Users/mesign/Documents/cefdemo/cef-84_4-example-master/bin/Sign/AvaloniaApp.app
/Users/mesign/Documents/cefdemo/cef-84_4-example-master/bin/Sign/AvaloniaApp.app: code has no resources but signature indicates they must be present

The signature commands used are as follows:
`#!/bin/basih
APP_NAME="/Users/mesign/Downloads/wzl/mesignapp/mesignapp.app"
ENTITLEMENTS="/Users/mesign/Downloads/wzl/mesignapp/MeSignAPP.entitlements"
SIGNING_IDENTITY="Developer ID Application: MeSince Technology Limited (99M3VBRE6Z)" # matches Keychain Access certificate name
find "$APP_NAME/Contents/MacOS/"|while read fname; do
if [[ -f $fname ]]; then
echo "[INFO] Signing $fname"
codesign --force --timestamp--options=runtime --entitlements "$ENTITLEMENTS" --sign "$SIGNING_IDENTITY" "$fname"
fi
done
echo "[INFO] Signing app file"
codesign --force --timestamp --options=runtime --entitlements "$ENTITLEMENTS" --sign "$SIGNING_IDENTITY" "$APP_NAME"
`
The file structure is as follows:

I have searched a lot on the Internet, I hope someone can provide clues, thank you. Personally guess which files may not meet the requirements, but which one cannot be located.
The following is the signing process and the result of verifying the signature

Has anyone encountered this situation before and urgently needs help, thank you

Try adding --deep option to codesign.

Try adding --deep option to codesign.

Thank you for your prompt reply. I added --deep and tested it several times. There was no obvious abnormality during the signing process. It just prompted "A timestamp was expected but was not found.", but the signature was verified (codesign - In the process of verify --verbose), an exception is prompted: code has no resources but signature indicates they must be present. I feel like I'm going crazy.
The following is my order, do you know how to deal with it. For help.
#!/bin/basih
APP_NAME="/Users/mesign/Downloads/wzl/mesignapp/mesignapp.app"
ENTITLEMENTS="/Users/mesign/Downloads/wzl/mesignapp/MeSignAPP.entitlements"
SIGNING_IDENTITY="Developer ID Application: MeSince Technology Limited (99M3VBRE6Z)" # matches Keychain Access certificate name
find "$APP_NAME/Contents/MacOS/"|while read fname; do
if [[ -f $fname ]]; then
echo "[INFO] Signing $fname"
codesign --force --deep  --timestamp --options=runtime --entitlements "$ENTITLEMENTS" --sign "$SIGNING_IDENTITY" "$fname"
fi
done
echo "[INFO] Signing app file"
codesign --force --deep  --timestamp --options=runtime --entitlements "$ENTITLEMENTS" --sign "$SIGNING_IDENTITY" "$APP_NAME"
Below is the exception message and related screenshots. Could you please help me see if you are free. thank you very much
[INFO] Signing app file
/Users/mesign/Downloads/wzl/mesignapp/mesignapp.app: replacing existing signature
/Users/mesign/Downloads/wzl/mesignapp/mesignapp.app: A timestamp was expected but was not found.
In subcomponent: /Users/mesign/Downloads/wzl/mesignapp/mesignapp.app/Contents/Frameworks/mesignapp Helper.app
mesign@MeSigndeMacBook-Air mesignapp %  codesign --verify --verbose   /Users/mesign/Downloads/wzl/mesignapp/mesignapp.app
/Users/mesign/Downloads/wzl/mesignapp/mesignapp.app: code has no resources but signature indicates they must be present
mesign@MeSigndeMacBook-Air mesignapp %

Your internet firewall is misconfigured (could also be ISP issue), see https://developer.apple.com/forums/thread/8187

Your internet firewall is misconfigured (could also be ISP issue), see https://developer.apple.com/forums/thread/8187

thank you,My local network is normal. It is normal to use the demo signature notarization, that is, it will not work to sign the package containing the cef file. I am not familiar with macos packages. Can the official teach us how to package this macos package that references the framework? The packaging on the official website is relatively simple.

Your internet firewall is misconfigured (could also be ISP issue), see https://developer.apple.com/forums/thread/8187

I suspect it’s the file structure problem. Tip: code has no resources but signature indicates they must be present

Hi @wuzlai , Have you found the solution for this issue? if yes, Please let me know that.
FYI, I tried to codesign and verified it and still facing code has no resources but signature indicates they must be present.

Hi @wuzlai , Have you found the solution for this issue? if yes, Please let me know that.
FYI, I tried to codesign and verified it and still facing code has no resources but signature indicates they must be present.

Hi @wuzlai , Have you found the solution for this issue? if yes, Please let me know that.
FYI, I tried to codesign and verified it and still facing code has no resources but signature indicates they must be present.

Sorry, I just saw it today, did you solve it? , I have solved this problem, if you need, you can leave an email. I will take the time to provide you with my signed script

Hi @wuzlai , Thanks for the reply. I resolved this issue.

Hi @wuzlai , Thanks for the reply. I resolved this issue.

Ok, I'm relieved then, good luck.

I'm having this issue. If you can provide some detail as to what to look for I would appreciate it.

Hi @wuzlai  I am facing same issue, can you provide the solution?

hi @XamNag,
I encounter the same issue, did you find a solution?

I am facing the same issue, can you provide a solution?


Don't warn for known handlers.

Thanks for opening a Pull Request!
Here's a handy checklist to ensure your PR goes smoothly.

[x] I signed Google's Contributor License Agreement
[x] My code conforms to Google's python style.
[x] My PR at a minimum doesn't decrease unit-test coverage (if applicable).
[x] My PR has been functionally tested.
[x] All of the unit-tests still pass.
[x] Running pylint --rcfile=pylintrc passes.

These guidelines and more can be found in our contributing guidelines.

Awesome, thanks for the quick fix!


Update weblinks for the Open Multilingual Wordnet

Hi,
This updates the links to the Open Multilingual Wordnet in the wordnet corpus reader to the new web page: https://omwn.org.
It closes #3095.

Fantastic, thanks for fixing the typo!


Support setting SCHEMA by environment variables in docker app.ini template

Gitea version (or commit ref):
Git version:
Operating system:
Database (use [x]):

[x] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gitea.io:

[ ] Yes (provide example URL)
[ ] No
[ ] Not relevant

Log gist:

Description
I'm installing GITEA using docker.
I'm using postgresql with a dedicated schema "gitea" and not public.
There is not the SCHEMA option in the app.ini and so the application canno start creating the db:
git_1        | 2020/10/05 13:39:31 ...rm/session_schema.go:25:Ping() [I] PING DATABASE postgres
git_1        | 2020/10/05 13:39:31 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT tablename FROM pg_tables WHERE schemaname = $1 AND tablename = $2 [public version] - 3.855193ms
git_1        | 2020/10/05 13:39:31 ...m.io/xorm/core/db.go:277:ExecContext() [I] [SQL] CREATE TABLE IF NOT EXISTS "version" ("id" BIGSERIAL PRIMARY KEY  NOT NULL, "version" BIGINT NULL) [] - 552.738µs
git_1        | 2020/10/05 13:39:31 ...m.io/xorm/core/db.go:154:QueryContext() [I] [SQL] SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema = $1 AND table_name = $2 AND column_name = $3 [public version id] - 10.913145ms
git_1        | 2020/10/05 13:39:31 ...m.io/xorm/core/db.go:277:ExecContext() [I] [SQL] ALTER TABLE "version" ADD "id" BIGSERIAL PRIMARY KEY  NOT NULL  [] - 2.661464ms
git_1        | 2020/10/05 13:39:31 routers/init.go:135:GlobalInit() [F] ORM engine initialization failed: migrate: sync: pq: column "id" of relation "version" already exists

If I add the schema to the ini file:
SCHEMA  = gitea

The installation of the DB proceed as expected
Please add to the template file the following:
SCHEMA = $SCHEMA

so that it will be possible to add the env var through docker

Hey, I thought the same but found out you can now set it in the docker images with a GITEA__DATABASE__SCHEMA env variable (at least if you build from master, not sure about release status). I think this issue can be closed.


Added pkg installation instructions to readmes

I've knocked around several ways of explaining this, and this seems the least bad. Any improvements to wording are very welcome.

Nits picked, silly ones and all.  I also added some instructions for installing plain old scripts and libraries.

Agreed, that error message is not terribly helpful. And you are correct, it
doesn't disappear after selecting the library. Who should I mention this to?
Allison
On Mon, Oct 17, 2016 at 3:11 PM, jao<EMAIL_ADDRESS>wrote:

@jaor requested changes on this pull request.
In best-k/readme.md
https://github.com/whizzml/examples/pull/26#pullrequestreview-4568319:

@@ -17,6 +17,9 @@ and three scripts to apply the algorithm to
which you can install individually afterwards.  When importing any of
the scripts, Best K-Means must be declared as a dependency.

+If necessary, please see the top-level readme for more detailed
+installation instructions.
you can make those references to "the top-level readme" a link with
the top-level readme

In readme.md
https://github.com/whizzml/examples/pull/26#pullrequestreview-4568319:

@@ -55,6 +55,35 @@ By convention, when the artifact is a library, the files are called
or regression) and turns it into a binary classification problem
with the two classes "normal" and "anomalous".

+## How to install WhizzML packages
+
+WhizzML packages contain both a number of scripts and the libraries they
+depend on. They can be installed in either of the following ways:
+
+### Using bigmler
+
+If you have bigmler installed in your system, just checkout the
+repository 'whizzml/examples' and, at its top level, issue the command:
+

   make compile PKG=example-name

+replacing "example-name" with the actual example name. That will
silly nit, but i'd use here
example-name
instead of quotes.
In readme.md
https://github.com/whizzml/examples/pull/26#pullrequestreview-4568319:

@@ -55,6 +55,35 @@ By convention, when the artifact is a library, the files are called
or regression) and turns it into a binary classification problem
with the two classes "normal" and "anomalous".

+## How to install WhizzML packages
i would write some kind of introduction here saying that there are three
kinds of installable whizzml artifacts in this repo, identified by the
field "kind" in their metadata: libraries, scripts and packages. The latter
are compounds of libraries and scripts, possibly with interdependencies,
meant to be installed together.
In readme.md
https://github.com/whizzml/examples/pull/26#pullrequestreview-4568319:

+replacing "example-name" with the actual example name. That will
+create all of the example's scripts and libraries for you.

+### Using the web UI
+
+- Install each of the libraries seperately, using the urls to each of

their folders. (For example, https://github.com/whizzml/examples/tree/master/clean-dataset/clean-data)

+- Install each of the scripts seperately, using the

urls to each of their folders.

+- If a script requires a library, you will get the error message

'Library ../my-library not loaded.' Load the library by clicking in
the textbox above the error message and typing the first few letters
of the library's name. Select the library, then create the script as
usual.

this is correct, but maybe we could nag the frontend guys so that the
error is bit nicer (i remember that when you select the library, the
message doesn't dissappear, no?)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/whizzml/examples/pull/26#pullrequestreview-4568319,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABkpDAFGMtSr0O-sAxMQfG8Z_2tfXndQks5q0_KYgaJpZM4KY97P
.


Supress ImportWarning messages

This commit fixes ImportWarning-s issue (#1402, #1370). As mentioned in referred issue, this is a Cython bug fixed in master and not yet available. We can't fix it in py-evm modules.
A suggested workaround was used.

I did everything I could to bypass CircelCI checks (even re-created pull request from the scratch), but it keeps an old copy of chains/base.py file and fails on all imports there... "Erroneous" line numbers correspond to empty lines in base.py.

Is it working for you when you run tox locally?

Yeah, kind of... Nevermind, I’ve found a workaround. Please review. Thanks!

FYI, I think this is the core issue: https://github.com/cython/cython/issues/1720

@rayrapetyan I'm inclined to wrap this so that it's easier for us to clean these up later.
import contextlib
import warnings

def catch_and_ignore_import_warning():
    with warnings.catch_warnings():
        warnings.simplefilter('ignore', category=ImportWarning)
        yield

This should then be usable like this:
with catch_and_ignore_import_warning():
    from eth_utils import (
        to_set,
        ValidationError,
    )

This will have to go somewhere that we can get it without triggering any of these warnings.  I'd be fine putting it somewhere like eth._warnings (eth/_warnings.py).
Thoughts?

Well it looks reasonable for a permanent fix, but for a temp fix and just 4 places introducing a separate file on a root level... looks an overkill, but up to you, I can do that.

After syncing master there are 7 places to fix, so looks reasonable to save one line in each place, committed with _warnings.py file.

Well it looks reasonable for a permanent fix, but for a temp fix and just 4 places introducing a separate file on a root level... looks an overkill, but up to you, I can do that.

DRY: if we found that there was an extra piece of logic needed for this to work right a week from now we might not remember to update all of the call sites.
In a similar vein it will be easier to find all of the locations and clean them up when the core issue is fixed.

:+1: Will give this some final review on Monday.


FYI: Just published a crate using CuPi!

Just wanted to leave a note to let you know that I published https://crates.io/crates/cupi_shift last night which uses your excellent lib.  Thanks to you I'll now have a Rust-powered holiday lights display =)

Wow, great!


FIXIT: Karma good, failure bad

#202 && #185  broke our unit test scripts https://my-tools.doit.wisc.edu/jenkins/view/Projects/job/angularjs-portal-testing/103/console
This should fix it.

:+1:

:+1:


resource scheduler: implement event propagation

Since the scheduler does not receive / calculate increments, it needs to propagate events on the fly. When a task finishes, if resource.send_event=True AND there was an effective change, its dependencies can be added to the scheduled work. Implementation may need to acquire scheduler lock.

This slide shows that we expand the increment eagerly following send_event=True edges. The handler itself decides what to respond to.


[WIP] PIVX v5 network upgrade

Upgrading PIVX to support v5 network upgrade.

please fix travis failure, and add a unit test (like the ones other altcoins have) that excercises the code

done


.flat file details

Hi,
I am working with visuAlign as a part of my pipeline for registration (and segmentation at the next step), I want to work with the .flat file but not sure how.
Can you please detail about:

How to read this file (.flat per slice)?
What it contains in terms of data structure?

Thanks in advance,
Sivan Schwartz

Hi, https://www.nitrc.org/plugins/mwiki/index.php?title=visualign:Flat_file_format has some description of the format, coupled with some Python code


Tendermint Tx event emitter sometimes does not send the full data of Txs, only txHash is sent (Cosmologger has issues with it)

@mojtaba-esk can you provide context so @edjroz can review it

This is probably the optimal solution since PubSub errors are bound to happen, the tendermint CLI is known for having issues with events.


HTML minification

Hi. First of all thanks for a great plugin.
Is there a way to minify the prerendered html using html-minifier?
P.S. html-minifier depends on other modules that don't play well with webpack compilation.
Minification attempt:
minify(ReactDOMServer.renderToString(<RoutingContext {...renderProps} />), locals.minify)

...results in:
ERROR in ../~/uglify-js/tools/node.js
Module not found: Error: Cannot resolve module 'fs' in $PROJECT_DIR/node_modules/uglify-js/tools
 @ ../~/uglify-js/tools/node.js 2:9-22

ERROR in ../~/clean-css/lib/clean.js
Module not found: Error: Cannot resolve module 'fs' in $PROJECT_DIR/node_modules/clean-css/lib
 @ ../~/clean-css/lib/clean.js 29:9-22

ERROR in ../~/clean-css/lib/imports/inliner.js
Module not found: Error: Cannot resolve module 'fs' in $PROJECT_DIR/node_modules/clean-css/lib/imports
 @ ../~/clean-css/lib/imports/inliner.js 1:9-22

ERROR in ../~/clean-css/lib/utils/input-source-map-tracker.js
Module not found: Error: Cannot resolve module 'fs' in $PROJECT_DIR/node_modules/clean-css/lib/utils
 @ ../~/clean-css/lib/utils/input-source-map-tracker.js 3:9-22

I solved this by setting target: 'node' in my webpack config. This solves the 'fs' errors.
However in the case of html-minifier you'll get a new error because of the UglifyJS dependency. Uglify has some funky require going on which breaks when the script is run by the static site generator.
Since I didn't need this functionality, added a hacky solution to my webpack config: I added an alias for 'uglify-js' which would resolve to some dummy file.


Dates Concept Exercise (Library Fees)

@junedev, I just wanted to ensure with you if the story in .docs/instructions.md file is okay. If it is, I will move forward writing the spec, test and other docs files

@junedev , @SleeplessByte just a reminder

@JaPatGitHub Sorry for the delay, we were both busy. I have time again in the coming days. I will respond to your question as soon as possible.

@JaPatGitHub Great work on the story/tasks! With the last task I am not sure whether it will add anything really related to handling dates in the end. If not, maybe you can combine 4 and 5 into one task where the students needs to check for Monday and calculate the late fee so the story has a nice ending.
One more general comment regarding the instructions: After the header for an individual task and the story sentence, there should be a sentence that is very clear on what function to write and what inputs and outputs it has. See https://github.com/exercism/javascript/blob/eedba9962c36ef22a86ab04733845fe2481653b9/exercises/concept/bird-watcher/.docs/instructions.md?plain=1#L17 for an example of what I mean.
This is also described in the docs for concept exercises: https://exercism.org/docs/building/tracks/concept-exercises#h-file-docs-instructions-md

@JaPatGitHub Are you still working on this?

@junedev , should I close this PR? Or do I just make the modifications you previously suggested so that who works next on this can use this story...

@JaPatGitHub yes, let's not throwaway your hard work and author credit. If you could make those suggestions that'd be great. If not, that's also okay, then we stash it somewhere so the next person can continue.


Have you considered dropping the "e"?

This repo would get way more traction with a name like "Thrustr". You could even capitalize the "r" as a nod to Rust. Something like "ThrustR"?
I'll submit a PR.

Can you explain why you think it would get more traction? I'd be curious to know!

I'll include tests.


Provide full, readable and editable "condition" element directly in component and file element

In existing pdsc, the dependencies of components are specified through "condition" mechanism. On component level, just a condition refer id is provided, the detailed definitions of the condition are defined in "conditions" element. If user needs to know details of one component dependency, he needs to search up to down, down to up, many times in the "conditions" to figure out the whole picture which is quite inconvenient. When he/she tries to update it, sometimes it is possible. Here is snap of existing NXP DFP conditions:

Suggested way to improve:

Generally, put full picture of condition into component
component dependencies shall be explicitly specified
device, board and other hardware related dependency can still refer condition id.
In this way, users can directly get full picture of the dependencies at the first glance with the most addressed component dependencies and without making the conditions too long and messy with too many hardware data.
Here is one simple example:

The same way applies to "files" element.
We believe that an human easily readable and editable pdsc files can better populate OCP solution especially in directly github repo daily development usage (not ready packs way)
GitHub repository as pack source

The introduction of individual “conditions” element or something like that can be implemented in a backward compatible way.
Here is one NXP manifest dependency example:

NXP manifest schema: sdk_manifest_v3.14.txt
See line 1661:

Moving component dependencies directly into component description body is relatively easy to implement, however that will break backward and forward compatibility for several tools, in particular :
uVision, CMSIS-Toolbox, packchk: all share the same C++ RTE Model
Arm DS ,  IAR Embedded Workbench (Java/Eclipse RTE Model)
Keil MDK (Visual Code)

Readability can be improved by applying the following rules when constructing conditions:

Use component ID as component condition
Separate different types and domains of condition expressions into dedicated sub-conditions
Avoid further nested conditions

Here is an example of readable conditions:
<component Cclass="Device" Cgroup="SDK Drivers" CSub="common" Cversion="2.4.0" condition="Device.SDK_Drivers.common">
 <!-- component body -->
</component>
<!-- ... -->
<conditions>
  <condition id="Device.SDK_Drivers.common">
    <description> Dedicated condition for Device.SDK Drivers.common component</description>
    <require condition="Device.SDK_Drivers.common_Device"/>
    <require condition="Device.SDK_Drivers.common_Toolchain"/>
    <!-- component dependencies -->
    <require condition="Device.SDK_Drivers.common_Dependencies_Require"/>
    <require condition="Device.SDK_Drivers.common_Dependencies_Accept"/>
    <require condition="Device.SDK_Drivers.common_Dependencies_Deny"/>
  </condition>

  <condition id="Device.SDK_Drivers.common_Device">
    <description> Optional device condition to enable Device.SDK Drivers.common component</description>
    <require Dname="MIMXRT1064*"/>
  </condition>
  <condition id="Device.SDK_Drivers.common_Toolchain">
    <description> Toolchain condition to enable Device.SDK Drivers.common component or its files </description>
    <accept Tcompiler="ARM"/>
    <accept Tcompiler="GCC"/>
  </condition>
  <condition id="Device.SDK_Drivers.common_Dependencies_Require">
    <description> Required dependencies by Device.SDK Drivers.common component </description>
    <require Class="CMSIS" Cgroup="Core"/>
    <require Class="Device" Cgroup="SDK Drivers" Csub="clock"/>
  </condition>
  <condition id="Device.SDK_Drivers.common_Dependencies_accept">
    <description> Accepted dependencies by Device.SDK Drivers.common component </description>
    <accept Class="Device" Cgroup="SDK Utilities" Csub="assert"/>
    <accept Class="Device" Cgroup="SDK Utilities" Csub="assert_lite"/>
  </condition>
  <condition id="Device.SDK_Drivers.common_Dependencies_deny">
    <description> Denied dependencies by Device.SDK Drivers.common component</description>
    <deny Class="CMSIS" Cgroup="SDK Drivers" CSub="another_common"/>
  </condition>
</conditions>

Thanks @edriouk, your suggestions indeed improve the readability to a certain extent.
About op3, honestly, we cannot guarantee about that.


harfbuzz-icu: adopt, bump to 4.2.1

#864

manifest
/var/db/kiss/installed/harfbuzz-icu/version
/var/db/kiss/installed/harfbuzz-icu/sources
/var/db/kiss/installed/harfbuzz-icu/manifest
/var/db/kiss/installed/harfbuzz-icu/depends
/var/db/kiss/installed/harfbuzz-icu/checksums
/var/db/kiss/installed/harfbuzz-icu/build
/var/db/kiss/installed/harfbuzz-icu/
/var/db/kiss/installed/
/var/db/kiss/choices/
/var/db/kiss/
/var/db/
/var/
/usr/lib/pkgconfig/harfbuzz-icu.pc
/usr/lib/pkgconfig/
/usr/lib/libharfbuzz-icu.so.0.40201.0
/usr/lib/libharfbuzz-icu.so.0
/usr/lib/libharfbuzz-icu.so
/usr/lib/
/usr/include/harfbuzz/hb-icu.h
/usr/include/harfbuzz/
/usr/include/
/usr/

New package

[x] Latest upstream version.
[x] I agree to maintain this package.
[x] I agree to notify the @kiss-community maintainers if I can no longer maintain this package.

Actually, I realise that I don't need this package.


[Feature] - Add customFetcher option for the client-side

This is not a priority, but it would be nice to be possible to use custom fetch functions instead of better-fetch.
I'm not sure if this is possible on the structural level but I find myself in a situation where I need the client-side library to talk to the server-side through a different fetcher because the backend where better-auth lives is not accessible on the public internet.
I have a Cloudflare Worker with better-auth that is only accessible through Service Bindings from other Workers (or Pages Functions) for security reasons.
It would be nice if instead of providing the client side a baseUrl I could provide a customFetcher instead, since I could use the env.MY_SERVICE.fetch() handler and the routing inside the backend will just map to all the API nicely, allowing me to use the client-side handler without any hustle.

you can pass custom fetcher as
const authClient = createAuthClient({
    fetchOptions: {
        customFetchImpl: //pass custom fetch implementation
   }
})

Thanks for the quick answer @Bekacru!
I've seen that key before while looking at the docs for both better-auth and better-fetch but it seems typescript doesn't like it or I'm the one not implementing it right:
import { createAuthClient } from "better-auth/client";

type AuthService = import("@cloudflare/workers-types").Service;
type Env = {
  AUTH_SERVICE: AuthService;
};

const { fetch } = env.AUTH_SERVICE as AuthService;
const authClient = createAuthClient({
  fetchOptions: {
    customFetchImpl: fetch, // Type Error
  },
});

The Type error looks like:
Type '(input: URL | RequestInfo<unknown, CfProperties<unknown>>, init?: RequestInit<CfProperties<unknown>> | undefined) => Promise<Response>' is not assignable to type 'FetchEsque'.
  Types of parameters 'input' and 'input' are incompatible.
    Type 'string | URL | Request' is not assignable to type 'URL | RequestInfo<unknown, CfProperties<unknown>>'.
      Type 'Request' is not assignable to type 'URL | RequestInfo<unknown, CfProperties<unknown>>'.
        Type 'Request' is missing the following properties from type 'Request<unknown, CfProperties<unknown>>': fetcher, bytes

There is a signature mismatch between better-auth and cloudflare types
type FetchEsque = (input: string | URL | globalThis.Request, init?: RequestInit) => Promise<Response>; // better-auth
type fetch = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>; // cloudflare-workers-types

I haven't tried ignoring typescript yet, but I want to be sure I'm not making any mistake in using the customFetchImpl before.
Is it the right way to assign the custom fetcher or am I doing it wrong?

yeah I don't think cf fetch matches one to one with the default fetch interface. try to ignore it and see if it works if not try to pass the arguments explicitly.

I tried ignoring typescript errors but nothing unfortunately.
Some more details on how to usecustomFetchImpl would be much appreciated.

customFetchImpl accepts standard web fetch implementation. Meaning it passes two arguments to the implementation url and requestInit which contains the body, headers....so basically you can explicitly call the cf fetch impl by passing the url and the request init object as cf fetch expects it.

Update:
I did make it work eventually but the type errors are still there. this is the current setup:
const authClient = createAuthClient({
  fetchOptions: {
    baseURL: "<your-base-url-with-path-if-any>", // Although you're not gonna call it directly, you still need it for routing purposes inside the Service Binding Worker
    customFetchImpl: (input: URL, options: RequestInit) =>
      AUTH_SERVICE.fetch(new URL(input), options), // Isolated type error to options only
  },
});

The type error now only references the body mismatch between better-fetch and cloudflare workers fetch
Argument of type 'RequestInit' is not assignable to parameter of type 'RequestInit<CfProperties<unknown>>'.
  Types of property 'body' are incompatible.

I noticed that the authClient doesn't have an explicit typescript type to assign, or I don't know what that should be.

@serban-mihai
try this?
    fetchOptions: {
        customFetchImpl: (input: string | URL | globalThis.Request, init?: RequestInit) => {
            AUTH_SERVICE.fetch(new URL(input), {...options}),
        }
    },

Hey, thanks for the tip @daveycodez!
Unfortunatelly while testing I've found another potential blocker for such an approach:
It looks like the browser is expecting an HTTP request in order to correctly set auth cookies, if we call the auth service from bindings then we get back the session and user values but the browser isn't setting any cookie, aka no further actions against the API from the client-side are allowed.
I didn't have time to debut this more in-depth but I'm wondering if there's a way to set the cookie once retrieved through Service Bindings without browsers complaining, the nightmare part was to deal with CORS, this might require some heavy testing before assuring it can work, but if it can, that would be a killer for performance/costs over Cloudflare deployments.
Hope to get to it in the future, for now, I've gone back to the standard requests over HTTP.

Are you receiving the set-cookie headers from that response? I haven't used service bindings but this might help
    trustedOrigins: ["http://localhost:3000"],
    advanced: {
        defaultCookieAttributes: {
            sameSite: "none",
            secure: true
        }
    },

While testing this and when I opened the issue I was using Astro with an Hono backend where the better-auth server was deployed, and I had already the defaultCookieAttributes set, but on this level, many things get to influence the behavior of the app, browsers, CORS policy, domains/subdomain where the server and the client run and so on...
I'm now trying with a SolidStart-only solution, if you use Next.js I assume you might be deploying over Vercel, that would be another overall environment, Cloudflare has some more caveats to run around.
Thanks for reaching up though, I appreciate it!
I'll keep this updated if I find a viable solution.


[UI] the check box at Properties tab is not visible (selected color blue) icon color also blue

A clear and concise description of what the problem is
I'm always frustrated when cannot see the icon state, it is checked or not. Because the colors are same.
The check box not visible (selected color is blue) icon color also blue.
Solution
Change icon color to black.
Additional context
Screenshots about the problem: https://imgur.com/a/oYatjfP
Env: Linux, Ubuntu 18, MariaDB

Alternative solution: change color of selection to more transparent, not solid blue color. Thank you

Thank you for the report.

Similar to #9327

Fixed in #9327

ubuntu - ok

Fixed.
Now we use textual representation of checkboxes (unicode chars) everywhere in UI. Thus they can be styled/colored according to the current OS/theme.

Could you please disable popup for checkboxes in Properties?

Fixed

Fixed in Column properties

Thank you very much :D :+1:


pip install clang: error: unknown argument: ‘-fstack-protector-strong’

Hello!
Every time I install Sentry, I run into a new problem.
Now I need install Sentry service on the Centos 7.4 OS.
I run next commands:
# yum -y update
# reboot
# yum -y install python python2-pip python-virtualenv postgresql redis python python2-pip python-virtualenv postgresql gcc gcc-c++ libjpeg-turbo libffi libxml2 libxslt libyaml libjpeg-turbo-devel zlib-devel postgresql-devel libffi-devel numpy python34-numpy clang libyaml-devel
# systemctl start redis
# systemctl enable redis
# pip install --upgrade pip
# pip install redis==2.10.5
# mkdir -p /sentry/sentry-venv
# virtualenv /sentry/sentry-venv/
# source /sentry/sentry-venv/bin/activate
# pip install -U sentry
And I get next errors:
...
`
Downloading/unpacking libsourcemap>=0.8.2,<0.9.0 (from sentry)
Downloading libsourcemap-0.8.2.zip (765kB): 765kB downloaded
Saved ./sentry-inst/libsourcemap-0.8.2.zip
Running setuppy egg_info for package libsourcemap
clang: error: unknown argument: '-fstack-protector-strong’
clang: error: unknown argument: '-fstack-protector-strong’
clang: error: unknown argument: '-fstack-protector-strong’
clang: error: unknown argument: ‘-fstack-protector-strong’

No working compiler found, or bogus compiler options passed to
the compiler from Python’s standard “distutils” module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setuppy of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see
Otherwise, see or
the IRC channel #python on ircfreenodenet.)
Traceback (most recent call last):
File “”, line 16, in
File “/sentry/sentry-venv/build/libsourcemap/setup.py”, line 117, in
'Topic :: Software Development :: Libraries :: Python Modules’
File “/usr/lib64/python2.7/distutils/core.py”, line 112, in setup
_setup_distribution = dist = klass(attrs)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 265, in init
self.fetch_build_eggs(attrs.pop(‘setup_requires’))
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 289, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 618, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 862, in best_match
return self.obtain(req, installer) # try and download/install
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 874, in obtain
return installer(requirement)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 339, in fetch_build_egg
return cmd.easy_install(req)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 623, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 653, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 849, in install_eggs
return self.build_and_install(setup_script, setup_base)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 1130, in build_and_install
self.run_setup(setup_script, setup_base, args)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 1118, in run_setup
raise DistutilsError(“Setup script exited with %s” % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1
Complete output from command python setuppy egg_info:
clang: error: unknown argument: ‘-fstack-protector-strong’

clang: error: unknown argument: ‘-fstack-protector-strong’

clang: error: unknown argument: ‘-fstack-protector-strong’

clang: error: unknown argument: ‘-fstack-protector-strong’

No working compiler found, or bogus compiler options passed to
the compiler from Python’s standard “distutils” module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setuppy of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see
Otherwise, see or
the IRC channel #python on ircfreenodenet.)
Traceback (most recent call last):
File “”, line 16, in
File “/sentry/sentry-venv/build/libsourcemap/setup.py”, line 117, in
‘Topic :: Software Development :: Libraries :: Python Modules’
File “/usr/lib64/python2.7/distutils/core.py”, line 112, in setup
_setup_distribution = dist = klass(attrs)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 265, in init
self.fetch_build_eggs(attrs.pop(‘setup_requires’))
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 289, in fetch_build_eggs
parse_requirements(requires), installer=self.fetch_build_egg
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 618, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 862, in best_match
return self.obtain(req, installer) # try and download/install
File “/sentry/sentry-venv/lib/python2.7/site-packages/pkg_resources.py”, line 874, in obtain
return installer(requirement)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/dist.py”, line 339, in fetch_build_egg
return cmd.easy_install(req)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 623, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 653, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 849, in install_eggs
return self.build_and_install(setup_script, setup_base)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 1130, in build_and_install
self.run_setup(setup_script, setup_base, args)
File “/sentry/sentry-venv/lib/python2.7/site-packages/setuptools/command/easy_install.py”, line 1118, in run_setup
raise DistutilsError(“Setup script exited with %s” % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1
Cleaning up…
Command python setuppy egg_info failed with error code 1 in /sentry/sentry-venv/build/libsourcemap

`
Exactly the same problem was 2 months ago. I thought you would fix it, but the description of this problem did not appear even in Google.
Developers clang disable option -fstack-protector-strong and what I can now for install Sentry - I no idea.
How I can fix this problem now and continue install?

The problem here is you’re not getting a wheel for libsourcemap. This means you’re running on some architecture that we’re not building a binary distribution for. Otherwise, you need a Rust compiler to compile from source.
It’s also worth noting that we don’t support running Sentry on CentOS.

This can also happen on ancient pip versions which given you are on centos is not unlikely.

I have PIP and CentOS of the last versions. This is very strangely, what libsourcemap do not support popularly tuned OS.
If I try install libsourcemap from source - I get follow:
# yum -y install python python2-pip python-virtualenv postgresql redis python python2-pip python-virtualenv postgresql gcc gcc-c++ libjpeg-turbo libffi libxml2 libxslt libyaml libjpeg-turbo-devel  zlib-devel postgresql-devel libffi-devel numpy python34-numpy clang libyaml-devel git
# systemctl start redis
# systemctl enable redis
# mkdir  $HOME/libsourcemap
# git clone https://github.com/getsentry/libsourcemap.git $HOME/libsourcemap
# cd $HOME/libsourcemap
# make
`# make
pip install --verbose --editable .
Obtaining file:///root/libsourcemap
Running setup.py (path:/root/libsourcemap/setup.py) egg_info for package from file:///root/libsourcemap
Running command python setup.py egg_info
clang: error: unknown argument: '-fstack-protector-strong'
clang: error: unknown argument: '-fstack-protector-strong'
clang: error: unknown argument: '-fstack-protector-strong'
clang: error: unknown argument: '-fstack-protector-strong'
    No working compiler found, or bogus compiler options passed to
    the compiler from Python's standard "distutils" module.  See
    the error messages above.  Likely, the problem is not related
    to CFFI but generic to the setup.py of any Python package that
    tries to compile C code.  (Hints: on OS/X 10.8, for errors about
    -mno-fused-madd see http://stackoverflow.com/questions/22313407/
    Otherwise, see https://wiki.python.org/moin/CompLangPython or
    the IRC channel #python on irc.freenode.net.)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/root/libsourcemap/setup.py", line 117, in <module>
    'Topic :: Software Development :: Libraries :: Python Modules'
  File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 265, in __init__
    self.fetch_build_eggs(attrs.pop('setup_requires'))
  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 289, in fetch_build_eggs
    parse_requirements(requires), installer=self.fetch_build_egg
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 618, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 862, in best_match
    return self.obtain(req, installer) # try and download/install
  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 874, in obtain
    return installer(requirement)
  File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 339, in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 623, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 653, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 849, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1130, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1118, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with 1

Cleaning up...
Command "python setup.py egg_info" failed with error code 1 in /root/libsourcemap/
Exception information:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 324, in run
requirement_set.prepare_files(finder)
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 518, in _prepare_file
abstract_dist.prep_for_dist()
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 129, in prep_for_dist
self.req_to_install.run_egg_info()
File "/usr/lib/python2.7/site-packages/pip/req/req_install.py", line 439, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/lib/python2.7/site-packages/pip/utils/init.py", line 707, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command "python setup.py egg_info" failed with error code 1 in /root/libsourcemap/
make: *** [develop] Ошибка 1
`
Same mistake.
In the repository Centos 7 is contained clang 3.4.2, but option fstack-protector-strong add on the 3.8 version.
Now I try update clang from source

As mentioned, you are also going to need a Rust compiler since this is written in Rust.

What happens if you download the wheel and pip install it? Because installing from source is unlikely going to result in an enjoyable experience since we compile a chunk of llvm in this library.

What is a "wheel"?

One of the files here: https://pypi.python.org/pypi/libsourcemap
Download the one for your linux and then try to pip install it manually. It most likely gives you an error that tells you why it thinks it does not match.

I install Sentry.
I do not installed whl-file libsourcemap. Now I try upgrade  virtualenv before install sentry via pip.
# pip install --upgrade pip
# pip install --upgrade virtualenv
# mkdir -p /sentry/sentry-venv
# virtualenv /sentry/sentry-venv/
# source /sentry/sentry-venv/bin/activate
# pip install -U sentry
And Sentry setup successed.
Thank for you Help! Maybe this commads helping everyone too (in google do not solved this problem).

It’s worth noting that by doing what you just did, you also updated to a newer version of Sentry which now doesn’t use libsourcemap.


fix: logout redirecting to profile in dev

This PR resolves PHIRE-1308
Description

Our dev tool to reload the nav state was not clearing the state on logout, this does that.
Also adds missed Podfile.lock update from earlier pr.
Before
https://artsy.slack.com/archives/C02BAQ5K7/p1730462253415409
After
https://github.com/user-attachments/assets/172724bd-c986-4c20-ae28-36d54629161b
PR Checklist

[ ] I have tested my changes on iOS and Android.
[x] I hid my changes behind a feature flag, or they don't need one.
[x] I have included screenshots or videos, or I have not changed the UI.
[x] I have added tests, or my changes don't require any.
[x] I added an app state migration, or my changes do not require one.
[x] I have documented any follow-up work that this PR will require, or it does not require any.
[x] I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

[ ] I would like at least one of the reviewers to run this PR on the simulator or device.

Changelog updates
Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

fix logout redirecting to profile in dev

Need help with something? Have a look at our docs, or get in touch with us.

This PR contains the following changes:

Dev changes (fix logout redirecting to profile in dev - brainbicycle)

  Generated by :no_entry_sign: dangerJS against 09ce59db1bb43e23bcafd5f3f0ae4c4dff4876d6

I've only observed this on Android, so I was expecting an Android-specific solution. Was it happening on iOS as well?
How were you able to determine that clearNavState only needed to be cleared for dev environments?

On 1. I would expect them both to be affected but I can double check, in either case we don't want to restore nav after logout on either platform so i don't think we need a platform specific solution.
For 2. I pulled down the beta from firebase and was unable to reproduce, running from main I was able to, the bug is tied to the useReloadedDevNavigationState hook which is only used in dev.

I've only observed this on Android, so I was expecting an Android-specific solution. Was it happening on iOS as well?
How were you able to determine that clearNavState only needed to be cleared for dev environments?

It doesn't affect iOS because we are clearing AsyncStorage via a native module: https://github.com/artsy/eigen/blob/862b469544a3982167f3e219eb9844ca1b726888/ios/Artsy/Networking/API_Modules/ARUserManager.m#L187

going to merge this one, let me know if any concerns!

@brainbicycle sorry for the late response. Thanks for explaining how you debugged this. All good from my side 👍


UX Research - Research Plan and Study Guide for User Testing in PDF Tron

Title of ticket: UX Research - Research Plan and Study Guide for User Testing in PDF Tron
Description
Create a research plan and study guide for our first round of user research for having IAO users in PDF Tron. The goal of this will be to help reafrim the designs we have started to work on as well as help us priortize what we expect to be in the MVP of the redaction APP. We want to engage users in the app to help drive what these changes.
Dependencies
Are there any dependencies?
DOD

[x] Create Research Plan
[x] Share Research Plan for approval
[x] Create Study Guide
[x] Share Study Guide for approval
[x] Create Research Session Notes
[x] Working with @m-prodan and @liseandtea to help with recruitment

@lmullane @m-prodan @liseandtea @KyEggleston Links to documents reviewed yesterday:
Research Plan: https://bcgov.sharepoint.com/:w:/t/03521/EcEJ5kJat05OnWNS1ZsvNRcBhJxxA1tnERQHpQGvJseddw?e=4peX7n
Study Guide: https://bcgov.sharepoint.com/:w:/t/03521/EflT9QWQPBdOkeFiDnaDkjgBPXdCsRwTa51CCu_pIisBdw?e=jMEjGk


Running flutter build ios repeatedly never uses assemble cache

Running flutter build ios always shows:
[ +100 ms] aot_assembly_release: Complete
[   +7 ms] invalidated build due to missing files: /Users/m/Projects/test_pod_build_time/.dart_tool/flutter_build/af5a0e679ea53f3f76835a83d0ee9bb5/App

That file is indeed missing, I think it should be flutter_build/af5a0e679ea53f3f76835a83d0ee9bb5/App.framework/App?

In that directory I have:
total 37336
drwxr-xr-x  13 m  primarygroup       416 Apr 30 14:20 .
drwxr-xr-x   4 m  primarygroup       128 Apr 30 14:46 ..
-rw-r--r--   1 m  primarygroup     76843 Apr 30 14:54 .filecache
drwxr-xr-x   3 m  primarygroup        96 Apr 30 14:54 App.framework
-rw-r--r--   1 m  primarygroup       482 Apr 30 14:54 aot_assembly_release.stamp
-rw-r--r--   1 m  primarygroup  17945560 Apr 30 14:20 app.dill
drwxr-xr-x   5 m  primarygroup       160 Apr 30 14:20 arm64
drwxr-xr-x   5 m  primarygroup       160 Apr 30 14:20 armv7
-rw-r--r--   1 m  primarygroup      2316 Apr 30 14:54 flutter_assets.d
-rw-r--r--   1 m  primarygroup     44378 Apr 30 14:20 kernel_snapshot.d
-rw-r--r--   1 m  primarygroup     45778 Apr 30 14:20 kernel_snapshot.stamp
-rw-r--r--   1 m  primarygroup       716 Apr 30 14:54 outputs.json
-rw-r--r--   1 m  primarygroup      2947 Apr 30 14:54 release_ios_bundle_flutter_assets.stamp

All of the build cached-ness need to have integration tests

It uses it correctly for kernel, but we're unnecessarily running gen_snapshot and rebuilding the bundle. The former is due to a misconfigured rule, the later is due to an old rm -rf in xcode_backend.sh


[docs](Mongo DB): Replication and Sharding in MongoDB

📑 Description
In this PR, added the content for Replication and Sharding in MongoDB. Here following concepts are covered:

Introduction to Replication and Sharding in MongoDB.
Configuring Replica Sets.
Failover and Recovery with Replication.
Horizontal Scaling using Sharding.
Shard Keys and Balancing Data Across Shards.

✅ Checklist

[x] I have made corresponding changes that follow the style of this project.

🔗 Related Issue(s)

Fixes #27
🚀 Types of changes

[x] Documentation update (docs for this project)

📸 Screenshots (if applicable)

💬 Additional Comments (if applicable)

@coder-pink Please follow naming convention for PR

@coder-pink Please follow naming convention for PR

@coder-pink Done. Can you review it.

@coder-pink Please follow naming convention for PR

@coder-pink Done. Can you review it?

Sure, but i observed one thing that is you have not made use of astro component for code snippets. Please make use of it.
Under mongoDB there is a codes folder inside that create a folder with the name of the issue and inside that create txt files to store code snippets.
for example: src/content/docs/mongodb/codes/indexingStratagies/indexingStratagies.txt
same way create for your code snippets with the following folder name:
src/content/docs/mongodb/codes/replication-and-sharding/indexingStratagies.txt
Please note that inside the replication-and-sharding you can have multiple files multiple code snippets just import these files into your mdx file and use them in astro component code.

Hey @coder-pink ,
Please update & resolve the above review points so that we can merge this PR at the earliest.

Hey @coder-pink , Please update & resolve the above review points so that we can merge this PR at the earliest.

@rakshixh I have resolved it


Build fail on msys2

Following the guide, make fails.
$ make
g++ -std=c++11 -Wall -march=native -O3 -ffp-contract=fast -flto -DNDEBUG -fopenmp -DOPTIM_ENABLE_ARMA_WRAPPERS -DARMA_NO_DEBUG -I/mingw64/include -I./include src/line_search/more_thuente.cpp -c -o src/line_search/more_thuente.o
In file included from /mingw64/include/armadillo:68,
                 from ./include/misc/optim_options.hpp:78,
                 from ./include/optim.hpp:24,
                 from src/line_search/more_thuente.cpp:27:
/mingw64/include/armadillo_bits/compiler_setup.hpp:81:30: fatal error: C:/msys64/mingw64/include/hdf5.h: No such file or directory
   81 | #define ARMA_INCFILE_WRAP(x) <x>
      |                              ^
compilation terminated.
make: *** [Makefile:54: src/line_search/more_thuente.o] Error 1

Seems to be the same as https://github.com/msys2/MINGW-packages/issues/6715
All packages up to date on msys.

Closing as I don't support Windows-based builds for this library, but the error message you provided indicates that this is an issue with your msys2 setup.


Add a new theme

We have been confined to Minimalist, Night, and Winter for too long! We need more options!

Changes also made for this in 0f17c56e3effde66493991d75352d21dc9a01bd3.


Access to Link for checkpoint

Hi, thank you for sharing such a great work. I want to reproduce the results about the models using the checkpoint link. However, The link needs a permission for the access. So Please allow access to checkpoint link.

Sorry for the late reply, I have opened up access to everyone.

thank you


[fetch] Add support for Helm v3

We would love to see support for Helm v3 charts. The main feature we are missing is the support for a separate crds folder, apart from the usual templates folder. Documentation for this is available here. One example chart that uses this feature is Dynatrace's dynatrace-oneagent-controller.
Tagging my pair @Haegi

One other consideration for a helm v3 fetch stage is should we allow users to pull charts from OCI registries via the helm chart pull command

Done as part of https://github.com/carvel-dev/kapp-controller/issues/53


[Feature Request] ESM build that can be loaded from CDNs

Context

[X] This issue is not a bug report. (please use a different template for reporting a bug)
[X] This issue is not a duplicate of an existing issue. (please use the search to find existing issues)

Description
This is a suggestion to provide an ESM build that can be loaded from CDN.
Currently, the recommended way is to build the editor with a bundler and host it with the page that needs to load it. In addition it requires the user to configure the MonacoEnvironment.getWorkerUrl
This is a bit cumbersome and exposes implementation details that the end-user does not need to be concerned with.
The other alternative is to use the loader, that loads an AMD version, which I think should no longer be the recommended way, with ESM being used across the whole eco-system. In addition, it is prone to conflicts with other libraries and getting such errors:
Error: Can only have one anonymous define call per script file
My suggestion is something like this:

Try in LiveCodes playground
This works by using a simple workaround that allows using web workers from a CDN.
I believe this can make using Monaco editor much simpler.
If you think this way is acceptable, I can start a PR to either provide such build that can just be published with the npm package or at least add docs for using something like this.
Please see the example repo:
https://github.com/hatemhosny/monaco-editor-esm-cdn
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response

This is not a big deal to run it through esm.sh
import * as Monaco from 'https://esm.sh/monaco-editor@0.50.0?bundle';
import EditorWorker from 'https://esm.sh/monaco-editor@0.50.0/esm/vs/editor/editor.worker?worker';
import JsonWorker from 'https://esm.sh/monaco-editor@0.50.0/esm/vs/language/json/json.worker?worker';
import CssWorker from 'https://esm.sh/monaco-editor@0.50.0/esm/vs/language/css/css.worker?worker';
import HtmlWorker from 'https://esm.sh/monaco-editor@0.50.0/esm/vs/language/html/html.worker?worker';
import TSWorker from 'https://esm.sh/monaco-editor@0.50.0/esm/vs/language/typescript/ts.worker?worker';

async function loadCSS() {
    const css = await fetch(`https://esm.sh/monaco-editor@0.50.0?css`).then(response => response.text());
    const style = document.createElement('style');

    style.id = 'monaco-css';
    style.innerHTML = css;

    document.getElementById('monaco-css')?.remove();
    document.head.appendChild(style);
}

self.monaco = monaco;
self.MonacoEnvironment = {
    getWorker(_, label) {
        if (label === 'json') {
            return new JsonWorker();
        }

        if (label === 'css' || label === 'scss' || label === 'less') {
            return new CssWorker();
        }

        if (label === 'html') {
            return new HtmlWorker();
        }

        if (label === 'typescript' || label === 'javascript') {
            return TSWorker();
        }

        return new EditorWorker();
    }
};

loadCSS();

monaco.editor.create(document.getElementById("container"), {
  value: `function x() {\n\tconsole.log("Hello world!");\n}`,
  language: "javascript",
});

But yes, it's really strange that Microsoft recommends using that silly require loader instead of ESM.


how to put pins on a map in the game?

how to put pins on a map in the game?

You can use https://valheim.thunderstore.io/package/shudnal/AutoPinSigns/ for more immersive way.
Maybe there are any solutions I have no idea about.


"running bonnet_model_compiler.par on "20180408-102900.pb" (ubuntu18.04 facenet)

Hi!
I'm try to deployed facenet  model in VisionKit!and I'm in trouble!
I run the compiler using:
./bonnet_model_compiler.par --frozen_graph_path="./20180408-102900.pb" --input_tensor_name="input" --output_tensor_names="embeddings" --input_tensor_size=160 --output_graph_path="./facenet.binarypro" --debug
but it always returns an "unexpected error":
2018-06-15 10:56:46.200831: I external/org_tensorflow/tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc:39] Before Removing unused ops: 3578 operators, 5806 arrays (0 quantized)
2018-06-15 10:56:46.401776: I external/org_tensorflow/tensorflow/contrib/lite/toco/graph_transformations/graph_transformations.cc:39] Before general graph transformations: 3578 operators, 5806 arrays (0 quantized)
2018-06-15 10:56:46.403070: F external/org_tensorflow/tensorflow/contrib/lite/toco/graph_transformations/resolve_batch_normalization.cc:42] Check failed: IsConstantParameterArray(*model, bn_op->inputs[1]) && IsConstantParameterArray(*model, bn_op->inputs[2]) && IsConstantParameterArray(*model, bn_op->inputs[3]) Batch normalization resolution requires that mean, multiplier and offset arrays be constant.
facenet:
facenet
.pb:
https://drive.google.com/open?id=1R77HmFADxe87GmoLwzfgMu_HY0IhcyBz
Thanks!

@liyoung1992
Their version of FaceNet is based on Inception+Resnet, which is too big and resource demanding to run on VisionKit. If the FaceNet is trained with MobileNet v1/v2 with supported input size and depthwise multiplier (for example, 160x160 dw=0.5 or 192x192 dw=1.0 and etc), you should be able to deploy it on VisionKit.

Since I'm just an ordinary soft developer, I don't know too much about AI. This may be beyond my ability. Will aiy provide some trained models, or provide a detailed method of how to compile the model?In this case, estimates use more people！
thanks a lot！

@liyoung1992
We recently added some instructions / short tutorial on how to retrain customized model that can be deployed on vision kit. Check this page out.
https://aiyprojects.withgoogle.com/vision/#makers-guide--tensorflow-model-compiler
EXTENSION TO POET TUTORIAL is highly recommended.
I'm closing this issue for now.
If you ran into issues, feel free to open new issues.

@liyoung1992
We recently added some instructions / short tutorial on how to retrain customized model that can be deployed on vision kit. Check this page out.
https://aiyprojects.withgoogle.com/vision/#makers-guide--tensorflow-model-compiler
EXTENSION TO POET TUTORIAL is highly recommended.
If you ran into issues, feel free to open new issues.

@weiranzhao
Hi Weiran,
I am just starting out on Tensorflow & AIY Vision Kit. I am able to completely build Tensorflow for Poets on Colab as well as on a GCE instance (NVIDIA K80 GPU). I do this with 160 size and 0.5.
I then compile the PB file into a BinaryProto and upload it (and the retrained_labels.txt) to the RPI. When I run the mobilenet_based_classifier.py file, the program crashes after 5 seconds of seeing what the camera sees and I get the following 3 errors:
PI Camera Runtime: No Data received from sensors
AIY Vision Inference: Camera is not running
AIY Drivers Spiccom internal error
I also found a thread with others having the issue from 3 days ago: https://github.com/google/aiyprojects-raspbian/issues/432
Any ideas?
Thanks.


💡 [REQUEST] - Add Multiple workflows to GitHub Project Repository

[x] I am from GSSoC23.
[x] I would like to be assigned this task.

fill [x] to check the boxes.

Description in Full Details:

close_old_issues.yml: This file is used for "Closing Old Issues". It automates the process of closing stale issues or sending notifications for review and possible closure of outdated issues.
linting.yml: This file is used for "Linting". It contains rules and configurations to enforce code style and detect potential errors or issues in the source code.
lock.yml: This file is used for "Locking". It is likely used to prevent discussions or information from being modified or altered by locking conversations or threads.
prevent_multiple_issues.yml: This file is used for "Preventing Multiple Issues". It helps in handling multiple issues in a project simultaneously by providing rules for managing and avoiding conflicting or overlapping issues.

Code of Conduct
By submitting this issue, you agree to follow our Code of Conduct.

[x] I follow the Contributing Guidelines of this project.
[x] I have checked the current issues for duplicate problems.
[x] I have read the readme of this repository.

Hi @Astrodevil and @Alkaison . Please Review on this Issue as soon as Possible. Thank You !

✅


[Web Editor Beta] Scrolling down in group editor breaks group name header

Device: Mac Book Pro 2018 15"
Browser: Safari
Issue: Scrolling down while in a web editor view will break the header for the group name. Please see attached images.

Will be testing with Chrome, Firefox, or Opera once on stable wifi to download additional browsers.

Closing. Accidentally posted this on LuckPerms instead of LuckPermsWeb.

Can't replicate on Chrome or Firefox on the same device.
Issue seems to just impact Safari.

I imagine debugging this will be hard as Safari is no longer available for Windows.


Write pre-test/post-test for user study

I think we already have some sample questions in a Google doc. Someone already worked on this, perhaps?

 Are we asking the right things, etc? Kiley, Julia

Get formatted.

Done. I've got a Google form called "Git knowledge survey" that will work as a pretest and posttest; we'll just need to point students to it.


[Spotify Player] Spotify displayed error

Extension
https://www.raycast.com/mattisssa/spotify-player
Description
Error:
{"_isRayError":true,"code":16,"title":"Could not initialize OAuth","name":"Error","message":"OAuth request creation is not available when command is launched in background","stack":"Error: OAuth request creation is not available when command is launched in background\n    at Rr (/Applications/Raycast.app/Contents/Resources/RaycastCommands_RaycastCommands.bundle/Contents/Resources/api/node_modules/@raycast/server/index.js:25:230)\n    at Ye (/Applications/Raycast.app/Contents/Resources/RaycastCommands_RaycastCommands.bundle/Contents/Resources/api/node_modules/@raycast/server/index.js:24:6249)\n    at ht (/Applications/Raycast.app/Contents/Resources/RaycastCommands_RaycastCommands.bundle/Contents/Resources/api/node_modules/@raycast/server/index.js:24:6374)\n    at Immediate.<anonymous> (/Applications/Raycast.app/Contents/Resources/RaycastCommands_RaycastCommands.bundle/Contents/Resources/api/node_modules/@raycast/server/index.js:24:6139)\n    at process.processImmediate (node:internal/timers:478:21)","breadcrumbs":[{"level":"debug","category":"Request","message":"","timestamp":"2024-01-09T01:27:02.505Z","data":{"function":"getApplications"}}]}:

Spotify extension error keep showing despite granted access at Spotify to Raycast
Steps To Reproduce

Once Raycast launched
Error display
Access granted at Spotify
Error continue to display

Current Behaviour
Spotify player extension giving error despite access has been granted
Expected Behaviour
No error should display once access is granted

Hey there, can you still reproduce this? We pushed some fixes in the latest release.

It appears that this is a duplicate of issue https://github.com/raycast/extensions/issues/9988, so I'll mark it as such.


Request: Allow transport rides to remain free

I just got this plugin and all I need to say is, this plugin is making my OpenRCT2 gameplay better. However, I do use transport rides quite often and I always make them free entry so that guests will ride them no matter what. This plugin, if activated, automatically sets prices on all transport rides, and I have to disable the plugin and manually set all the transport rides to free. I'd like to request a change to this plugin such that even when it's activated, all transport rides remain free too.

So I open an issue about this, and I get no response from @mgovea ? It would be better if someone stepped in and fixed the plugin to the way I want it, even if that means I may have to do it myself.

As I put in the review of Sadret's changes, I haven't have access to my windows machine due to a move, so I'm grateful that he made the changes. Sorry for leaving you in the dark.

@Sadret mostly addressed this in #3 , and I made that behavior default in #5 .
You'll have to manually set the prices to free, but that's a good start.


CustomError: User: arn:aws:iam::****:user/ECOM-KPI-DATA-INGESTION-ROLE is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam:::user/ECOM-KPI-DATA-INGESTION-ROLE

CustomError: User: arn:aws:iam::****:user/ECOM-KPI-DATA-INGESTION-ROLE is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam:::user/ECOM-KPI-DATA-INGESTION-ROLE
can Anyone help me here!!

Also tried with role ARN
throw new CustomError({
^
CustomError: User: arn:aws:sts:::assumed-role/ELANCO-MINT-ECOM-DATA-INGESTION/MINT is not authorized to perform: sts:AssumeRole on resource: arn:aws:iam::**:role/ECOM-KPI-DATA-INGESTION-ROLE
at SellingPartner.refreshRoleCredentials (C:\Users\02709994\Downloads\Elanco\ElancoCORE-MINT-feature-NodeJSAdsAPI\ElancoCORE-MINT-NodeJSAdsAPI\node_modules\amazon-sp-api\lib\SellingPartner.js:580:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: 'AccessDenied',
type: 'error'
}


Skip two types of style errors in flake8.

This is temporary. We must upgrade to 3.5 and newly introduced fix style issues in near future.

I will merge this despite CI failure to overpass the check style failures. CI will keep failing for container service test issues.


The module should allow the #.: {}-/ special characters in a MerchantTxnID

[AlphaCommerceHub] Which characters are considered «special» and «not special» for the AlphaHPP's MerchantTxnID parameter?

Implemented in 1.0.3.


Multiple logical conditions fail to compile.

Describe the bug
Multiple inline logical conditions fail to compile.
<Show when={props.first || props.second || props.third}>
  Render
</Show>

To Reproduce
Provide a code snippet and steps to reproduce the behavior:

Go to https://playground.solidjs.com/?hash=-1206259292&version=1.0.0
See error

Expected behavior
No error.

Confirmed. It appears the nested traversal goes too far and ends up with a null. Thanks for reporting.

Ok I've updated the underlying package babel plugin package babel-plugin-jsx-dom-expressions to 0.29.1. This contains the fix and should install from a clean lock I imagine with the latest babel-preset-solid. I will release a update preset when I make the next Solid patch release but you should be able to use it now.

Multiple logical conditions fail to compile.

Ok I've updated the underlying package babel plugin package babel-plugin-jsx-dom-expressions to 0.29.1. This contains the fix and should install from a clean lock I imagine with the latest babel-preset-solid. I will release a update preset when I make the next Solid patch release but you should be able to use it now.


Done

When creating a new PR, please do the following and delete this template text:

Reference the issue number if there is one:
Fixes #Issue_Number

The "Fixes #nnn" syntax in the PR description causes
GitHub to automatically close the issue when this PR is merged.

Suggest reviewers if you know who should review the PR, using the GitHub Reviewers UI.

@jssmca,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla2.dotnetfoundation.org.
It will cover your contributions to all .NET Foundation-managed open source projects.
Thanks,
.NET Foundation Pull Request Bot


sync file in a specific folder

Is it possible to sync file in a specific folder?

I want to copy all files from source folder to a destination folder. Is it possible to do so?
I tried putting /* at folder end to get all files. I also tried to specify a custom folder with respect to root as "/dest_folder but it did not work. It wrote the files to root folder instead. Let me know.

Is it possible to sync file in a specific folder?

This is solved. It turns out you need not put extra space around = sign .  Like source_path=dest_path rather than source_path = dest_path

@sunn-e yea, I hadn't thought about that, syncing a folder, but turns out the bash cp command can do either files or folders so it's just a matter of getting the path right.
I'll get a fix in for source_path=dest_path vs source_path = dest_path

@sunn-e turns out I can't do the trimming, see the troubleshooting section for details why.
I'm curious how you got the folder sync working, could you share details?

@sunn-e nevermind, was able to figure out the folder sync
v2.2.0 has some fixes if you'd like to upgrade

It turns out,using source_path/* , it considers wildcard symbol as a file name and since there is no * file in source_path folder, it doesn't work as expected. Still looking for a solution. :/

Do you think this can work out, like cp -R <source_folder>/* <destination_folder> so that we can only copy files in a source folder to choice of destination folder.

This will copy entire contents of sourceFolder to the folder called destinationFolder (note the slashes):
FILES: |
    sourceFolder/=destinationFolder/


Low quality on iOS

The quality of the video on iOS is really low, is there a way to set higher quality?

especially when the videos are in portrait mode


Renaming/Reorganising SANDS repo

@lzehl mentioned this during the last meeting. The @type constant has been decided to be
@type: https://openminds.ebrains.eu/sands/schemaName for SANDS and
@type: https://openminds.ebrains.eu/core/schemaName for openMINDS (v3).
Since the openMINDS @type has "core" in it, we should rename the "core"-folder for SANDS to something else or re-organise the SANDS schemas into a different folder structure.
@aeidi89, @skoehnen, @lzehl and @blixilla: Any suggestions?
My suggestions would be:
Option 1
SANDS/atlas/
 atlasTerminology.schema.json
 brainAtlas.schema.json
 brainAtlasVersion.schema.json

SANDS/main/
 anatomicalEntity.schema.json
 annotation.schema.json
 coordinateSpace.schema.json
 entityToEntity.schema.json

SANDS/elements/
 coordinatePoint.schema.json
 electrode.schema.json
 electrodeArray.schema.json
 electrodeContact.schema.json
 image.schema.json

SANDS/options/
 visualizationParameters.schema.json

Option 2
SANDS/atlas/
 atlasTerminology.schema.json
 brainAtlas.schema.json
 brainAtlasVersion.schema.json

SANDS/elements/
 anatomicalEntity.schema.json
 annotation.schema.json
 coordinatePoint.schema.json
 coordinateSpace.schema.json
 electrode.schema.json
 electrodeArray.schema.json
 electrodeContact.schema.json
 entityToEntity.schema.json
 image.schema.json

SANDS/options/
 visualizationParameters.schema.json

@UlrikeS91 thanks for starting this issue.
How about option 3?
SANDS/main/
atlasTerminology.schema.json
brainAtlas.schema.json
brainAtlasVersion.schema.json
coordinateSpace.schema.json
annotation.schema.json
anatomicalEntity.schema.json
coordinatePoint.schema.json (might also go into elements)
image.schema.json (might also go into elements)
visualizationParameters.schema.json

SANDS/elements/
electrode.schema.json
electrodeArray.schema.json
electrodeContact.schema.json
etc.

Or option 4 no sub-categories: everything is just under SANDS directly.

I am not sure, what would be the advantages of organizing SANDS in sub-categories.
At the moment I would be in favor of a flat structure like option 4.

I prefer option 4 as well :wink:

The way SANDS is right now, I also think option 4 is the best. We just need to keep in mind that it will grow, and then it may become a bit chaotic. Anyway, I would love to give option 4 a try. The fewer levels the better :)

Based on the feedback here and in the SANDS meeting (Oct 27) the following was decided:

option 4 (no subdivision)

@UlrikeS91 will take over the PR for this

Fixed and merged with #94


401 (Unauthorized)

I'm submitting a ...

[ ] bug report
[ ] feature request
[x] support request
[ ] other (Please specify)

Hello Guys,
I would like to ask why i can always get this error
401 (Unauthorized)
{"message":"Wrong number of segments","status_code":401}
using port 3000, (browser-sync as recommended)
when i trying to repeat my request or refresh  the page  sometimes it works
i also tried in 8000 port i can get this error rarely.

Laravel & Angular version: 3.2.0

Hi @proxnoob06
This might have to do with the token you're sending
This issue might help

oh thank jadjouban, maybe the reason is my custom token.


Download songs without unzipping them

Is there a way to not unzip downloaded songs?
with the new unpacking into {beatsaversongID}/songfolder there is no benefit to extracting the songs since you cannot see the what song it is until you open the folder with the id.
on the other hand if you keep them zipped we could somehow validate the content via hashes and detect modifications.

scratch that I just noticed that all the zipped songs were unzipped in the .cache folder


Update CONTRIBUTING doc to drop reference to non-existent branch

Try to word in a way that will not require constant editing.
Fix another sentence from 2nd to 3rd person.
fixes: #2352

Coverage remained the same at 93.24% when pulling 341b39349d986faffa212c0168964c65b16a013f on acinader:stab-at-fixing-contributing into c9a768c5a062c5f1aaa0a588d7bb90e8ce18bfd6 on slimphp:3.x.


Feature/luiz-gui

Added the new gui theme. Design taken as is from the original illustrator files.

Demo deployment available at https://luiz-gui.fair-dtls.surf-hosted.nl/fdp.

Coverage increased (+0.2%) to 88.48% when pulling f120472e66a5eb3c09d00c56500ad0fe6c7cf6ad on kburger-dtl:feature/luiz-gui into 79bae893f407d733b0e6c3c3eabbde4b76044f68 on DTL-FAIRData:develop.


Update landscape.yml

Aternity has been spun off from Riverbed. Replacing Riverbed logo with Aternity logo.
Pre-submission checklist:
Please check each of these after submitting your pull request:

[ ] Are you only including a repo_url if your project is 100% open source? If so, you need to pick the single best GitHub repository for your project, not a GitHub organization.
[ ] Is your project closed source or, if it is open source, does your project have at least 300 GitHub stars?
[x] Have you picked the single best (existing) category for your project?
[x] Does it follow the other guidelines from the new entries section?
[x] Have you included a URL for your SVG or added it to hosted_logos and referenced it there?
[x] Does your logo clearly state the name of the project/product and follow the other logo guidelines?
[x] Does your project/product name match the text on the logo?
[ ] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[ ] ~5 minutes after opening the pull request, the CNCF-Bot will post the URL for your staging server. Have you confirmed that it looks good to you and then added a comment to the PR saying "LGTM"?

Deploy preview for landscape ready!
Built with commit 7df856f8ab746153113ea8cea28f2b312af8a587
https://deploy-preview-1599--landscape.netlify.com

lgtm


Close rooms in a consistent, predictable manner

Rooms auto-closes after the last participant leaves the room. Currently this timer fires sometimes around ~20s after. For certain use cases, this means that the webhook notifications that we are delivering also delayed. It also impacts recording use cases where there can be a long gap between when the last participant left and when recording finishes.

The room close event is delayed after everyone leaves the room. That causes the room started event to not trigger when someone joins the empty room.


New wallets compatible with bot interface

Some steps to make integration with bot-plutus-interface possible:

during creation of wallet .skey is generated and saved to known folder
during cluster setup protocol parameters queried and saved to known folder

@gege251 Thanks!