pip --three failed

Describe your environment
OS:Ubuntu 16.04LTS
Python version: 3.6.3
Pipenv version: pipenv, version 9.0.1
Expected result
Creating a Pipfile for this project?
Actual result
    Complete output from command python setup.py egg_info:
    /usr/local/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'entry_points'
      warnings.warn(msg)
    /usr/local/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
      warnings.warn(msg)
    /usr/local/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'zip_safe'
      warnings.warn(msg)
    /usr/local/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
      warnings.warn(msg)
    /usr/local/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'extras_require'
      warnings.warn(msg)
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help

    error: invalid command 'egg_info'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-7kvu61pe/pip/
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
  File "/home/rouzip/.local/lib/python3.6/site-packages/virtualenv.py", line 2328, in <module>
    main()
  File "/home/rouzip/.local/lib/python3.6/site-packages/virtualenv.py", line 713, in main
    symlink=options.symlink)
  File "/home/rouzip/.local/lib/python3.6/site-packages/virtualenv.py", line 945, in create_environment
    download=download,
  File "/home/rouzip/.local/lib/python3.6/site-packages/virtualenv.py", line 901, in install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/home/rouzip/.local/lib/python3.6/site-packages/virtualenv.py", line 797, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /home/rouzip/.local/...mbNjlp15/bin/python3 - setuptools pip wheel failed with error code 1

Virtualenv location:
Creating a Pipfile for this project…
Traceback (most recent call last):
  File "/home/rouzip/.local/bin/pipenv", line 11, in <module>
    load_entry_point('pipenv==9.0.1', 'console_scripts', 'pipenv')()
  File "/home/rouzip/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/rouzip/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/rouzip/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 1043, in invoke
    return Command.invoke(self, ctx)
  File "/home/rouzip/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/rouzip/.local/lib/python3.6/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/rouzip/.local/lib/python3.6/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/rouzip/.local/lib/python3.6/site-packages/pipenv/cli.py", line 1724, in cli
    ensure_project(three=three, python=python, warn=True, site_packages=site_packages)
  File "/home/rouzip/.local/lib/python3.6/site-packages/pipenv/cli.py", line 642, in ensure_project
    ensure_pipfile(validate=validate)
  File "/home/rouzip/.local/lib/python3.6/site-packages/pipenv/cli.py", line 337, in ensure_pipfile
    project.create_pipfile(python=python)
  File "/home/rouzip/.local/lib/python3.6/site-packages/pipenv/project.py", line 406, in create_pipfile
    data[u'requires'] = {'python_version': python_version(python)[:len('2.7')]}
TypeError: 'NoneType' object is not subscriptable

Steps to replicate
pipenv --three

I have the latest setuptools,pip and pipenv.
I try to add export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8  like #538 ,but it doesn't work.

Make sure you don't have a setup.cfg with the following in your project's root, or it will cause this issue
[install]
prefix=

Thanks for your answering!I check my root carefully,there is nothing but a blank pipfile. @knowsuchagency
ls -al
drwxrwxr-x 2 rouzip rouzip 4096 12月 28 15:12 .
drwxrwxr-x 9 rouzip rouzip 4096 12月 28 14:56 ..
-rw-rw-r-- 1 rouzip rouzip    0 12月 28 15:12 Pipfile


[#3301] Remove everything related to conc if the item does not require conc at all

Closes #3301

@krbz999 Comment on the original issue for me so I can give it to you


Makefile $PWD/games Docker install error

I changed the $PWD/games value to $(pwd)/games instead of using an absolute path and the docker container is installed correctly:
docker run --privileged -v $(pwd)/games:/cloud-game/games -d --name cloud-game-local -p 8000:8000 -p 9000:9000 cloud-game-local bash -c "coordinator --v=5 & worker --coordinatorhost localhost:8000"
Amazing tool!  Having a blast trying everything out!

oh I wondered how long it have failed :(  Thank you so much for fixing it.
I verified, can you make a PR for that @baxpace

@baxpace seems like it is quite serious issue for newcomers. I will apply the change directly.
If later you find any issue and it can be a quick fix, please file it as Pull Request, so we can make action faster :p

Will do!


Explicit string decoding of table data

In the future release of Julia, the readdlm function will break on non-UTF-8 formatted strings. Use StringEncodings.jl or Strs.jl on the I/O stream.
Via https://travis-ci.org/loleg/TableSchema.jl/jobs/435294732

Why not using https://github.com/JuliaData/CSV.jl or https://github.com/queryverse/CSVFiles.jl for reading delimited files?


Scope and plan the JavaScript work for this quarter

What
We know that the scale of "the JavaScript work" is huge. We need to:

brainstorm all the things that this work could include (e.g: identify issues, pain points and areas of improvement)
figure out any dependencies
prioritise this work somehow

Why
We need to have a clear idea of what the JavaScript work involves and develop some kind of plan/roadmap for delivery.
Who needs to work on this
Developers; PM
Who needs to review this
Developers; PM
Possible things to include
This is a list of issues that have come up in recent developer catch-ups and L&D sessions that we might want to include in our scoping/planning:

Duplicated JavaScript code (specific example was copying the error summary JS to help with the new skip link JS). Could we write and use helpers more?
Lots of large functions (specific example was the accordion JS). Should we be breaking down our JS functions into smaller chunks? The Frontend Masters course on Enterprise Architecture Patterns suggests that functions should only do one job and should be no more than 20 lines long (3-8 is ideal).
We can't currently write unit tests for our JS
We use gulp tasks to build Sass, copy and move assets around etc in our build pipeline. Gulp and its plugins are old and not well maintained. Some of these things are pinning us to dependencies with security vulnerabilities. We also lack gulp knowledge on the team, so it's difficult for us to work on changes to the gulp tasks
Similar to the above, we use Metalsmith for the Design System website which is old and not well maintained now.

Done when

[x] Collect together all the possible issues with our current JavaScript
[x] Run session(s) to figure out if any issues are linked/dependent on each other
[x] Run session(s) to prioritise issues, lay out a rough roadmap and decide our goals for the quarter
[x] Update the epic card

hey, could you plz explain how can I contribute to this project? I am a beginner,

Hi @nitin094-hub - if you're interested in contributing to this project it's probably worth reading our Community information and our Contribution guidelines. We welcome people raising Github issues if they spot any bugs and/or contributing fixes and new components themselves if they feel something is missing.

We're collecting all the JavaScript issues in a Mural board which we'll go through in a session on Mon 17th Jan. After the session, I'll make sure all issues are written up on Github and tagged with the 'javascript' label so they can be viewed together in one place.

Moving this into blocked until we've had the session on 17th.

Summary of effort / value sessions
3 sessions over 3.5 hours from 17th-19th of Jan 2022.
The tech squad had several sessions this week to build a shared understanding of everything contained within the “JavaScript work”. For each issue we discussed what it is, the problem(s) it’s causing, any linked cards or dependencies, and we attempted to map it on an effort/value chart (seen below).

Summary of effort/value mapping

We didn’t map anything to high effort & low value (i.e: things we’d probably put to one side for now)
The majority of the issues were mapped to medium-high value and effort, for example: revisiting our JavaScript testing strategy; shipping polyfills to all browsers; and internationalisation.
A couple of outliers which seem like more stand-alone issues and which we could potentially pick up (but it depends if we see value in picking them up on their own):

#674
#1127
#2076
#999
#711

There were a couple of issues which we didn’t feel we could map. These were mostly things we think we need to consider throughout the JavaScript epic/every time we pick up a ticket. These were:

How any changes we make will work for maintainers of ports. We know that some currently have to re-implement our JavaScript and therefore lose some of the benefit of using ours (e.g: accessibility built in).
Documentation, e.g: code conventions, tooling choices

One ticket which kept being mentioned and which seems to underpin a lot of this work is revisiting our legacy browser support. This will help us make decisions on things like our approach to polyfills and tooling choices. Depending on our decision, it may mean we can use features we currently avoid.
Next steps
We think the next steps are to make sure we've identified as many dependencies as possible, and then begin to map out a rough sequence for the work. As part of this, we will consider whether work needs time for research, proposals and/or community engagement as this will extend how long it takes to complete.

We've continued to map out the work on the Mural board. Our focus of this quarter is https://github.com/alphagov/govuk-frontend/issues/711 and https://github.com/alphagov/govuk-frontend/issues/2503 . We still need to finish a conversation around how and when we begin work on supporting internationalisation - we could put a short-term solution in place to "buy" us a bit more time. We didn't really have time in the session today to come to a conclusion on this as there are pros and cons for each option (short-term i18n; building a perfect i18n system first time; a welsh language toggle)

I'm going to close this card for now as we've planned out the majority of the work for this quarter (at least enough to keep us going for the next month). We can write up a new epic card when we start planning the i18n work.


ModuleNotFoundError: No module named 'lmflow'

我将整个项目上传至服务器，然后运行这个命令的时候 run ./scripts/run_finetune.sh，遇到了以下报错。有点奇怪，有大佬可以解答疑惑嘛
ModuleNotFoundError: No module named 'lmflow'

你好，需要在服务器安装一下lmflow。具体安装步骤请参考 https://github.com/OptimalScale/LMFlow#setup

Hello, you need to install lmflow on the server. For specific installation steps, please refer to https://github.com/OptimalScale/LMFlow#setup.

好滴，非常感谢！

还想继续问一下，框架支持baichuan13b的预训练嘛？我遇到了ValueError: Tokenizer class BaichuanTokenizer does not exist or is not currently imported. 这个错误。 大佬是否能够解惑呀！

是支持的，可以试一下最新的代码，谢谢

This issue has been marked as stale because it has not had recent activity. If you think this still needs to be addressed please feel free to reopen this issue. Thanks


Python 3.6 Support

Attempting https://github.com/quantopian/zipline/pull/2512#issuecomment-576903728 by opening a branch as a Quantopian member. All credit for these changes goes to @Peque.

Coverage decreased (-0.6%) to 87.701% when pulling 4b07d259fafaf417861af18ca28c7c5a2ac46543 on q-py36 into 1abcb34a654aa2c2e1fa3abef96fab42058adffb on master.

Coverage decreased (-0.6%) to 87.701% when pulling 4b07d259fafaf417861af18ca28c7c5a2ac46543 on q-py36 into 1abcb34a654aa2c2e1fa3abef96fab42058adffb on master.

Coverage decreased (-0.6%) to 87.701% when pulling 4b07d259fafaf417861af18ca28c7c5a2ac46543 on q-py36 into 1abcb34a654aa2c2e1fa3abef96fab42058adffb on master.

Mind commenting here with the results?
https://github.com/quantopian/zipline/issues/2619
Specifying if you:

Are part of the Quantopian GitHub organization
Have an AppVeyor paying subscription.
Made any changes with respect to the original PR (https://github.com/quantopian/zipline/pull/2512)

It seems pipelines do not get stuck for you! :blush:
No idea about the error though.

I did not make any changes from the original PR. It looks like maybe we need to bump the version of psutil? I'm not on a Windows machine but will try to debug further.

@dmichalowicz Yeah, I just tried to bump it in:
https://github.com/quantopian/zipline/pull/2512/commits/514d8c57b8d9eb2db1fc22228b2ab469611de4d0
Let us see if pipelines pass (at least in Travis, you may need to pull the changes into your fork to make AppVeyor pass). :sweat_smile:

@dmichalowicz It seems the psutil bump worked just fine, so you may want to try and push that last commit from my branch to see if it fixes the AppVeyor remaining issues. :blush:

:tada: :blush:

Thanks for your work on this @Peque and for your patience!

When will the Pypi version of Zipline support Python 3.6?


Update VCV Vietnamese Phonemizer

Please fix the line ending and setting in your editor. It's making unnecessary changes to every line every time you make changes.


Have you gotten this to work on Android?

I've run react-native link react-native-screenshot-detect and have been able to run this successfully with iOS, but no luck on Android. Have you been able to? If so, how did you implement it?

What's your device model and android version?
This pluin will listener the change of the media files. If the file path contains the words blow, it will fire ScreenShotDetected  event.
private static final String[] KEYWORDS = {
            "screenshot", "screen_shot", "screen-shot", "screen shot",
            "screencapture", "screen_capture", "screen-capture", "screen capture",
            "screencap", "screen_cap", "screen-cap", "screen cap"
    };

Do you need to add any permissions like android.permission.READ_EXTERNAL_STORAGE?

I've run react-native link react-native-screenshot-detect and have been able to run this successfully with iOS, but no luck on Android. Have you been able to? If so, how did you implement it?

Hi How are you able to run and detect on iOS or android?

iOS just worked for me following the readme. Never got Android working.

This works on android too but needs this permission requested and given
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

@Jonovono Can you help me with a full document to make this module work on android?
I tried to add permission:

and checked in app info to ensure permission is enabled.
But it still can not work.

@technicalopt I havn't tried android yet, will probably get to it in the next couple days, will let you know if i'm able to get it working there

@technicalopt did you try, if you are using react-native-permissions to request the android permission PERMISSIONS.ANDROID.READ_EXTERNAL_STORAGE

Yes, I added and have check permission.
But seem this module has declared conflict with this module: iamacup/react-native-screenshot-detect  https://github.com/iamacup/react-native-screenshot-detect
I checked in node_modules and look it is not install correct this module code.
Can you tell me how to install this module?
Also, I think we should update a key check with uppercase "Screenshot" in Java code:
private static final String[] KEYWORDS = {             "screenshot", "screen_shot", "screen-shot", "screen shot",             "screencapture", "screen_capture", "screen-capture", "screen capture",             "screencap", "screen_cap", "screen-cap", "screen cap"     };
My phone is Gallaxy S8+ I see images after capture go to Screenshots folder.


Emit error before closing stream

When using standard source.pipe(dest) source will not be destroyed if dest emits close or an error. You are also not able to provide a callback to tell when then pipe has finished.
https://www.npmjs.com/package/pump does these two things for you, so you don't need to listen all the error events from all streams
So for handling all the errors correctly with pump it make sense to emit error first before closing stream. Example of code can be found here: https://github.com/mafintosh/pump/pull/2
Also, should it be PR to the 2.2 or 2.1?

can you provide a test case for this scenario

@christkv done


kotlin: 1.2.40 -> 1.2.41

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
This update was made based on information from https://repology.org/metapackage/kotlin/versions.
These checks were done:

built on NixOS
ran ‘/nix/store/5byxycv5j3gvwvr87qpv08a7347fxv9q-kotlin-1.2.41/bin/kotlin -h’ got 0 exit code
ran ‘/nix/store/5byxycv5j3gvwvr87qpv08a7347fxv9q-kotlin-1.2.41/bin/.kotlin-wrapped -h’ got 0 exit code
found 1.2.41 with grep in /nix/store/5byxycv5j3gvwvr87qpv08a7347fxv9q-kotlin-1.2.41
directory tree listing: https://gist.github.com/927e0c1e045ca7c165603ae8b1961beb

cc @nequissimus for review

No attempt on aarch64-linux (full log)
The following builds were skipped because they don't evaluate on aarch64-linux: kotlin
Partial log (click to expand)

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowUnfree = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowUnfree = true; }
to ~/.config/nixpkgs/config.nix.

Success on x86_64-darwin (full log)
Attempted: kotlin
Partial log (click to expand)
post-installation fixup
strip is /nix/store/kdff2gim6417493yha769kh00n63lnrw-cctools-binutils-darwin/bin/strip
stripping (with command strip and flags -S) in /nix/store/64gr0q5axywi4jrcbxzhcd463c7xfj08-kotlin-1.2.41/lib  /nix/store/64gr0q5axywi4jrcbxzhcd463c7xfj08-kotlin-1.2.41/bin
patching script interpreter paths in /nix/store/64gr0q5axywi4jrcbxzhcd463c7xfj08-kotlin-1.2.41
/nix/store/64gr0q5axywi4jrcbxzhcd463c7xfj08-kotlin-1.2.41/bin/.kotlinc-jvm-wrapped: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/r8bx3qf1bpncb14i9gzma4vr089pc3pv-bash-4.4-p19/bin/bash"
/nix/store/64gr0q5axywi4jrcbxzhcd463c7xfj08-kotlin-1.2.41/bin/.kotlinc-wrapped: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/r8bx3qf1bpncb14i9gzma4vr089pc3pv-bash-4.4-p19/bin/bash"
/nix/store/64gr0q5axywi4jrcbxzhcd463c7xfj08-kotlin-1.2.41/bin/.kotlinc-js-wrapped: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/r8bx3qf1bpncb14i9gzma4vr089pc3pv-bash-4.4-p19/bin/bash"
/nix/store/64gr0q5axywi4jrcbxzhcd463c7xfj08-kotlin-1.2.41/bin/.kotlin-dce-js-wrapped: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/r8bx3qf1bpncb14i9gzma4vr089pc3pv-bash-4.4-p19/bin/bash"
/nix/store/64gr0q5axywi4jrcbxzhcd463c7xfj08-kotlin-1.2.41/bin/.kotlin-wrapped: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/r8bx3qf1bpncb14i9gzma4vr089pc3pv-bash-4.4-p19/bin/bash"
/nix/store/64gr0q5axywi4jrcbxzhcd463c7xfj08-kotlin-1.2.41

Success on x86_64-linux (full log)
Attempted: kotlin
Partial log (click to expand)
strip is /nix/store/j75dgadrff2d1fyc4fczmcgqkid2imdx-binutils-2.30/bin/strip
stripping (with command strip and flags -S) in /nix/store/szrkiz2lnrn97rhs7fv5hnmh12paykap-kotlin-1.2.41/lib  /nix/store/szrkiz2lnrn97rhs7fv5hnmh12paykap-kotlin-1.2.41/bin
patching script interpreter paths in /nix/store/szrkiz2lnrn97rhs7fv5hnmh12paykap-kotlin-1.2.41
/nix/store/szrkiz2lnrn97rhs7fv5hnmh12paykap-kotlin-1.2.41/bin/.kotlin-wrapped: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/szrkiz2lnrn97rhs7fv5hnmh12paykap-kotlin-1.2.41/bin/.kotlin-dce-js-wrapped: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/szrkiz2lnrn97rhs7fv5hnmh12paykap-kotlin-1.2.41/bin/.kotlinc-wrapped: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/szrkiz2lnrn97rhs7fv5hnmh12paykap-kotlin-1.2.41/bin/.kotlinc-js-wrapped: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
/nix/store/szrkiz2lnrn97rhs7fv5hnmh12paykap-kotlin-1.2.41/bin/.kotlinc-jvm-wrapped: interpreter directive changed from "/usr/bin/env bash" to "/nix/store/xn5gv3lpfy91yvfy9b0i7klfcxh9xskz-bash-4.4-p19/bin/bash"
checking for references to /build in /nix/store/szrkiz2lnrn97rhs7fv5hnmh12paykap-kotlin-1.2.41...
/nix/store/szrkiz2lnrn97rhs7fv5hnmh12paykap-kotlin-1.2.41


Web Hypocycloid

Under the Web shape tool, it seems as if there's a limit to how many rotations are allowed before the pattern re-starts.  This works out to some nice symmetric and pleasing patterns if the "large circle radius" is perfectly divisible by the "small circle radius."  It would be nice if there was an option to allow the pattern to continue without it "jumping" back to the same (relative) starting point. For example, with Large set to 5 and Small set to 3, after one rotation, the chain "jumps" to the beginning of the next loop in line with the first point of the first loop.  If the pattern were to be allowed to continue, the points would converge after 3 rotations (with no growth). The linked Wolfram Hypocycloid page shows this.  Is this possible?

It's not possible now, but it can easily be supported. I experimented with modifications that would allow this shape (and its related shape, "Clover") to continue to rotate until they complete their pattern as you suggest. It radically changes the way these shapes draw as you change the values, but I think it's an improvement. I'll submit a PR that explores this.
Here is large circle = 190, small circle = 37 (rotates 37 times to complete the pattern).

Neat pattern.  This is great - thanks for exploring!

@khgrap, This update has been merged, but won't be deployed until the next release.

Sounds great. Thanks!


Fix assorted typos and spelling

This pull request includes several typo corrections across multiple files to improve code readability and accuracy. The changes span various components, including documentation, TypeScript code, JSON schemas, and Rust source files.
Typo Corrections:

content/docs/NOTES.md: Corrected "sould" to "should".
examples/typescript/apple-shortcut/main.js: Corrected "asnwer" to "answer".
examples/typescript/pipe-meeting-summary-by-email/pipe.ts: Corrected "intructions" to "instructions".
examples/typescript/vercel-ai-chatbot/components/empty-screen.tsx: Corrected "implmenetation" to "implementation".
screenpipe-app-tauri/components/chat-list-web-llm.tsx: Corrected "browing" to "browsing".
screenpipe-app-tauri/components/notification-handler.tsx: Corrected "notifcation" to "notification".
screenpipe-app-tauri/src-tauri/gen/schemas/desktop-schema.json: Corrected "programatic" to "programmatic". [1] [2]
screenpipe-app-tauri/src-tauri/gen/schemas/macOS-schema.json: Corrected "programatic" to "programmatic". [1] [2]
screenpipe-audio/src/core.rs: Corrected "suppoed" to "supposed".
screenpipe-server/src/cli.rs: Corrected "unconsistent" to "inconsistent".
screenpipe-vision/src/monitor.rs: Corrected "strcture" to "structure".

sure @brianteeman  thanks

Happy to help


Keep getting "Parsing error: Expected to be an expression, but got empty"

I just tried a very small simple case, and I keep receiving this error.
Config  eslint-config.js
module.exports = {
  extends: ['plugin:jsonc/recommended-with-jsonc'],
  // rules: {},
};

The target eslint-to-test.json
{
  "b": "bbb",
  "a": "aaa"
}

cli:
npx eslint -c eslint-config.js eslint-to-test.json

/.../eslint-to-test.json
  1:2  error  Parsing error: Expected to be an expression, but got empty

✖ 1 problem (1 error, 0 warnings)

What am I missing?!

A reproduction is required.

@JounQin after extra time, the problem is eslint-i18n-json that changes all JSON files into a big string...

🤣 @sidferreira I think you should report there to ask them to use the correct eslint parser jsonc-eslint-parser without any hacking.

I'm trying to do it my self. Do you3have a guide?

Well, all you should post is letting them to know there is already a correct parser, so preprocess hacking is not required any more. But they will need to adapt the new JSON* nodes, see also https://github.com/ota-meshi/jsonc-eslint-parser/blob/master/docs/AST.md.

@JounQin yeah, but I don't think they will be fast. I'll try to just create a custom solution and move on.
Your plugin does almost all the rules we want anyways

So... I'm trying to make a rule, but having a hard time:
const esCompatUtils = require('eslint-compat-utils');
// import {parse: icuMessageFormatParser} from '@formatjs/icu-messageformat-parser'

module.exports = {
  meta: {
    type: 'problem',
    docs: {
      description: 'Check JSON files for I18N messages',
    },
    fixable: 'code',
    schema: [], // no options
  },
  create: function (context) {
    // console.log(`>>>>`, esCompatUtils.getSourceCode(context).);

    return {};
  },
};

but when I try to run the test:
    {
      code: `
      {
          "translationKeyA": "translation value a",
          "translationKeyB": "translation value b",
          "translationKeyC": "translation value escaped curly brackets '{}'",
          "translationKeyD": "translation value with backslash \u005C"
      }
      `,
      options: [],
      filename: 'file.json',
    },

it throws
AssertionError [ERR_ASSERTION]: A fatal parsing error occurred: Parsing error: Unexpected token :
    at runRuleForItem (.../eslint/lib/rule-tester/rule-tester.js:843:13)
    at testValidTemplate (.../eslint/lib/rule-tester/rule-tester.js:896:28)
    at RuleTester.<anonymous> (.../eslint/lib/rule-tester/rule-tester.js:1181:33)
    at RuleTester.itDefaultHandler (.../eslint/lib/rule-tester/rule-tester.js:453:23)
    at .../eslint/lib/rule-tester/rule-tester.js:1178:71
    at Array.forEach (<anonymous>)
    at RuleTester.<anonymous> (.../eslint/lib/rule-tester/rule-tester.js:1177:32)
    at RuleTester.describeDefaultHandler (.../eslint/lib/rule-tester/rule-tester.js:470:19)
    at RuleTester.<anonymous> (.../eslint/lib/rule-tester/rule-tester.js:1176:34)
    at RuleTester.describeDefaultHandler (.../eslint/lib/rule-tester/rule-tester.js:470:19) {
  generatedMessage: false,
  code: 'ERR_ASSERTION',
  actual: false,
  expected: true,
  operator: '=='
}

My goal is to have a rule matching against import {parse: icuMessageFormatParser} from '@formatjs/icu-messageformat-parser'


根节点添加zoom属性后，拖拽异常

https://github.com/SortableJS/Sortable/issues/1846#issuecomment-684213969

And there is no fix for this? because when using page zoom shortcut ctr-+. Vue-draggable works correct.


Prefix generic titles by individual

Titles like "Core maintenance" and "Core review & testing" could be mistaken for generic efforts across multiple people rather than for specific individuals. I think titles like these should be prefixed by "[person's name]: " to avoid confusion.

I think this has to be solved in another way, otherwise we risk (a) inviting a popularity contest, and/or (b) re-creating a worse version of Patreon.
Our grant program will fix this, and we should also make it clear that part of our "General Fund" is directed towards core. I think we could also list "Bitcoin Core" as a project to make this support more clear and have a way for people to "earmark" funds towards core more clearly.


Full list of symbols please

Hello. I need a table/list with all symbols in this font, so I can copy some funny symbols from it.

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

ID: a897815e-652e-d4ae-8f3d-979ee1ec0fcb
Version Independent ID: 575e9a80-3e10-d850-eea7-d3c921779f82
Content: Segoe UI Emoji font family - Typography
Content Source: typographydocs/font-list/Segoe-UI-Emoji.md
Product: typography
GitHub Login: @alib
Microsoft Alias: alib

You can use the Character Map app in Windows to see characters supported in a font. (This app has a limitation in that it only supports Unicode code points U+0000 to U+FFFF.) There are other tools you can find online for displaying all of the characters supported in a font, such as BabelMap or ViewGlyph.

Good tools for inspecting font features and glyph support are currently also web apps as:

https://wakamaifondue.com/
https://fontdrop.info/

Microsoft Segoe UI Emoji - all - Emojipedia
https://emojipedia.org/microsoft/show_all/#more


silx.gui.hdf5: Made humanReadableHdf5Type a static method of Hdf5Formatter

...to be able to reuse it more easily in other (non-Qt) projects.

I don't think it's a good idea.
Here it is object oriented. If you want to use it outside, i think it is better to move the function outside. And use the normal function in the method if you like.

I don't think it's a good idea.
Here it is object oriented. If you want to use it outside, i think it is better to move the function outside. And use the normal function in the method if you like.

Here it is object oriented. If you want to use it outside, i think it is better to move the function outside. And use the normal function in the method if you like.

You mean copying the function outside of the silx project or outside of the class ?

Here it is object oriented. If you want to use it outside, i think it is better to move the function outside. And use the normal function in the method if you like.

You mean copying the function outside of the silx project or outside of the class ?

Outside the class. And if you don't want to use it in Qt context, that's probably better to move it out the this package anyway.

Outside the class. And if you don't want to use it in Qt context, that's probably better to move it out the this package anyway.

Yeah, in the end, I think I will copy paste the function in our project to avoid pulling silx as a dep just for that.
Thanks :+1:

Yeah, in the end, I think I will copy paste the function in our project to avoid pulling silx as a dep just for that.
Thanks :+1:


DataFrame join, left on multiple keys, right on index is not working

Minimal Complete Verifiable Example:
import dask.dataframe as pd
import dask.array as np
import pandas

df=pd.from_pandas(pandas.DataFrame([[0,1,4],[0,1,5],[2,3,6]],columns=["a","b", "c"]), npartitions=2)

s1=df.groupby(["a","b"])["c"].apply(lambda x:x.drop_duplicates().sum(), meta=("x", "int64"))
df.merge(s1.to_frame(), "outer", left_on=["a","b"], right_index=True).compute()

What happened:
It complains:
ValueError: len(left_on) must equal the number of levels in the index of "right"

What you expected to happen:
It should merge. If using pandas, this operation is fine
Anything else we need to know?:
No
Environment:

Dask version: 0.22.0
Python version: 3.6+
Operating System: Linux
Install method (conda, pip, source): pip

Sorry for the delay @goodwanghan. The issue is that the meta you provided to the groupby apply isn't fully correct. The tuple shorthand doesn't correctly describe the (multi)-index, and the downstream join can't work as a result.
In [73]: idx = pd.MultiIndex.from_arrays([np.array([], dtype='int64'), np.array([], dtype='int64')], names=['a', 'b'])

In [74]: meta = pd.Series([], name="x", dtype="int64", index=idx)

In [75]: s1=df.groupby(["a","b"])["c"].apply(lambda x:x.drop_duplicates().sum(), meta=meta)

In [76]: df.merge(s1.to_frame(), "outer", left_on=["a","b"], right_index=True).compute()
Out[76]:
   a  b  c   x
0  0  1  4 NaN
1  0  1  5 NaN
2  2  3  6 NaN

Any suggestions for how this could be improved?


Adds missing TruncationDirection for hf_tokenizers

Missing field was caused by missing field in TruncationParams in hf_tokenizers and has since been fixed.
Related hf_tokenizers issue: https://github.com/huggingface/tokenizers/commit/4122a33f095e7da48217e19bf9184fefd0506a8e

@cpcdoy could you merge this please, so 0.4.0 compiles again

@Luxbit Sorry for the very late reply! And thanks for the fix, looks good to me!


Discrepancy between scatter plot and custom plot

Describe the bug
There seems to be a discrepancy between scatter plots generated using "Scatter plot" and those generated using "Custom chart".
The scatter chart looks accurate but the scatter plot seems to have a much larger number of runs.
To Reproduce
This seems to happen with any set of runs that I launch. Please let me know if you have trouble reproducing on your end and I can create a small program to share with you that will hopefully allow you to reproduce.
Steps to reproduce the behavior:

Open the webpage for a sweep
Click the '+' on a panel and add a Scatter chart. Choose a hyperparameter and plot it against some metric like error or reward.
Click the '+' on a panel and add a Custom chart. Create an equivalent custom chart using the scatter plot option plotting the same metrics.

Expected behavior
I expect the two charts to essentially show the same thing.
Screenshots

Operating System

OS: macOS Big Ser
Browser Chrome
Version Version 87.0.4280.88

Did a little more investigation and realized that the custom chart is pulling data from all of my runs, not just the current sweep. Sorry for the confusion. I must have the missed the part of the documentation where it indicates that this is the case.


Camel cased filenames seem to cause issues with TypeScript

When I have a camel-cased filename like dateTime.ts I get errors in VSCode

...on the other side when I change the filename casing, everything works just fine

that's odd

Ya 😁

I'm not too sure what to do here :/ it might be an issue with the editor

Which one are u using? VSCode?

I'm using sublime and sometimes atom

Sublime user as well. Since a couple of weeks I'm using VSCode now for better TypeScript support. It's a difficult relationship currently, but it's not that bad as well.
Kinda complicated :smile:


Rudradave1/feature/settingsui

Settings UI first page

@rudradave1 why do you want to merge with master ? you must have to merge with your team lead branch.

Kindly provide the preview of settings UI

I have provided SettingsItemPreview for items.
Here is the screenshot of the full UI.

@rudradave1 why do you want to merge with master ? you must have to merge with your team lead branch.

I don't want to merge it to master. I created a pull request for branch_loveleen.

@rudradave1 why do you want to merge with master ? you must have to merge with your team lead branch.

I don't want to merge it to master. I created a pull request for branch_loveleen.

I have changed this now.
Please follow the same in future whenever you're creating any PR. Please check that where it is pointing out.

@rudradave1 I've added my comments on https://github.com/NoteXCommunity/note-x/pull/46
Kindly address them, delete that PR and then we're good to merge this PR once @loveleenkaurnancy confirm the same.

@loveleenkaurnancy kindly review and merge the change if it looks good

@rudradave1 can you rebase your base branch with geet and create a PR for the same?
Also, close https://github.com/NoteXCommunity/note-x/pull/46 if it doesn't require anymore.


Modify thetas and betas indexing and update this format in the plugin

The zero components of both distributions need to be removed and the plugin needs to be modified accordingly such that the distance is calculated based on the intersecting components.

The zero components have been removed. Only the plugin needs to be modified. Hence, Q5 is not currently working.

Plugin has been modified and Q5 updated accordingly. Similarity working now based on Jensen-Shannon, but it is still pending to update so that the Bhattacharyya distance is used.

Updated to Bhattacharyya.