-
Notifications
You must be signed in to change notification settings - Fork 918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Dependencies don't specify python version #988
Comments
Hey @psaiz, it seems to me like the issue is that your python configuration is not python 3. If you're using virtualenv, you can set the default python version to 3 and it will default to that if the script doesn't specify |
Hi Bishoy, Thanks for looking into this. I don't think that the issue is on the client side. Please, take a look at [1]. My understanding of this is that any file distributed should specify which version of python it requires. Note that it could be done with the Cheers, [1] https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error |
Hey Pablo, It seems like most of these errors are coming from dependencies of Dashboards in our node_modules directory and we own very few python files in our repo. If you want to try fixing this issue and opening a PR, that would be great. |
Hi again, Thanks for your reply, @boktorbb-amzn. I'd be happy to help. I might need a bit more info, if you don't mind. I was looking at the Release procedures, and I'm wondering if the best place to fix this would be in this project, or in opensearch-build. I will look first into that one. If you think that's not the correct approach, please let me know. Cheers, |
Hi @boktorbb-amzn , Could you please take a look at the pull request? That should address the issue. Note that it requires one more package on the build nodes. I'm not sure where to specify that. Best regards, |
@psaiz did you check if newer versions of
Upgrading might be a better and/or easier approach to this problem. Which OS are you using? |
Hi Tommy, Thanks for the remark. Indeed, node-gyp@8.0.0 fixes this issue. As far as I can see, newer versions of re2 do not help. I'll check if increasing the version of node-gyp works, leaving the patch for the re2. I'll open a ticket on the re2 to see if they can fix the shebangs. I'm running on Linux (CentOS). Cheers, |
Hi again, I've updated the MR, requiring the version 8.2.0 of node-gyp. Higher versions of that package failed with the message:
Let's see if that helps. Cheers, |
It looks like you got a response on that question: uhop/node-re2#121 |
Thanks Tommy. Indeed, that one was closed, and the issue has been sent to re2 . Let's see if that one fixes it |
…ts (opensearch-project#988) This commit adds the support for rendering different shapes on line, area and bubble charts points
# [24.5.0](elastic/elastic-charts@v24.4.0...v24.5.0) (2021-01-30) ### Bug Fixes * add theme min radius to point shape ([opensearch-project#996](elastic/elastic-charts#996)) ([98089a9](elastic/elastic-charts@98089a9)) * align tooltip z-index to EUI tooltip z-index ([opensearch-project#931](elastic/elastic-charts#931)) ([f7f1f6f](elastic/elastic-charts@f7f1f6f)) * chart state and series functions cleanup ([opensearch-project#989](elastic/elastic-charts#989)) ([42a7af0](elastic/elastic-charts@42a7af0)) * create unique ids for dot icons ([opensearch-project#971](elastic/elastic-charts#971)) ([0b3e00f](elastic/elastic-charts@0b3e00f)) * external tooltip legend extra value sync ([opensearch-project#993](elastic/elastic-charts#993)) ([7e1096e](elastic/elastic-charts@7e1096e)) * **legend:** disable focus and keyboard navigation for legend in partition ch… ([opensearch-project#952](elastic/elastic-charts#952)) ([dfff3e2](elastic/elastic-charts@dfff3e2)) * **legend:** hierarchical legend order should follow the tree paths ([opensearch-project#947](elastic/elastic-charts#947)) ([7b70186](elastic/elastic-charts@7b70186)), closes [opensearch-project#944](elastic/elastic-charts#944) * **legend:** remove ids for circles ([opensearch-project#973](elastic/elastic-charts#973)) ([ed98481](elastic/elastic-charts@ed98481)) ### Features * **cursor:** improve theme styling for crosshair ([opensearch-project#980](elastic/elastic-charts#980)) ([0248ad6](elastic/elastic-charts@0248ad6)) * **legend:** display pie chart legend extra ([opensearch-project#939](elastic/elastic-charts#939)) ([672a4df](elastic/elastic-charts@672a4df)) * **legend:** add keyboard navigation ([opensearch-project#880](elastic/elastic-charts#880)) ([b471a94](elastic/elastic-charts@b471a94)) * **partition:** Flame and icicle chart ([opensearch-project#965](elastic/elastic-charts#965)) ([9e8b1f7](elastic/elastic-charts@9e8b1f7)) * **partition:** legend hover options ([opensearch-project#978](elastic/elastic-charts#978)) ([acd1339](elastic/elastic-charts@acd1339)) * **xy:** support multiple point shapes on line, area and bubble charts ([opensearch-project#988](elastic/elastic-charts#988)) ([4f23b4f](elastic/elastic-charts@4f23b4f))
Hi again, The dependencies have been fixed, so I think that this ticket can be closed. Thanks! |
Thanks @psaiz! |
Describe the bug
There are several python scripts deployed with opensearch-dashboards, and it does not specify if they are python2 or python3
To Reproduce
Steps to reproduce the behavior:
#!/usr/bin/env python
Expected behavior
Those files should specify if it is python2 or python3
OpenSearch Version
Not needed
Dashboards Version
1.2.0
Host/Environment (please complete the following information):
Additional context
I'm running into this issue while creating an rpm of opensearch-dashboards with the content of the tar file. The full list of files suffering from this issue is:
For the record, I'll be happy to send the spec file that I'm using in case that helps. I followed the same procedure for
opensearch
, and in that one, it worked like a charm.The text was updated successfully, but these errors were encountered: