text
stringlengths 20
57.3k
| labels
class label 4
classes |
---|---|
Title: Make README look better and more cohesive
Body: - put the commands into a nice looking table with better descriptions of what the commands do and their parameters
- Add info on newly added features like the ability to have a conversation opener in a chat, and etc
- General clean up and beautify
- Add build status embeds for docket and pypi, add latest release embed, any others that would be useful | 0easy
|
Title: Change AppVeyor badge to AzurePipelines badge in readme.md
Body: Off the back of moving Windows CI to Azure Pipelines, it would make sense to deprecate AppVeyor badge in the README.md | 0easy
|
Title: Marketplace - creator page - change font of creator bio to Poppins
Body:
### Describe your issue.
Change font of the bio section to Poppins.
Please follow this following custom style:
Font name: Poppins
font-weight: regular
font size: 48px
line height: 59px
<img width="1496" alt="Screenshot 2024-12-16 at 17 07 18" src="https://github.com/user-attachments/assets/13b033d2-3e2e-4fc4-b633-0457b12dc8a6" />
| 0easy
|
Title: Add AutoKey version and selected front end to the end of AutoKey tracing output
Body: ### Has this issue already been reported?
- [X] I have searched through the existing issues.
### Is this a question rather than an issue?
- [X] This is not a question.
### What type of issue is this?
Enhancement
### Which Linux distribution did you use?
N/A
### Which AutoKey GUI did you use?
Both
### Which AutoKey version did you use?
0.96.0 Beta 10
### How did you install AutoKey?
N/A
### Can you briefly describe the issue?
When problems are reported, there is often some question as to what version was being used and which front end. It would be useful for tracing output to provide this information.
It is already listed at the very beginning but not at the very end of the tracing output, It would help to also have it at the end (When AutoKey is terminated, so if partial traces are posted it will still be visible.
### Can the issue be reproduced?
_No response_
### What are the steps to reproduce the issue?
_No response_
### What should have happened?
_No response_
### What actually happened?
_No response_
### Do you have screenshots?
_No response_
### Can you provide the output of the AutoKey command?
_No response_
### Anything else?
_No response_ | 0easy
|
Title: [BUG]: `rio.Link` does not support open in new tab when `ctrl+click` for `rio.Rectangle/rio.PintEventListener`
Body: ### Describe the bug
The `rio.Link` does not behave as expected when attempting to open a link in a new tab using `Ctrl+Click (or Cmd+Click on macOS)`, if content is e.g. `rio.Rectangle/rio.PintEventListener`.
### Screenshots/Videos
_No response_
### Operating System
_No response_
### What browsers are you seeing the problem on?
_No response_
### Browser version
_No response_
### What device are you using?
_No response_
### Additional context
_No response_ | 0easy
|
Title: ๆ้ณๆน้ไธ่ฝฝ็ๆถๅ ่ฅ้ๅฐๆธ
็ฉบ่ง้ข็่ดฆๅทไผๅผนๅบๆ็คบ ๅปบ่ฎฎไฟฎๆนไธบ่ชๅจ็ปง็ปญ
Body: ้ฎ้ขๅฆ้ข ๆน้ไธ่ฝฝๅ ๅไธช่ดฆๅท็ๅ้็ๆถๅ
ๆๆถๅๆไบไฝ่
ๅ็งไธ็ฅๅๅๅ ไผๆธ
็ฉบๆๆๅๅธ็่ง้ข ็ถๅ่ฝฏไปถ่ฏปๅไธๅฐไฟกๆฏ็ๆถๅ ไผๆ็คบๆไปปๆ้ฎ็ปง็ปญ
่ฟไธ้ๆฉ่ฝๅฆๆนไธบ่ชๅจ็ปง็ปญ๏ผ | 0easy
|
Title: Fix capitalisation in page titles and subheads to follow sentence-style as per Vale suggestion
Body: Vale catches all instances of headings/subheadings (anything preceded by `#` in markdown) where the capitalisation is not sentence style. That is, it'll flag "Do This Thing" and suggest instead "Do this thing". There will be suggestions across the Vizro docs, but not all of these will be valid because sometimes we are using proper nouns (e.g. for the word Notebook) and sometimes it's a code capitalisation.
<img width="572" alt="image" src="https://github.com/user-attachments/assets/d9166850-915e-422c-9de2-1ca5ad688f5d">
Task: Search across Vizro docs (vizro-core and vizro-ai) for instances of provide and replace with discretion.
Generally, if the capitalisation is genuine it'll be because we are using a technical term, and the best approach is to add it to the [`Headings.yml` style](https://github.com/mckinsey/vizro/blob/main/.vale/styles/Microsoft/Headings.yml). | 0easy
|
Title: Cypress tests should fail if there are console errors
Body: | 0easy
|
Title: Allow prior to be a callable in random module
Body: Currently, [random_flax_module](http://num.pyro.ai/en/stable/primitives.html#numpyro.contrib.module.random_flax_module) and [random_haiku_module](http://num.pyro.ai/en/stable/primitives.html#numpyro.contrib.module.random_haiku_module) assume that `prior` is either a distribution or a dict of distributions. In case we have a large network and want to specify priors for specific parameters like the weight of the last layer, we need to find corresponding names of those parameters. It is a bit inconvenient. It would be nice to allow a callable `prior` argument like
```
def get_prior(name, shape):
if "weight_last" in name:
return dist.Normal(0, 1).expand([shape])
```
where `name` is the parameter full name and `shape` is its corresponding shape.
This is a nice feature and supporting this is not complicated. We just need to add a [check](https://github.com/pyro-ppl/numpyro/blob/d3a4ca116d8d99372fae030fe04990db6a522055/numpyro/contrib/module.py#L226) here such that when `prior` is a callable, we get `d` by calling `prior(flatten_name, param_shape)`. We'll need a few tests for this feature and this would be a nice chance to get familiar with using flax/haiku in numpyro. | 0easy
|
Title: Add the ability to test whether data is in range in a pandas data frame
Body: # Brief Description
Following up on #703, this issue seeks to introduce the ability to test whether each column in a data frame is within a user-defined range of values.
I would like to propose..
# Example API
```python
def flag_values_not_in_range(
df: pd.DataFrame,
bound: list,
inclusive: bool = True
) -> pd.DataFrame:
"""
:param df: data frame to test if values in columns are within a range
:param bound: user-defined lower and upper bound of values to test in data frame columns
:param inclusive: include boundaries in filtering.
Defaults to True
:return: True if value in column does not fall within range.
False if value in column falls within range.
"""
```
| 0easy
|
Title: Syrupy is recognizing snapshot as not being used (4.0.1)
Body: **Describe the bug**
This is probably a regression in the latest release. I didn't observe the behavior in 4.0.0:
1. On a new test with no snapshot (using the `json` extension), I get the expected behaviour:
> 1 snapshot failed
> Snapshot 'TestFoo.test_foo' does not exist!
2. With the first `pytest --snapshot-update` (this is where the first signs of the bug is):
> 1 snapshot generated. 1 unused snapshot deleted.
Deleted TestFoo (tests/foo/__snapshots__/test_foo/TestFoo.test_foo.json)
Why does it output `Deleted ....`, that isn't the expected behaviour (the deletion doesn't happen though)
3. Another follow up when running `pytest`:
> 1 snapshot passed. 1 snapshot unused.
Re-run pytest with --snapshot-update to delete unused snapshots.
Again, that isn't correct. It gets worse though:
4. `pytest --snapshot-update`:
This time the deletion *will* happen hence the next run of `pytest` will fail since it won't find a snapshot.
# Env:
Syrupy 4.0.1
Python 3.10
Going back to 4.0.0 solved the issue.
| 0easy
|
Title: `nextafter` (via both `math` and `numpy`) missing for CUDA
Body: As title says. Possibly related to #9424?
Details on my [use-case can be found here](https://numba.discourse.group/t/cuda-device-function-pointers-re-implementing-scipy-integrate-solve-ivp-for-numba-cuda/2342). | 0easy
|
Title: tox build fails on django main
Body: **Describe the bug**
Tox build fails when running against lastest django version
**To Reproduce**
```
tox -e py310-djangomain-tablibstable
```
```
django.utils.deprecation.RemovedInDjango50Warning: The "default.html" templates for forms and formsets will be removed.
These were proxies to the equivalent "table.html" templates, but the new "div.html" templates will be the default from Django 5.0.
Transitional renderers are provided to allow you to opt-in to the new output style now. See https://docs.djangoproject.com/en/dev/releases/4.1/ for more details
```
**Versions (please complete the following information):**
- Django Import Export: 2.8.1
- Python 3.10
- Django 4.1
https://docs.djangoproject.com/en/dev/releases/4.1/
[test_mixins_fail.txt](https://github.com/django-import-export/django-import-export/files/8873082/test_mixins_fail.txt)
| 0easy
|
Title: Request for AutoGuideList in numpyro
Body: It would be great if AutoGuideList (https://docs.pyro.ai/en/stable/infer.autoguide.html#autoguidelist) was added to numpyro.
I've seen this discussed on a forum (https://forum.pyro.ai/t/using-a-combination-of-autoguides-for-a-single-model/5328), and I would really appreciate this feature in Numpyro, so more of my models can be easily translated from Pyro.
Until it is implemented, it would be cool to have somewhere in the tutorials an example of how different AutoGuides for different variables can currently be combined. | 0easy
|
Title: handle React component classes correctly
Body: The upload component (`src\lib\components\Upload_ReactComponent.react.js`) seems to select the "most appropriate css class" by this logic:
```
const getClass = () => {
if (this.props.disabledInput) {
return this.props.disableClass;
} else if (this.state.isHovered) {
return this.props.hoveredClass;
} else if (this.state.isUploading) {
return this.props.uploadingClass;
} else if (this.state.isComplete) {
return this.props.completeClass;
} else if (this.state.isPaused) {
return this.props.completeClass;
}
return this.props.className
}
```
in addition to the typo in "isPaused", the class should be the union of all classes. For example, if the state is uploading, and mouse is on the component (hovered), the class should be `this.props.uploadingClass this.props.hoveredClass` (class strings one after another, separated with space(s). | 0easy
|
Title: [Jobs] Download job execution log.
Body: <!-- Describe the bug report / feature request here -->
Similar to #2914, for managed jobs, we should have a flag `--sync-down` that download the logs to local machine.
| 0easy
|
Title: When you visit a URL using URL params and click Share, it appends URL parameters
Body: When you click on the "Share" button and get the URL from a page with URLs, it appends the parameters (rather than overwriting them) and screws up the page.

Code to repro:
```
import mercury as mr
first_name = mr.Text(value="John", label="First Name", rows=1, url_key="first_name")
last_name = mr.Text(value="Appleseed", label="Last Name", rows=1, url_key="last_name")
animal = mr.Text(value="", label="Your favourite animal", url_key="animal")
```
| 0easy
|
Title: ASGI: Add affordances and recipe for long-polling
Body: The 3.0 ASGI implementation already affords long-polling, but it would be useful to provide a recipe to demonstrate the pattern in the context of a Falcon app.
Also, for the sake of efficiency, we may want to provide a `req.wait_disconnect()` or similar method that can be executed in a background task within a responder. The responder could then use this in order to detect if it should abandon a long-poll early in the case that the client bails out. This is similar to what `asgi.App` does when streaming SSE's (using `watch_disconnect()`. | 0easy
|
Title: Optimizer failure
Body: **Description of the issue**
The `optimize_for_target_gateset` crashes when trying to optimize XXPowGate with larger global shift value. The optimizer crashes with division by zero error.
**How to reproduce the issue**
```
import cirq as c
qubits = c.LineQubit.range(4)
circuit = c.Circuit()
circuit.append(c.rz(-0.0171*np.pi)(qubits[0]))
circuit.append(c.CNOT(qubits[3], qubits[1]))
circuit.append(c.MSGate(rads=-0.01*np.pi)(qubits[0], qubits[1]))
circuit.append(c.Y(qubits[0]))
circuit.append(c.CSWAP(qubits[2], qubits[0], qubits[3]))
circuit.append(c.Ry(rads=0.014*np.pi)(qubits[2]))
circuit.append(c.Z(qubits[3]))
circuit.append(c.ISWAP(qubits[0], qubits[2]))
circuit.append(c.XX(qubits[1], qubits[3]))
circuit.append(c.XXPowGate(exponent=0.26, global_shift=100000)(qubits[2], qubits[3]))
circuit.append(c.ISWAP(qubits[0], qubits[2]))
circuit.append(c.Ry(rads=-0.042*np.pi)(qubits[3]))
print(circuit)
optimized = c.optimize_for_target_gateset(circuit, gateset = cg.SycamoreTargetGateset())
print(optimized)
```
<details>
```bash
โโโโโโโโโ
0: โโโRz(-0.017ฯ)โโโMS(-0.01ฯ)โโโYโโโรโโโโโโโโโโโโโโโโโiSwapโโโโโโโโโโโโโโโโiSwapโโโโโโโโโ
โ โ โ โ
1: โโโXโโโโโโโโโโโโโMS(-0.01ฯ)โโโโโโโโผโโโโโโโโโโโโโโโโโโผโโโโXXโโโโโโโโโโโโโโโผโโโโโโโโโโโโโ
โ โ โ โ โ
2: โโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ@โโโRy(0.014ฯ)โโโโiSwapโผโโโโโXXโโโโโโโโiSwapโโโโโโโโโ
โ โ โ โ
3: โโโ@โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโรโโโZโโโโโโโโโโโโโโโโโโXXโโโโXX^0.26โโโRy(-0.042ฯ)โโโ
โโโโโโโโโ
Traceback (most recent call last):
File "/Users/xxx/xxx/cirq_diverging_sycamore.py", line 36, in <module>
optimized = c.optimize_for_target_gateset(circuit, gateset = cg.SycamoreTargetGateset())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/transformers/transformer_api.py", line 379, in func_with_logging
return _transform_and_log(
^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/transformers/transformer_api.py", line 438, in _transform_and_log
transformed_circuit = _run_transformer_on_circuit(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/transformers/transformer_api.py", line 424, in _run_transformer_on_circuit
return func(mutable_circuit if mutable_circuit else circuit, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/transformers/optimize_for_target_gateset.py", line 150, in optimize_for_target_gateset
circuit = transformer(circuit, context=context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/transformers/target_gatesets/compilation_target_gateset.py", line 71, in transformer_with_kwargs
return transformer(circuit, context=context, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/transformers/transformer_api.py", line 379, in func_with_logging
return _transform_and_log(
^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/transformers/transformer_api.py", line 438, in _transform_and_log
transformed_circuit = _run_transformer_on_circuit(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/transformers/transformer_api.py", line 424, in _run_transformer_on_circuit
return func(mutable_circuit if mutable_circuit else circuit, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq_google/transformers/target_gatesets/sycamore_gateset.py", line 75, in merge_swap_rzz_and_2q_unitaries
circuit = cirq.merge_operations_to_circuit_op(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/transformers/transformer_primitives.py", line 566, in merge_operations_to_circuit_op
return merge_operations(circuit, merge_func, tags_to_ignore=tags_to_ignore, deep=deep)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/transformers/transformer_primitives.py", line 505, in merge_operations
merged_circuit.add_op_to_moment(moment_idx, op)
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/transformers/transformer_primitives.py", line 345, in add_op_to_moment
self.ops_by_index[moment_index][op] = 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/_compat.py", line 104, in wrapped_no_args
result = func(self)
^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/value/value_equality_attr.py", line 90, in _value_equality_hash
return hash((self._value_equality_values_cls_(), self._value_equality_values_()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/_compat.py", line 104, in wrapped_no_args
result = func(self)
^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/value/value_equality_attr.py", line 90, in _value_equality_hash
return hash((self._value_equality_values_cls_(), self._value_equality_values_()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/_compat.py", line 104, in wrapped_no_args
result = func(self)
^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/_compat.py", line 104, in wrapped_no_args
result = func(self)
^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/ops/eigen_gate.py", line 319, in _value_equality_values_
return self._canonical_exponent, self._global_shift
^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/ops/eigen_gate.py", line 311, in _canonical_exponent
period = self._period()
^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/ops/eigen_gate.py", line 300, in _period
return _approximate_common_period(real_periods)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/ops/eigen_gate.py", line 443, in _approximate_common_period
common = float(_common_rational_period(approx_rational_periods))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/ops/eigen_gate.py", line 461, in _common_rational_period
int_common_period = _lcm(int_periods)
^^^^^^^^^^^^^^^^^
File "/Users/xxx/xxx/cirqenv/lib/python3.11/site-packages/cirq/ops/eigen_gate.py", line 402, in _lcm
t = t * r // math.gcd(t, r)
~~~~~~^^~~~~~~~~~~~~~~~
ZeroDivisionError: integer division or modulo by zero
```
</details>
**Cirq version**: 1.4.1
| 0easy
|
Title: Tests marked `xfail` are reported as failures
Body: Hey there, thanks for your work on `syrupy`!
I'm wondering if the fact that XFAIL tests are reported as failures is an intended design decision, a bug, or something you haven't contemplated yet.
The full context is from https://github.com/Textualize/textual/issues/2282 but, in short, I have a snapshot test that is marked with `xfail`:

However, at the end, I get a report saying that one snapshot test failed:

I expected to see a yellow warning saying that one snapshot test gave an expected failure instead of the red warning saying that the test failed, especially taking into account the confusing contrast with pytest, which happily reports that the tests passed. | 0easy
|
Title: Deprecate `accept_plain_values` argument used by `timestr_to_secs`
Body: This argument was added in 579667dfc0dcdeaa62863dc4ce690d06739ae521 when adding limit to WHILE loops. WHILE loop limits were changed in 628d405eb622918778791997efadcbe23cf7d486 so that the argument isn't anymore used for anything by Robot itself. It's not that useful in the public API and it's behavior hasn't been documented. Best to deprecate it now and remove later. | 0easy
|
Title: Remove obsolete 'bin/st2-check-license'
Body: The project ships https://github.com/StackStorm/st2/blob/master/st2common/bin/st2-check-license which is irrelevant now, considering ongoing EWC features integration in the st2 core.
The task is to find all the places: https://github.com/search?q=org%3AStackStorm+st2-check-license&type=code and remove the `st2-check-license` scripts.
This is an easy `good first issue` for someone willing to start contributing and exploring the st2 system.
Bonus points to find other obsolete, outdated, irrelevant scripts in st2 core.
Help wanted! | 0easy
|
Title: D3 backend Error
Body: ploomber report --> gives me an error , ValueError: Error when using d3 backend: expected a path with extension .html, but got: '/tmp/tmpmojk06x4.png', please change the extension | 0easy
|
Title: Allow the instance of ResourceProtector to be a decorator without an unnecessary call if we don't have any 'call' attribute, solution provided.
Body: for example on this page of [documentation](https://docs.authlib.org/en/latest/flask/2/resource-server.html) we can see:
```python
@app.route('/user')
@require_oauth()
def user_profile():
user = current_token.user
return jsonify(user)
# or with None
@app.route('/user')
@require_oauth(None)
def user_profile():
user = current_token.user
return jsonify(user)
```
If we speak about transparency in coding, `@require_oauth()` is not an obvious practice.
More often, you can encounter `@require_oauth`.
Organizing the decorator for both cases โ calling with and without attributes โ is easy:
```python
def __call__(self, *args, **kwargs):
if args and callable(args[0]):
return super().__call__()(*args, **kwargs)
return super().__call__(*args, **kwargs)
``` | 0easy
|
Title: fill_selection script not pasting 'hello world'
Body: ## Classification:
Bug
## Reproducibility:
Always
## Version
AutoKey version: 0.95.1
Used GUI (Gtk, Qt, or both): Gtk
Installed via: don't remember. Probably PPA.
Linux Distribution: Ubuntu 18.04
## Summary
The fill_selection script from the API Examples does not paste 'HELLO WORLD', but the last clipboard item.
## Steps to Reproduce (if applicable)
1. Create a new script with the contents of https://github.com/autokey/autokey/wiki/API-Examples#fill_selection-script
```
import time
cb = 'hello world'
clipboard.fill_selection(cb.upper())
time.sleep(0.2)
keyboard.send_keys('<ctrl>+v')
```
2. Set a desired abbreviation
3. Set the checkbox "Trigger immediately"
4. Save the script
5. Trigger the script
## Expected Results
display 'HELLO WORLD'
## Actual Results
displayed was my previous saved clipboard text, that was not saved through AutoKey.
Log:
```
2019-02-02 10:50:25,257 DEBUG - service - Script runner executing: Script('ngg')
2019-02-02 10:50:25,258 DEBUG - interface - Send special key: [<Key.BACKSPACE: '<backspace>'>]
2019-02-02 10:50:25,258 DEBUG - service - Input stack at end of handle_keypress: deque([], maxlen=150)
2019-02-02 10:50:25,258 ERROR - service - Ignored locking error in handle_keypress
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/autokey/service.py", line 206, in __tryReleaseLock
self.configManager.lock.release()
RuntimeError: release unlocked lock
2019-02-02 10:50:25,259 DEBUG - interface - Send special key: [<Key.BACKSPACE: '<backspace>'>]
2019-02-02 10:50:25,261 DEBUG - interface - Send special key: [<Key.BACKSPACE: '<backspace>'>]
2019-02-02 10:50:25,262 DEBUG - interface - Send special key: [<Key.BACKSPACE: '<backspace>'>]
2019-02-02 10:50:26,459 DEBUG - iomediator - Send via event interface
2019-02-02 10:50:26,460 DEBUG - interface - Send modified key: modifiers: ['<ctrl>'] key: v
```
## Notes
The [fill_clipboard script](https://github.com/autokey/autokey/wiki/API-Examples#fill_clipboard-script) works as expected. | 0easy
|
Title: [DOCS] Example in the API reference does not work
Body: <!--
Please fill in each section below, otherwise, your issue will be closed.
This info allows django CMS maintainers to diagnose (and fix!) your issue
as quickly as possible.
-->
## Description
Hi everybody! I try to produce (and publish!) one page containing a placeholder with a text-plugin and a static-alias with a text-plugin via cms.api but the example at https://docs.django-cms.org/en/latest/reference/api_references.html#example-workflows is outdated. (I need to do this for some hundred django-sites, and cannot do it by hand.) I tried hard but couldn't find an example that explains the principles behind the new way of versioning.
I have read that page and I agree on the part saying "This is done in cms.api and not on the models and managers, because the direct API via models and managers is slightly counterintuitive for developers." But the given example does NOT work.
(dabels)
## Reference
* https://docs.django-cms.org/en/latest/reference/api_references.html#example-workflows
## Do you want to help fix this issue?
<!--
The django CMS project is managed and kept alive by its open source community and is backed by the [django CMS Association](https://www.django-cms.org/en/about-us/). We therefore welcome any help and are grateful if people contribute to the project. Please use 'x' to check the items below.
-->
* [ ] Yes, I want to help fix this issue and I will join the channel #pr-reviews on [the Discord Server](https://discord-pr-review-channel.django-cms.org) to confirm with the community that a PR is welcome.
* [ ] No, I only want to report the issue.
| 0easy
|
Title: Support empty strings in enums
Body: Hey there, thanks for the nifty tool!
Something like
```yaml
access_tier:
type: string
enum:
- ""
- "Archive"
- "Hot"
- "Cool"
```
currently breaks openapi-python-client with
```
File "openapi_python_client/parser/properties/__init__.py", line 545, in build_schemas
schemas_or_err = update_schemas_with_data(name, data, schemas)
File "openapi_python_client/parser/properties/__init__.py", line 521, in update_schemas_with_data
prop, schemas = build_model_property(data=data, name=name, schemas=schemas, required=True, parent_name=None)
File "openapi_python_client/parser/properties/__init__.py", line 261, in build_model_property
prop, schemas = property_from_data(
File "openapi_python_client/parser/properties/__init__.py", line 509, in property_from_data
return _property_from_data(name=name, required=required, data=data, schemas=schemas, parent_name=parent_name)
File "openapi_python_client/parser/properties/__init__.py", line 453, in _property_from_data
return build_enum_property(
File "openapi_python_client/parser/properties/__init__.py", line 343, in build_enum_property
values = EnumProperty.values_from_list(enum)
File "openapi_python_client/parser/properties/enum_property.py", line 62, in values_from_list
if value[0].isalpha():
TypeError: 'NoneType' object is not subscriptable
```
While it doesn't seem like a very standard practice, I don't see anything in OpenAPI against it, and other code generators choose to support it (e.g. https://github.com/lukeautry/tsoa/pull/468).
**OpenAPI Spec File**
https://github.com/drakkan/sftpgo/blob/main/httpd/schema/openapi.yaml
**Desktop (please complete the following information):**
- OS: Linux
- Python Version: 3.9
- openapi-python-client version 0.8.0
| 0easy
|
Title: Should check linkage ground contact in reverse order
Body: https://github.com/mithi/hexapod-robot-simulator/blob/f67434e8a3c8bd8e0dfaa73631b2050a24530c01/hexapod/linkage.py#L161
IE do this instead
```python
ground_contact = self.p3
for point in reversed(self.all_points):
if point.z < ground_contact.z:
ground_contact = point
``` | 0easy
|
Title: Ability to draw circles on maps
Body: The drawing layer can currently draw lines and polygons, but it would be useful to also draw circles (cf [this tweet](https://twitter.com/AlanZucconi/status/930480664234913792)).
The GoogleMaps JavaScript API supports circles (see [docs](https://developers.google.com/maps/documentation/javascript/3.exp/reference#Circle)).
To implement this, I suggest looking at the current implementation for drawing lines on a map -- see [Python side](https://github.com/pbugnion/gmaps/blob/master/gmaps/drawing.py) and [JavaScript side](https://github.com/pbugnion/gmaps/blob/master/js/src/Drawing.js)). | 0easy
|
Title: OUTPUT_MAX_BYTES should be a setting
Body: HNY!
Just ran into the OUTPUT_MAX_BYTES warning, and it's quite a nuisance IMO.
1) there's no recovering from this helpful message - not great, especially in App mode because it effectively breaks the page till the app is restarted
2) why does it `MARIMO_OUTPUT_MAX_BYTES` need to be an env var? it's not possible to change it without restarting everything - couldn't it be a setting? what's the idea of separating these rather random settings out into env vars?
```
marimo supports the following environment variables for advanced configuration:
| Environment Variable | Description | Default Value |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | --------------- |
| `MARIMO_OUTPUT_MAX_BYTES` | Maximum size of output that marimo will display. Outputs larger than this will be truncated. | 5,000,000 (5MB) |
| `MARIMO_STD_STREAM_MAX_BYTES` | Maximum size of standard stream (stdout/stderr) output that marimo will display. Outputs larger than this will be truncated. | 1,000,000 (1MB) |
| `MARIMO_SKIP_UPDATE_CHECK` | If set to "1", marimo will skip checking for updates when starting. | Not set |
```
3) OR could `mo._messaging.streams.OUTPUT_MAX_BYTES = 10_000_000` work similarly to `pd.options.display` (which can be changed upfront in the notebook)?
4) I have indeed produced large output, but it might not have been considered that it is spread across many lazy tabs (altair charts) | 0easy
|
Title: Docker docs
Body: Add to docs:
Clean install docker commands:
sudo docker-compose stop
(If TRMM is the only thing on this docker host you can use below commands)
sudo docker rm -f $(sudo docker ps -a -q)
sudo docker volume rm $(sudo docker volume ls -q)
sudo docker network prune
If you are running other things on the same host you will have to remove all the images and volumes manually. Once that is complete you can run sudo docker network prune to cleanup the networks no longer in use. (This will remove ALL docker networks no longer used, Not just TRMM networks)
Then following the guide TRMM will rebuild itself when you run
sudo docker-compose up -d (edited)
I botched a new install of the docker style and could not get it to come up due to a "Network" error untill i removed the docker networks and let them rebuild. The above removes all the existing docker containers and network and rebuilds it all. Might be helpful to others to ensure a clean start. | 0easy
|
Title: Simple mistakes trigger unclear error messages in the ALBERT example
Body: Simple mistakes trigger unclear error messages in the ALBERT example, that is:
- [x] Absence of the unpacked data for trainer (currently triggers `requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://huggingface.co/api/models/data/tokenizer`)
- [ ] Running all peers in `--client_mode` (currently triggers `AllReduce failed: could not find a group`)
It would be great to show a clear error message in these cases. | 0easy
|
Title: use the latest bundle to serve the app
Body: Bowtie serves the production bundle if it sees it, regardless of whether there's a more recent dev bundle. This can cause confusion if you've built a production bundle then modify behavior and run a dev build and not see the new behavior.
Solution: modify the flask route to use the newest bundle if both exist. | 0easy
|
Title: Variable nodes with nested variables report a parsing error, but work properly in the runtime
Body: ### Context
We have a rule in Robocop that parses non-local variables and checks if they are written in uppercase. I realized recently (thanks to the https://github.com/MarketSquare/robotframework-robocop/issues/678) that we should exclude nested variables from the check, so that `${VAR${nested}}` would not report a rule violation.
### The bug
I realized that correct variables are marked with an error by RF Parsing API. For example, this code, run with `robot --variable var1:1 test.robot`:
```
*** Variables ***
${var${1}} 1
*** Test Cases ***
My Test
Log To Console ${var${1}}
```
executes with PASS state.
But when parsing the variable node, I see that there is an error there:
<img width="537" alt="Screenshot 2023-04-02 at 20 03 57" src="https://user-images.githubusercontent.com/7412964/229370842-f4042925-9b7e-4313-af3f-5d6b2582ec3b.png">
The bug appears in RF 5 and 6. I haven't tested for earlier versions.
Here are some more examples that raise the same error for RF Parsing API:
```
${MY_VAR${var}} 11
${MY VAR${VAR}} 11
${${var}MY VAR${VAR}} 11
${${var${VAR}}MY VAR${VAR}} 11
${@{VAR}[1]MY_VAR&{var.param}} 11
${${var${VAR}}my_var} 11
${${VAR}my_var} 11
${${VAR}my_var${var}} 11
${@{VAR}[1]my_var} 11
${@{VAR}[1]my_var&{var.param}} 11
``` | 0easy
|
Title: Clearly Distinguish Sensitive from Insensitive Components
Body: Some components look virtually identical regardless of whether they're sensitive or not. Look through all components and make sure that's not the case.
For example, `rio.Textinput`:

| 0easy
|
Title: Sort dependencies in requirements.txt/environment.yml to increase cache hit
Body: ### Proposed change
<!-- Use this section to describe the feature you'd like to be added. -->
Sort the contents of `environment.yml` and /or `requirements.txt` before copying it to the image. The goal here is to make two repos that both require `numpy` and `pandas` but write them in different order in one of the two files mentioned share a cache layer.
Comes via https://github.com/jupyter/repo2docker/pull/743#discussion_r304020569 and follow up comment about first doing a survey.
### Alternative options
Do nothing.
### Who would use this feature?
<!-- Describe the audience for this feature. This information will affect who chooses to work on the feature with you. -->
People who build repositories that use a (very) common set of dependencies.
### How much effort will adding it take?
<!-- Try to estimate how much work adding this feature will require. This information will affect who chooses to work on the feature with you. -->
The change itself would be easy to implement. The main effort is in determining if this would benefit anyone or if it is very unlikely. In which case we should not implement this.
### Who can do this work?
<!-- What skills are needed? Who can be recruited to add this feature? This information will affect who chooses to work on the feature with you. -->
People with scripting skills who can put together a script to look at https://archive.analytics.mybinder.org/ to find example repositories to analyse and then compare the `environment.yml`/`requirements.txt` in these repositories.
| 0easy
|
Title: [ENH] discrete signature feature transformer
Body: It would be great to have a simple, no-bells-and-whistles signature feature transformer implemented in `sktime`.
(Most variations like windowing or augmentations can then be obtained from this via transformation pipelines)
Current implementations suffer either from overengineering (and/or unclear, unstable interfaces), or dependency on abandoned packages relying on lower python versions, see discussion in https://github.com/sktime/sktime/issues/7255
However, the idea behind signatures is quite simple, they are time-ordered generalizations of moments for multivariate time series, I describe it in the following for a bivariate time series (after taking first differences).
Let $(x_{1,1}, x_{2,1}) , \dots, (x_{1,T}, x_{2,T})$ be a bivariate time series.
Elements of the "signature" are indexed by strings made up of the literals 1, and 2.
I list the signature elements for the strings up to length 3, the general pattern should follow.
1: the mean of the ${x_{1, i}}$, over all $i$.
2: the mean of the ${x_{2, i}}$, over all $i$.
11: the mean of all products ${x_{1, i}\cdot x_{1, j}}$, over all $i<j$.
12: the mean of all products ${x_{1, i}\cdot x_{2, j}}$, over all $i<j$.
$\ell m$ : the mean of all products ${x_{\ell, i}\cdot x_{m, j}}$, over all $i<j$.
$\ell m n$: the mean of all products ${x_{\ell, i}\cdot x_{m, j}\cdot x_{n, k}}$, over all $i<j<k$.
And so on. Generalisation to longer strings, or more dimensions should be clear.
Due to combinatorial explosion, it typically does not make sense to compute higher than 3, or 2 for high-dimensional time series.
The transformer should be parameterized in terms of an integer `degree`, that is the length of strings to include. Often, the index of the time series is included as a dimension, so for univariate time series, one gets two dimension together with the time index. This should be a boolean option, e.g., `use_index`.
For column names of the output, I would simply choose the strings as above, e.g., `"1"`, `"2"`, `"12"`, and so on.
The transformer is "series-to-primitives" type, the supersimple extension template should be sufficient to follow: https://github.com/sktime/sktime/blob/main/extension_templates/transformer_supersimple.py
The `scitypes:transform-output` tag should change to `"Primitives".
| 0easy
|
Title: Lacking Documentation
Body: Could you please add somewhere in the doc a minimal working example on how to exactly use a `strategy` - ideally leveraging `Python classes` in order to be modular with the strategies?
My first assumption was that running a strategy on a given `dataset` would filter out the rows and keep only the complying ones but that does not appear to be the case.
Please confirm if a strategy simply adds the relevant technical indicators to a dataset.
This is an example of what I have tried, and nothing happened:
```python
df = fetch_bars(exchange, args.symbol, limit=1)
NonMPStrategy = ta.Strategy(
name="EMAs, BBs, and MACD",
description="Non Multiprocessing Strategy by rename Columns",
ta=[
{"kind": "ema", "length": 8},
{"kind": "ema", "length": 21},
{"kind": "bbands", "length": 20, "col_names": ("BBL", "BBM", "BBU")},
{"kind": "macd", "fast": 8, "slow": 21, "col_names": ("MACD", "MACD_H", "MACD_S")}
]
)
df.ta.strategy(ta.CommonStrategy, verbose=True)
print(df)
```
Also, what about the `signals`, are they `Booleans` to indicate buy/sell signals?
I am a bit lost with this lib... more documentation and examples would be great! | 0easy
|
Title: Implement distutils.strtobool to remove dependency on distutils
Body: Getting the following deprecation warning on 3.10:
```
../../.pyenv/versions/3.10.2/envs/graphql-db-api/lib/python3.10/site-packages/shillelagh/fields.py:5
/Users/alex/.pyenv/versions/3.10.2/envs/graphql-db-api/lib/python3.10/site-packages/shillelagh/fields.py:5: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.util import strtobool
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
``` | 0easy
|
Title: Bug: When setting size=0, 1 instance is created and not put in a list
Body: Hello, I am not sure if this is intended behavior or undefined behavior, but using `Fixture` with `size=random.randint(0, 200)` has caused us a bit of trouble.
Instead of giving back an empty list (what we assumed), when `size=0`, `Fixture` still returns 1 instance of the model and does not put it in the list. I created a sample example code of what we have:
```python
from pydantic import BaseModel
from pydantic_factories import ModelFactory
from pydantic_factories.fields import Fixture
from pydantic_factories.plugins.pytest_plugin import register_fixture
class TestSubModel(BaseModel):
...
class TestModel(BaseModel):
submodels: list[TestSubModel]
@register_fixture
class TestSubModelFactory(ModelFactory[TestSubModel]):
__model__ = TestSubModel
@register_fixture
class TestModelFactory(ModelFactory[TestModel]):
__model__ = TestModel
submodels = Fixture(TestSubModelFactory, size=1) # change to 0 to get test failing
def test_factory(test_model_factory: TestModelFactory):
TestModel.parse_obj(test_model_factory.build().dict())
```
when changed 1 to 0 you should get:
```
> ???
E pydantic.error_wrappers.ValidationError: 1 validation error for TestModel
E submodels
E value is not a valid list (type=type_error.list)
```
To my understanding, allowing to return an empty list on `size=0` would be very useful as it would allow to check the edge case of no submodels. Maybe we are doing something wrong? | 0easy
|
Title: Dont use model with RandomFeature in Boost on Errors step
Body: | 0easy
|
Title: Jupyter notebook tutorials: <div> Notebook cells that look nice in Github
Body: Many of our Jupyter notebooks have special formatted blocks. Cf:

https://github.com/cleanlab/cleanlab/blob/master/docs/source/tutorials/image.ipynb
These good in Jupyter and in Colab, but look ugly in Github display of the notebook (eg. the above link) due to the \</div\> tag.
Would be nice to make these cells simultaneously look good in Github display as well as Jupyter and Colab.
| 0easy
|
Title: Possible bug in WmdSimilarity
Body: <!--
**IMPORTANT**:
- Use the [Gensim mailing list](https://groups.google.com/forum/#!forum/gensim) to ask general or usage questions. Github issues are only for bug reports.
- Check [Recipes&FAQ](https://github.com/RaRe-Technologies/gensim/wiki/Recipes-&-FAQ) first for common answers.
Github bug reports that do not include relevant information and context will be closed without an answer. Thanks!
-->
#### Problem description
I wanted to check if WmdSimilarity is any better (it should not be) from multiprocessing wmdistance, but it did not work at all.
So, I made a little example and the result was exactly the same: AttributeError: 'WmdSimilarity' object has no attribute 'w2v_model'
#### Steps/code/corpus to reproduce
```python
from gensim.models import Word2Vec
from gensim.similarities import WmdSimilarity
a = "Trumpโs decision not to join the Trans-Pacific Partnership (TPP) came as little surprise. During his election campaign he railed against international trade deals, blaming them for job losses and focusing anger in the industrial heartland. Obama had argued that this deal would provide an effective counterweight to China in the region."
b = "Trump's decision to withdraw the US from TPP is also a first step in the administration's efforts to amass a governing coalition to push the new President's agenda, one that includes the blue-collar workers who defected from Democrats and flocked to Trump's candidacy in November."
c = "Although the Trans-Pacific Partnership had not been approved by Congress, Mr. Trumpโs decision to withdraw not only doomed former President Barack Obamaโs signature trade achievement, but also carried broad geopolitical implications in a fast-growing region. The deal, which was to link a dozen nations from Canada and Chile to Australia and Japan in a complex web of trade rules, was sold as a way to permanently tie the United States to East Asia and create an economic bulwark against a rising China."
def w2v(corpus):
w2v_model = Word2Vec(corpus, alpha=0.025, vector_size=50,
window=5, min_count=1, workers=2, epochs=50, sg = 0)
return w2v_model
corpus = "\n".join([a,b,c])
model = w2v(corpus)
print(model, type(model))
print(WmdSimilarity([a,b,c], model))
```
RESULTS:
```
Word2Vec(vocab=47, vector_size=50, alpha=0.025) <class 'gensim.models.word2vec.Word2Vec'>
Traceback (most recent call last):
File "/home/tedo/diagnose/proba.py", line 18, in <module>
print(WmdSimilarity([a,b,c], model))
File "/usr/local/lib/python3.9/dist-packages/gensim/similarities/docsim.py", line 1099, in __str__
return "%s<%i docs, %i features>" % (self.__class__.__name__, len(self), self.w2v_model.wv.syn0.shape[1])
AttributeError: 'WmdSimilarity' object has no attribute 'w2v_model'
```
#### Versions
Please provide the output of:
```python
import platform; print(platform.platform())
import sys; print("Python", sys.version)
import struct; print("Bits", 8 * struct.calcsize("P"))
import numpy; print("NumPy", numpy.__version__)
import scipy; print("SciPy", scipy.__version__)
import gensim; print("gensim", gensim.__version__)
from gensim.models import word2vec;print("FAST_VERSION", word2vec.FAST_VERSION)
```
Linux-5.10.0-9-amd64-x86_64-with-glibc2.31
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110]
Bits 64
NumPy 1.21.2
SciPy 1.7.1
gensim 4.1.1
FAST_VERSION 1 | 0easy
|
Title: datepicker doesn't open if date values are `None`
Body: Originally reported in https://community.plot.ly/t/datepickerrange-clearable-in-tabs-not-working-as-expected/6850/4
```python
import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
from datetime import datetime as dtime
app = dash.Dash()
app.config['suppress_callback_exceptions'] = True
app.layout = html.Div([
dcc.DatePickerRange(
id='Dr1',
clearable=True,
reopen_calendar_on_clear=True,
start_date_placeholder_text='Select a date',
end_date=dtime.today().strftime("%Y-%m-%d")
),
html.Div(id='output')
])
@app.callback(
Output('output', 'children'),
[Input('Dr1', 'start_date'),
Input('Dr1', 'end_date')])
def dates_selected(start_date, end_date):
value = "From- %s To- %s" % (start_date, end_date)
return value
if __name__ == '__main__':
app.run_server(debug=True)
```
Quite a few error messages in the console
 | 0easy
|
Title: Add warning when the user launches Autokey under wayland
Body: Just to ease issues with users not understanding what is going wrong.
If this could be tagged as easy fix that would be neat.
So if anyone wants to take a crack at fixing this here is what more or less how I would do it;
https://unix.stackexchange.com/questions/202891/how-to-know-whether-wayland-or-x11-is-being-used
From this link, the command `loginctl show-session $(awk '/tty/ {print $1}' <(loginctl)) -p Type | awk -F= '{print $2}'` seems to be the best solution to determine what login session the user is in. (`wayland` or `x11`)
I'd slap this in a function in `UI_common_functions.py` with a `subprocess` call (there are many examples of using this call elsewhere in the codebase) and check the output and throw both a logging message as well as an error message (I'd add it in the `checkRequirements()` function in the same file.
| 0easy
|
Title: Missing SCML_Supervised example in doc
Body: As pointed out in https://github.com/scikit-learn-contrib/metric-learn/issues/307#issuecomment-801188956, the current example for `SCML_Supervised` is in the weakly supervised setting. | 0easy
|
Title: [Bug]: Unit test `tests/models/embedding/vision_language/test_phi3v.py` failing
Body: ### Your current environment
<details>
<summary>The output of `python collect_env.py`</summary>
```text
Your output of `python collect_env.py` here
Collecting environment information...
PyTorch version: 2.5.1+cu124
Is debug build: False
CUDA used to build PyTorch: 12.4
ROCM used to build PyTorch: N/A
OS: Ubuntu 24.04.1 LTS (x86_64)
GCC version: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
Clang version: 18.1.3 (1ubuntu1)
CMake version: version 3.28.3
Libc version: glibc-2.39
Python version: 3.12.9 | packaged by Anaconda, Inc. | (main, Feb 6 2025, 18:56:27) [GCC 11.2.0] (64-bit runtime)
Python platform: Linux-6.8.0-47-generic-x86_64-with-glibc2.39
Is CUDA available: True
CUDA runtime version: 12.6.77
CUDA_MODULE_LOADING set to: LAZY
Nvidia driver version: 550.127.05
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: True
Versions of relevant libraries:
[pip3] mypy-extensions==1.0.0
[pip3] numpy==1.26.4
[pip3] nvidia-cublas-cu12==12.4.5.8
[pip3] nvidia-cuda-cupti-cu12==12.4.127
[pip3] nvidia-cuda-nvrtc-cu12==12.4.127
[pip3] nvidia-cuda-runtime-cu12==12.4.127
[pip3] nvidia-cudnn-cu12==9.1.0.70
[pip3] nvidia-cufft-cu12==11.2.1.3
[pip3] nvidia-curand-cu12==10.3.5.147
[pip3] nvidia-cusolver-cu12==11.6.1.9
[pip3] nvidia-cusparse-cu12==12.3.1.170
[pip3] nvidia-nccl-cu12==2.21.5
[pip3] nvidia-nvjitlink-cu12==12.4.127
[pip3] nvidia-nvtx-cu12==12.4.127
[pip3] pyzmq==26.2.1
[pip3] sentence-transformers==3.2.1
[pip3] torch==2.5.1
[pip3] torchaudio==2.5.1
[pip3] torchvision==0.20.1
[pip3] transformers==4.49.0
[pip3] transformers-stream-generator==0.0.5
[pip3] triton==3.1.0
[pip3] tritonclient==2.51.0
[pip3] vector-quantize-pytorch==1.21.2
[conda] numpy 1.26.4 pypi_0 pypi
[conda] nvidia-cublas-cu12 12.4.5.8 pypi_0 pypi
[conda] nvidia-cuda-cupti-cu12 12.4.127 pypi_0 pypi
[conda] nvidia-cuda-nvrtc-cu12 12.4.127 pypi_0 pypi
[conda] nvidia-cuda-runtime-cu12 12.4.127 pypi_0 pypi
[conda] nvidia-cudnn-cu12 9.1.0.70 pypi_0 pypi
[conda] nvidia-cufft-cu12 11.2.1.3 pypi_0 pypi
[conda] nvidia-curand-cu12 10.3.5.147 pypi_0 pypi
[conda] nvidia-cusolver-cu12 11.6.1.9 pypi_0 pypi
[conda] nvidia-cusparse-cu12 12.3.1.170 pypi_0 pypi
[conda] nvidia-nccl-cu12 2.21.5 pypi_0 pypi
[conda] nvidia-nvjitlink-cu12 12.4.127 pypi_0 pypi
[conda] nvidia-nvtx-cu12 12.4.127 pypi_0 pypi
[conda] pyzmq 26.2.1 pypi_0 pypi
[conda] sentence-transformers 3.2.1 pypi_0 pypi
[conda] torch 2.5.1 pypi_0 pypi
[conda] torchaudio 2.5.1 pypi_0 pypi
[conda] torchvision 0.20.1 pypi_0 pypi
[conda] transformers 4.49.0 pypi_0 pypi
[conda] transformers-stream-generator 0.0.5 pypi_0 pypi
[conda] triton 3.1.0 pypi_0 pypi
[conda] tritonclient 2.51.0 pypi_0 pypi
[conda] vector-quantize-pytorch 1.21.2 pypi_0 pypi
ROCM Version: Could not collect
Neuron SDK Version: N/A
vLLM Version: 0.1.dev5072+g63d635d (git sha: 63d635d
vLLM Build Flags:
CUDA Archs: Not Set; ROCm: Disabled; Neuron: Disabled
LD_LIBRARY_PATH=miniconda3/envs/vllm073/lib/python3.12/site-packages/cv2/../../lib64:/usr/lib/x86_64-linux-gnu/openmpi/lib/:/usr/local/cuda-12.6/lib64:
NCCL_CUMEM_ENABLE=0
TORCHINDUCTOR_COMPILE_THREADS=1
CUDA_MODULE_LOADING=LAZY
```
</details>
### ๐ Describe the bug
BUG: unittest `tests/models/embedding/vision_language/test_phi3v.py` is failiing
After installing vllm, run
`pytest -sv tests/models/embedding/vision_language/test_phi3v.py::test_models_image[half-TIGER-Lab/VLM2Vec-Full]`
A snippet of unittest failure log
```
tests/models/embedding/vision_language/test_phi3v.py:119:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/models/embedding/vision_language/test_phi3v.py:69: in _run_test
check_embeddings_close(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def check_embeddings_close(
*,
embeddings_0_lst: Sequence[list[float]],
embeddings_1_lst: Sequence[list[float]],
name_0: str,
name_1: str,
tol: float = 1e-3,
) -> None:
assert len(embeddings_0_lst) == len(embeddings_1_lst)
for prompt_idx, (embeddings_0, embeddings_1) in enumerate(
zip(embeddings_0_lst, embeddings_1_lst)):
assert len(embeddings_0) == len(embeddings_1), (
f"Length mismatch: {len(embeddings_0)} vs. {len(embeddings_1)}")
sim = F.cosine_similarity(torch.tensor(embeddings_0),
torch.tensor(embeddings_1),
dim=0)
fail_msg = (f"Test{prompt_idx}:"
f"\n{name_0}:\t{embeddings_0[:16]!r}"
f"\n{name_1}:\t{embeddings_1[:16]!r}")
> assert sim >= 1 - tol, fail_msg
E AssertionError: Test0:
E hf: [0.0005359649658203125, 0.0028438568115234375, -0.033050537109375, 0.009765625, 0.003566741943359375, 0.004444122314453125, -0.0088958740234375, -0.032867431640625, -0.006267547607421875, -0.021881103515625, 0.021087646484375, 0.0010557174682617188, 0.0147247314453125, -0.004642486572265625, 0.0032863616943359375, 0.006305694580078125]
E vllm: [0.0029010772705078125, 0.005504608154296875, -0.030792236328125, 0.00962066650390625, 0.0016222000122070312, 0.0036258697509765625, -0.00925445556640625, -0.03411865234375, -0.005634307861328125, -0.0216522216796875, 0.022430419921875, 0.0002880096435546875, 0.016082763671875, -0.00467681884765625, 0.004161834716796875, 0.004535675048828125]
tests/models/embedding/utils.py:32: AssertionError
------------------------------------------------------- Captured log call -------------------------------------------------------
WARNING transformers_modules.microsoft.Phi-3.5-vision-instruct.4a0d683eba9f1d0cbfb6151705d1ee73c25a80ca.modeling_phi3_v:logging.py:329 You are not running the flash-attention implementation, expect numerical differences.
======================================================= warnings summary ========================================================
tests/models/embedding/vision_language/test_phi3v.py::test_models_image[half-TIGER-Lab/VLM2Vec-Full]
/home/tan/miniconda3/envs/vllm073/lib/python3.12/site-packages/transformers/models/auto/image_processing_auto.py:594: FutureWarning: The image_processor_class argument is deprecated and will be removed in v4.42. Please use `slow_image_processor_class`, or `fast_image_processor_class` instead
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================================== short test summary info ====================================================
FAILED tests/models/embedding/vision_language/test_phi3v.py::test_models_image[half-TIGER-Lab/VLM2Vec-Full] - AssertionError: Test0:
=========================================== 1 failed, 1 warning in 311.72s (0:05:11) ============================================
### Before submitting a new issue...
- [x] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the [documentation page](https://docs.vllm.ai/en/latest/), which can answer lots of frequently asked questions. | 0easy
|
Title: Wrong/Missing output of PVI Positive Volume Index
Body: **Which version are you running? The lastest version is on Github. Pip is for major releases.**
```
0.3.79b0
```
**Do you have _TA Lib_ also installed in your environment?**
```sh
0.4.25
```
**Have you tried the _development_ version? Did it resolve the issue?**
```
It didn't
```
**Describe the bug**
By definition, Positive Volume Index should return two things: PVT and 255 MA of PVT. It produces only a single value and that is too wrong.
**To Reproduce**
```python
import pandas as pd
import pandas_ta as ta
df = pd.DataFrame() # Empty DataFrame
# Load data
# OR if you have yfinance installed
df = df.ta.ticker("aapl")
# New Columns with results
df.ta.pvi(append=True);
# Take a peek
print(df.tail())
```
```sh
// Output
Open High Low Close Volume Dividends Stock Splits PVI_1
Date
2022-11-25 00:00:00-05:00 148.309998 148.880005 147.119995 148.110001 35195900 0.0 0.0 1966.006190
2022-11-28 00:00:00-05:00 145.139999 146.639999 143.380005 144.220001 69246000 0.0 0.0 1963.379764
2022-11-29 00:00:00-05:00 144.289993 144.809998 140.350006 141.169998 83763800 0.0 0.0 1961.264938
2022-11-30 00:00:00-05:00 141.399994 148.720001 140.550003 148.029999 111224400 0.0 0.0 1966.124328
2022-12-01 00:00:00-05:00 148.210007 149.130005 146.615005 148.309998 71250416 0.0 0.0 1966.124328
```
**Expected behavior**
There should be two values PVI_1 and PVI_SIGNAL_1 (or whatever like PVI_255_S_1)
```sh
Open High Low Close Volume Dividends Stock Splits PVI_1 PVT_SIGNAL_1
Date
...
2022-11-29 00:00:00-05:00 144.289993 144.809998 140.350006 141.169998 83763800 0.0 0.0 931.75 941.01
2022-11-30 00:00:00-05:00 141.399994 148.720001 140.550003 148.029999 111224400 0.0 0.0 936.61 940.97
2022-12-01 00:00:00-05:00 148.210007 149.130005 146.615005 148.309998 71250416 0.0 0.0 936.61 940.94
```
This is the definition https://www.investopedia.com/terms/p/pvi.asp
## Probable solution?
I also found a probable solution https://github.com/voice32/stock_market_indicators/blob/master/indicators.py#L457
My experience in python is not so much like in days not weeks - I copied and paste the codes but it looks like df it expects is kind of outdated. Although, the formula matches, it has an "if" conditions depending on if current volume is > the previous volume. It also has 255 written. So my hopes are high it will work.
**Screenshots**

**Additional context**
You can use TradingView chart as shown above to see correct output.
Thanks for using Pandas TA!
| 0easy
|
Title: The `np.size()` Function Fails
Body: ## The Bug
It seems Numba support the `ndarray` property of an array (See [`numpy.ndarray.size`](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.size.html)) yet fails with the function [`np.size()`](https://numpy.org/doc/stable/reference/generated/numpy.ma.size.html).
## Code for Producing the Bug
The following works:
```python
import numpy as np
from numba import njit
@njit
def SumArrayWorks( vX : np.ndarray ) -> float:
arrSum = 0.0
for ii in range(vX.size):
arrSum += vX[ii]
return arrSum
vX = np.array([1.0, 2.0, 3.0, 4.0])
SumArrayWorks(vX) #<! Works!
```
While this will fail:
```python
import numpy as np
from numba import njit
@njit
def SumArrayFails( vX : np.ndarray ) -> float:
arrSum = 0.0
for ii in range(np.size(vX)):
arrSum += vX[ii]
return arrSum
vX = np.array([1.0, 2.0, 3.0, 4.0])
SumArrayFails(vX) #<! Fails!
```
The error is:
```python
TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Use of unsupported NumPy function 'numpy.size' or unsupported use of the function.
```
## System Information
1. Numba: `0.59.0`.
2. Python: `3.12`.
3. NumPy: `1.26.4`.
4. OS: Windows 11 Pro 23H2.
| 0easy
|
Title: ENH: Compatible with latest sqlalchemy
Body: Currently, `xorbits.pandas.read_sql` doesn't support the latest sqlalchemy, as Pandas has merged this PR(https://github.com/pandas-dev/pandas/issues/40686), we can support it now. | 0easy
|
Title: stoch - fastk - fastd values
Body: trying to get fastk and fastd values from stoch indicator - the talib code is below, how can I get them in pandas-ta
```python
self.stoch=bt.talib.STOCHF(self.data.high, self.data.low, self.data.close, fastk_period=10, slowk_period=4, slowd_period=4)
self.fastk=self.stoch.fastk
self.fastd=self.stoch.fastd
``` | 0easy
|
Title: tip on installing ploomber in the process running jupyterlab
Body: [here](https://docs.ploomber.io/en/latest/user-guide/jupyter.html#activating-the-jupyter-extension) we have a big note that explains that the process running jupyter must have ploomber installed (users may only install it in the kernel), but we're missing links from other sections to that one
we should mention that here: https://docs.ploomber.io/en/latest/user-guide/jupyter.html#troubleshooting-pipeline-loading
also, we should link from this section to the troubleshoot section: https://docs.ploomber.io/en/latest/user-guide/jupyter.html#activating-the-jupyter-extension
we should also link from here: https://docs.ploomber.io/en/latest/get-started/basic-concepts.html#the-cell-injection-process to the troubleshooting section | 0easy
|
Title: `dvc exp remove --queue -A`: possibly incomplete result returned
Body: # Bug Report
<!--
## Issue name
Issue names must follow the pattern `command: description` where the command is the dvc command that you are trying to run. The description should describe the consequence of the bug.
Example: `repro: doesn't detect input changes`
-->
## Description
As discussed in https://github.com/iterative/dvc/pull/10633#discussion_r1857943029,
when using `dvc exp remove` with both `--queue` and `-A `, an incomplete list of removed experiments might be returned: the queued ones would be missing from the returned list, even if they are effectively removed as expected.
This is just a minor inconvenience at the moment, but for the sake of correctness and code cleanliness, I'll put it here.
### Reproduce
1. create repo
2. run experiments
3. queue experiments (`dvc exp run --queue`)
4. `dvc exp remove --queue -A`
### Expected
The list of all experiments, both queued and committed
**Additional Information (if any):**
https://github.com/iterative/dvc/blob/d38b2dbcb873b5112976c5ad40c5574b5d2a41f3/dvc/repo/experiments/remove.py#L69-L71
line 71 should use `removed.extend` just as it is done in the other if / elif code blocks
I can start working on it soon. | 0easy
|
Title: Unnamed Series visualization add axis name
Body: In cases where the column does not have a name, such as in a Series visualization, we should add an axis label when the `name` property of the Series is not present. In this example, we can replace `(binned)` with `Series (binned)`. Need to check other edge cases where the axis name might be empty.
```python
df = pd.read_csv("https://raw.githubusercontent.com/lux-org/lux-datasets/master/data/employee.csv")
df["YearsAtCompany"]/df["TotalWorkingYears"]
```

| 0easy
|
Title: Deep compositions are broken
Body: I think i upgraded gpt-index without accounting for a breaking change | 0easy
|
Title: Implement FloatConverter
Body: Implement `FloatConverter` along the lines of [`IntConverter`](https://falcon.readthedocs.io/en/stable/api/routing.html#falcon.routing.IntConverter). Draw inspiration from `IntConverter`, or even find an efficient way to share code between the two!
Add the new converter to the list of [Built-in Converters](https://falcon.readthedocs.io/en/stable/api/routing.html#built-in-converters) under the `float` identifier.
Open questions: should we support converting `nan`, `inf` & `-inf` from path? | 0easy
|
Title: Add support for `mt.setdiff1d`
Body: <!--
Thank you for your contribution!
Please review https://github.com/mars-project/mars/blob/master/CONTRIBUTING.rst before opening an issue.
-->
**Is your feature request related to a problem? Please describe.**
`mt.setdiff1d` could be added support.
| 0easy
|
Title: Vidya indicator calculated results are not same as tradingview
Body: **Which version are you running?
The last version : (from python-dateutil>=2.8.1->pandas->pandas-ta==0.3.14b0)
**Is your feature request related to a problem? Please describe.**
The result of vidya function ta.vidya(df["Close"],length=7).iloc[-1] not equal with tradingview

**Describe the solution you'd like**
Fix vidya indicator results to be same as tradingview please
vidya indicator in tradingview(https://www.tradingview.com/script/hdrf0fXV-Variable-Index-Dynamic-Average-VIDYA/) is same as you mentioned source in your vidya.py with same timeframe, length but results are not match
Thanks
| 0easy
|
Title: Hyphens in model IDs can break across lines in "%ai list" markdown output
Body: <!-- Welcome! Thank you for contributing. These HTML comments will not render in the issue, but you can delete them once you've read them if you prefer! -->
<!--
Thanks for thinking of a way to improve JupyterLab. If this solves a problem for you, then it probably solves that problem for lots of people! So the whole community will benefit from this request.
Before creating a new feature request please search the issues for relevant feature requests.
-->
### Problem
In the output of `%ai list` in markdown, model IDs use hyphens, which can cause model IDs to break across lines, making them harder to read and copy in their entirety:

### Proposed Solution
Use nonbreaking hyphens (U+2011 in Unicode) to represent model IDs in the `%ai list` command's output in markdown.
### Additional context
Text output should be unaffected | 0easy
|
Title: add max number to format code using black in makefile
Body: make format command are be caused error:
`Error: Invalid value for '-l' / '--line-length': . is not a valid integer`
Please, add max number after -l command in Makefile.
https://github.com/scanapi/scanapi/blob/459b3c7e487a5057bec5a2f9a8e7c910b7663e9e/Makefile#L10 | 0easy
|
Title: Update RTM docs to reflect `rtm.start` deprecation for certain apps
Body: [Current tools docs](https://slack.dev/python-slack-sdk/real_time_messaging.html) could be updated to reflect changelog entry regard `rtm.start` method deprecation for apps created after Nov 30th, 2021.
### The page URLs
- https://slack.dev/python-slack-sdk/real_time_messaging.html
### Requirements
Please read the [Contributing guidelines](https://github.com/slackapi/python-slack-sdk/blob/main/.github/contributing.md) and [Code of Conduct](https://slackhq.github.io/code-of-conduct) before creating this issue or pull request. By submitting, you are agreeing to those rules.
| 0easy
|
Title: Accept compressed files as input to `predict` when using a `Predictor`
Body: **Is your feature request related to a problem? Please describe.**
I typically used compressed datasets (e.g. gzipped) to save disk space. This works fine with AllenNLP during training because I can write my dataset reader to load the compressed data. However, the `predict` command opens the file and reads lines for the `Predictor`. This fails when it tries to load data from my compressed files.
https://github.com/allenai/allennlp/blob/39d7e5ae06551fe371d3e16f4d93162e55ec5dcc/allennlp/commands/predict.py#L208-L218
**Describe the solution you'd like**
Either automatically detect the file is compressed or add a flag to `predict` that indicates that the file is compressed. One method that I have used to detect if a file is gzipped is [here](https://stackoverflow.com/questions/3703276/how-to-tell-if-a-file-is-gzip-compressed), although it isn't 100% accurate. I have an implementation [here](https://github.com/danieldeutsch/sacrerouge/blob/master/sacrerouge/io/util.py). Otherwise a flag like `--compression-type` to mark how the file is compressed should be sufficient. Passing the type of compression would allow support for gzip, bz2, or any other method.
| 0easy
|
Title: Process parameters are messed up for a specific case of path
Body: ## Issue
We had this in the tox file:
```
codespell {toxinidir}/. --skip {toxinidir}/.git
```
In tox 3.27 it worked fine, but in 4.0 `codespell` was run *without* the `--skip` parameter.
The workaround was to change the first parameter like this (that should be innocuous):
```
codespell {toxinidir} --skip {toxinidir}/.git
```
## Environment
Provide at least:
- OS: Ubuntu 22.04.1 LTS
- `pip list` of the host Python where `tox` is installed:
```console
Package Version
------------ -------
distlib 0.3.6
filelock 3.8.2
packaging 22.0
pip 22.3.1
platformdirs 2.6.0
pluggy 1.0.0
py 1.11.0
setuptools 59.6.0
six 1.16.0
tomli 2.0.1
tox 3.27.1
virtualenv 20.17.1
```
## Output of running tox
Provide the output of `tox -rvv`:
```console
$ fades -d tox -x tox -rvv -e lint
lint: 102 W remove tox env folder /tmp/newproy/.tox/lint [tox/tox_env/api.py:311]
lint: 137 I find interpreter for spec PythonSpec(path=/home/facundo/.local/share/fades/db02a195-2f4c-4127-af62-2b9faed4ec8a/bin/python) [virtualenv/discovery/builtin.py:56]
lint: 137 D discover exe for PythonInfo(spec=CPython3.10.6.final.0-64, exe=/home/facundo/.local/share/fades/db02a195-2f4c-4127-af62-2b9faed4ec8a/bin/python, platform=linux, version='3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]', encoding_fs_io=utf-8-utf-8) in /usr [virtualenv/discovery/py_info.py:437]
lint: 137 D filesystem is case-sensitive [virtualenv/info.py:24]
lint: 138 D got python info of /usr/bin/python3.10 from /home/facundo/.local/share/virtualenv/py_info/1/8a94588eda9d64d9e9a351ab8144e55b1fabf5113b54e67dd26a8c27df0381b3.json [virtualenv/app_data/via_disk_folder.py:129]
lint: 138 I proposed PythonInfo(spec=CPython3.10.6.final.0-64, system=/usr/bin/python3.10, exe=/home/facundo/.local/share/fades/db02a195-2f4c-4127-af62-2b9faed4ec8a/bin/python, platform=linux, version='3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:63]
lint: 138 D accepted PythonInfo(spec=CPython3.10.6.final.0-64, system=/usr/bin/python3.10, exe=/home/facundo/.local/share/fades/db02a195-2f4c-4127-af62-2b9faed4ec8a/bin/python, platform=linux, version='3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]', encoding_fs_io=utf-8-utf-8) [virtualenv/discovery/builtin.py:65]
lint: 156 I create virtual environment via CPython3Posix(dest=/tmp/newproy/.tox/lint, clear=False, no_vcs_ignore=False, global=False) [virtualenv/run/session.py:48]
lint: 156 D create folder /tmp/newproy/.tox/lint/bin [virtualenv/util/path/_sync.py:9]
lint: 156 D create folder /tmp/newproy/.tox/lint/lib/python3.10/site-packages [virtualenv/util/path/_sync.py:9]
lint: 156 D write /tmp/newproy/.tox/lint/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
lint: 156 D home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
lint: 156 D implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
lint: 156 D version_info = 3.10.6.final.0 [virtualenv/create/pyenv_cfg.py:34]
lint: 156 D virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
lint: 156 D include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
lint: 156 D base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
lint: 156 D base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
lint: 156 D base-executable = /usr/bin/python3.10 [virtualenv/create/pyenv_cfg.py:34]
lint: 156 D symlink /usr/bin/python3.10 to /tmp/newproy/.tox/lint/bin/python [virtualenv/util/path/_sync.py:28]
lint: 157 D create virtualenv import hook file /tmp/newproy/.tox/lint/lib/python3.10/site-packages/_virtualenv.pth [virtualenv/create/via_global_ref/api.py:89]
lint: 157 D create /tmp/newproy/.tox/lint/lib/python3.10/site-packages/_virtualenv.py [virtualenv/create/via_global_ref/api.py:92]
lint: 157 D ============================== target debug ============================== [virtualenv/run/session.py:50]
lint: 157 D debug via /tmp/newproy/.tox/lint/bin/python /home/facundo/.local/share/fades/db02a195-2f4c-4127-af62-2b9faed4ec8a/lib/python3.10/site-packages/virtualenv/create/debug.py [virtualenv/create/creator.py:197]
lint: 157 D {
"sys": {
"executable": "/tmp/newproy/.tox/lint/bin/python",
"_base_executable": "/tmp/newproy/.tox/lint/bin/python",
"prefix": "/tmp/newproy/.tox/lint",
"base_prefix": "/usr",
"real_prefix": null,
"exec_prefix": "/tmp/newproy/.tox/lint",
"base_exec_prefix": "/usr",
"path": [
"/home/facundo/.bin/pymods",
"/usr/lib/python310.zip",
"/usr/lib/python3.10",
"/usr/lib/python3.10/lib-dynload",
"/tmp/newproy/.tox/lint/lib/python3.10/site-packages"
],
"meta_path": [
"<class '_virtualenv._Finder'>",
"<class '_frozen_importlib.BuiltinImporter'>",
"<class '_frozen_importlib.FrozenImporter'>",
"<class '_frozen_importlib_external.PathFinder'>"
],
"fs_encoding": "utf-8",
"io_encoding": "utf-8"
},
"version": "3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0]",
"makefile_filename": "/usr/lib/python3.10/config-3.10-x86_64-linux-gnu/Makefile",
"os": "<module 'os' from '/usr/lib/python3.10/os.py'>",
"site": "<module 'site' from '/usr/lib/python3.10/site.py'>",
"datetime": "<module 'datetime' from '/usr/lib/python3.10/datetime.py'>",
"math": "<module 'math' (built-in)>",
"json": "<module 'json' from '/usr/lib/python3.10/json/__init__.py'>"
} [virtualenv/run/session.py:51]
lint: 206 I add seed packages via FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/home/facundo/.local/share/virtualenv) [virtualenv/run/session.py:55]
lint: 210 D got embed update of distribution wheel from /home/facundo/.local/share/virtualenv/wheel/3.10/embed/3/wheel.json [virtualenv/app_data/via_disk_folder.py:129]
lint: 211 D got embed update of distribution pip from /home/facundo/.local/share/virtualenv/wheel/3.10/embed/3/pip.json [virtualenv/app_data/via_disk_folder.py:129]
lint: 211 D got embed update of distribution setuptools from /home/facundo/.local/share/virtualenv/wheel/3.10/embed/3/setuptools.json [virtualenv/app_data/via_disk_folder.py:129]
lint: 215 D install wheel from wheel /home/facundo/.local/share/fades/db02a195-2f4c-4127-af62-2b9faed4ec8a/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/wheel-0.38.4-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
lint: 215 D install setuptools from wheel /home/facundo/.local/share/fades/db02a195-2f4c-4127-af62-2b9faed4ec8a/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/setuptools-65.6.3-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
lint: 216 D install pip from wheel /home/facundo/.local/share/fades/db02a195-2f4c-4127-af62-2b9faed4ec8a/lib/python3.10/site-packages/virtualenv/seed/wheels/embed/pip-22.3.1-py3-none-any.whl via CopyPipInstall [virtualenv/seed/embed/via_app_data/via_app_data.py:47]
lint: 217 D copy directory /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/wheel [virtualenv/util/path/_sync.py:36]
lint: 218 D copy /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.virtualenv to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/pip-22.3.1.virtualenv [virtualenv/util/path/_sync.py:36]
lint: 218 D copy directory /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/setuptools [virtualenv/util/path/_sync.py:36]
lint: 219 D copy directory /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip-22.3.1.dist-info to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/pip-22.3.1.dist-info [virtualenv/util/path/_sync.py:36]
lint: 222 D copy directory /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/pip-22.3.1-py3-none-any/pip to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/pip [virtualenv/util/path/_sync.py:36]
lint: 225 D copy directory /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.dist-info to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/wheel-0.38.4.dist-info [virtualenv/util/path/_sync.py:36]
lint: 227 D copy /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/wheel-0.38.4-py3-none-any/wheel-0.38.4.virtualenv to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/wheel-0.38.4.virtualenv [virtualenv/util/path/_sync.py:36]
lint: 228 D generated console scripts wheel wheel-3.10 wheel3.10 wheel3 [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
lint: 291 D copy directory /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.dist-info to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/setuptools-65.6.3.dist-info [virtualenv/util/path/_sync.py:36]
lint: 294 D copy /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/distutils-precedence.pth to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/distutils-precedence.pth [virtualenv/util/path/_sync.py:36]
lint: 294 D copy directory /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/_distutils_hack to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/_distutils_hack [virtualenv/util/path/_sync.py:36]
lint: 295 D copy directory /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/pkg_resources to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/pkg_resources [virtualenv/util/path/_sync.py:36]
lint: 312 D copy /home/facundo/.local/share/virtualenv/wheel/3.10/image/1/CopyPipInstall/setuptools-65.6.3-py3-none-any/setuptools-65.6.3.virtualenv to /tmp/newproy/.tox/lint/lib/python3.10/site-packages/setuptools-65.6.3.virtualenv [virtualenv/util/path/_sync.py:36]
lint: 314 D generated console scripts [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
lint: 339 D generated console scripts pip3.10 pip3 pip-3.10 pip [virtualenv/seed/embed/via_app_data/pip_install/base.py:41]
lint: 340 I add activators for Bash, CShell, Fish, Nushell, PowerShell, Python [virtualenv/run/session.py:61]
lint: 343 D write /tmp/newproy/.tox/lint/pyvenv.cfg [virtualenv/create/pyenv_cfg.py:30]
lint: 343 D home = /usr/bin [virtualenv/create/pyenv_cfg.py:34]
lint: 343 D implementation = CPython [virtualenv/create/pyenv_cfg.py:34]
lint: 343 D version_info = 3.10.6.final.0 [virtualenv/create/pyenv_cfg.py:34]
lint: 343 D virtualenv = 20.17.1 [virtualenv/create/pyenv_cfg.py:34]
lint: 343 D include-system-site-packages = false [virtualenv/create/pyenv_cfg.py:34]
lint: 343 D base-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
lint: 343 D base-exec-prefix = /usr [virtualenv/create/pyenv_cfg.py:34]
lint: 343 D base-executable = /usr/bin/python3.10 [virtualenv/create/pyenv_cfg.py:34]
lint: 346 W install_deps> python -I -m pip install codespell [tox/tox_env/api.py:417]
Collecting codespell
Using cached codespell-2.2.2-py3-none-any.whl (214 kB)
Installing collected packages: codespell
Successfully installed codespell-2.2.2
lint: 1820 I exit 0 (1.47 seconds) /tmp/newproy> python -I -m pip install codespell pid=2457830 [tox/execute/api.py:275]
lint: 1821 W commands[0]> codespell /tmp/newproy/. --skip /tmp/newproy/.git --skip /tmp/newproy/.tox --skip /tmp/newproy/build --skip /tmp/newproy/lib --skip /tmp/newproy/venv --skip /tmp/newproy/.mypy_cache --skip /tmp/newproy/icon.svg [tox/tox_env/api.py:417]
/tmp/newproy/./.tox/lint/lib/python3.10/site-packages/setuptools/_distutils/msvc9compiler.py:535: fo ==> of, for, to, do, go
/tmp/newproy/./.tox/lint/lib/python3.10/site-packages/setuptools/_distutils/msvc9compiler.py:561: fo ==> of, for, to, do, go
/tmp/newproy/./.tox/lint/lib/python3.10/site-packages/setuptools/_distutils/msvc9compiler.py:572: Fo ==> Of, For, To, Do, Go
(... ton of similar errors ...)
/tmp/newproy/./.tox/fmt/lib/python3.10/site-packages/black/parsing.py:112: te ==> the, be, we, to
/tmp/newproy/./.tox/fmt/lib/python3.10/site-packages/black/lines.py:731: formattings ==> formatting
/tmp/newproy/./.tox/fmt/lib/python3.10/site-packages/black/lines.py:769: formattings ==> formatting
lint: 3955 C exit 65 (2.13 seconds) /tmp/newproy> codespell /tmp/newproy/. --skip /tmp/newproy/.git --skip /tmp/newproy/.tox --skip /tmp/newproy/build --skip /tmp/newproy/lib --skip /tmp/newproy/venv --skip /tmp/newproy/.mypy_cache --skip /tmp/newproy/icon.svg pid=2457878 [tox/execute/api.py:275]
lint: FAIL code 65 (3.85=setup[1.72]+cmd[2.13] seconds)
evaluation failed :( (3.89 seconds)
```
## Minimal example
If possible, provide a minimal reproducer for the issue:
```console
[testenv:lint]
description = Check code against coding style standards
deps =
codespell
commands =
codespell {toxinidir}/. \
--skip {toxinidir}/.git \
--skip {toxinidir}/.tox \
--skip {toxinidir}/build \
--skip {toxinidir}/lib \
--skip {toxinidir}/venv \
--skip {toxinidir}/.mypy_cache \
--skip {toxinidir}/icon.svg
```
When running with old and new tox:
```console
$ fades -d "tox < 4" -x tox --version
3.27.1 imported from /home/facundo/.local/share/fades/0a63e6cf-8a13-47ea-91ff-4d5878543117/lib/python3.10/site-packages/tox/__init__.py
$ fades -d "tox < 4" -x tox -e lint
lint recreate: /tmp/newproy/.tox/lint
lint installdeps: codespell
lint installed: codespell==2.2.2
lint run-test-pre: PYTHONHASHSEED='3379135892'
lint run-test: commands[0] | codespell /tmp/newproy/. --skip /tmp/newproy/.git --skip /tmp/newproy/.tox --skip /tmp/newproy/build --skip /tmp/newproy/lib --skip /tmp/newproy/venv --skip /tmp/newproy/.mypy_cache --skip /tmp/newproy/icon.svg
_____________________________________________________________________________________ summary _____________________________________________________________________________________
lint: commands succeeded
congratulations :)
$ fades -d tox -x tox --version
4.0.11 from /home/facundo/.local/share/fades/db02a195-2f4c-4127-af62-2b9faed4ec8a/lib/python3.10/site-packages/tox/__init__.py
$ fades -d tox -x tox -e lint
lint: install_deps> python -I -m pip install codespell
lint: commands[0]> codespell /tmp/newproy/. --skip /tmp/newproy/.git --skip /tmp/newproy/.tox --skip /tmp/newproy/build --skip /tmp/newproy/lib --skip /tmp/newproy/venv --skip /tmp/newproy/.mypy_cache --skip /tmp/newproy/icon.svg
/tmp/newproy/./.tox/lint/lib/python3.10/site-packages/setuptools/_distutils/msvc9compiler.py:535: fo ==> of, for, to, do, go
/tmp/newproy/./.tox/lint/lib/python3.10/site-packages/setuptools/_distutils/msvc9compiler.py:561: fo ==> of, for, to, do, go
/tmp/newproy/./.tox/lint/lib/python3.10/site-packages/setuptools/_distutils/msvc9compiler.py:572: Fo ==> Of, For, To, Do, Go
(... ton of similar errors ...)
/tmp/newproy/./.tox/fmt/lib/python3.10/site-packages/black/parsing.py:112: te ==> the, be, we, to
/tmp/newproy/./.tox/fmt/lib/python3.10/site-packages/black/lines.py:731: formattings ==> formatting
/tmp/newproy/./.tox/fmt/lib/python3.10/site-packages/black/lines.py:769: formattings ==> formatting
lint: exit 65 (2.15 seconds) /tmp/newproy> codespell /tmp/newproy/. --skip /tmp/newproy/.git --skip /tmp/newproy/.tox --skip /tmp/newproy/build --skip /tmp/newproy/lib --skip /tmp/newproy/venv --skip /tmp/newproy/.mypy_cache --skip /tmp/newproy/icon.svg pid=2456922
lint: FAIL code 65 (3.25=setup[1.10]+cmd[2.15] seconds)
evaluation failed :( (3.28 seconds)
``` | 0easy
|
Title: Implement prepare_request/build_request and the corresponding Session.send()
Body: **Is your feature request related to a problem? Please describe.**
Currently, the `requests` api of `curl_cffi` is missing `prepare_request` or httpx's `build_request` method. The method is useful to construct request object and ability to view or edit the request object before sending the request via `Session().send` or `Client().send()`.
**Describe the solution you'd like**
httpx's `build_request` or requests' `prepare_request` method implemented in the requests api of curl_cffi
**Describe alternatives you've considered**
Using `curl_cffi` as `requests` adapter, so expected requests features are available.
**Context**
An example of the usefulness of `build_request` method in action.
```python
client = requests.Session()
# build_request is httpx method, similar to prepare_request
req = client.build_request(method: 'GET', url, headers, cookies, data)
# show request headers
req.headers
# Update user-agent header
req.headers['User-Agent'] = 'my_web_crawler/0.1'
# show request payload
req.content
# Update request payload using json string
data = { 'hello': 'world'}
req.content = bytes(json.dumps(data), 'utf-8')
# Update request method
req.method = 'POST'
# send the built request after fixing the issue
resp = client.send(req)
``` | 0easy
|
Title: Support inline flags for configuring custom embedded argument patterns
Body: At the moment we explicitly disallow using any kind of regular expression extensions using format `(?...)`, but it would be a good idea to support iniline flags. For more details about regexp extensions and inline flags see the [regular expression syntax](https://docs.python.org/3/library/re.html#regular-expression-syntax).
Probably the only flag that's actually relevant for us is case-insensitivity i.e. `(?i)`, but we can easily accept them all. Why case-insensitivity is important is illustrate by the following example.
Assume we have the following keyword that allows selecting an animal so that animals are limited to `cat`, `dog` and `cow`.
```python
from robot.api.deco import keyword
@keyword('Select ${animal:cat|dog|cow}')
def select(animal):
print(animal)
```
Let's then have the following tests using this keywod.
```robotframework
*** Test Cases ***
Works fine
Select dog
Works but causes deprecation warning
Select Dog
```
As the test case names already illustrate, the first one using one of the listed animals exactly works fine. The second test where one of the animals is used with a different case also passes, but there's the following deprecation warning:
> Embedded argument 'animal' got value 'Dog' that does not match custom pattern 'cat|dog|cow'. The argument is still accepted, but this behavior will change in Robot Framework 8.0.
The deprecation warning is caused by #4069. It was added because we want to start validating that arguments match also when they are given as variables, and it hadn't occurred to me earlier that there's a similar situation also if there's a case-insensitive match. The reason there's the warning in this particular case is that:
- The initial keyword matching is case-insensitive and thus both `dog` and `Dog` match. This check is done before variables are resolved.
- After variables are resolved, there's a separate check that arguments match custom patterns. In this check `Dog` doesn't match anymore.
I think custom pattern matching being case-sensitive is fine, but there should be an option to make explicitly make it case-insensitive. A natural syntax with regexps is using inline flags as in the example below, but at the moment that doesn't work.
```python
@keyword('Select ${animal:(?i)cat|dog|cow}')
def select(animal):
print(animal)
```
I believe it's important to do this before RF 8.0 where #4069 is planned to be implemented. | 0easy
|
Title: [ENH] Check number of channels and timepoints for equal length matches fit/predict for other BaseCollectionEstimator subclasses
Body: ### Describe the feature or idea you want to propose
collection estimators without the capability to handle unequal length should check the series lengths in fit and predict match
- [ ] Regression
- [ ] Clustering
- [ ] BaseCollectionTransformer
### Describe your proposed solution
do as with classifier here https://github.com/aeon-toolkit/aeon/pull/1758
### Describe alternatives you've considered, if relevant
_No response_
### Additional context
_No response_ | 0easy
|
Title: `Redirect` component
Body: When renders forwards the user to another URL. | 0easy
|
Title: typo in Strings and backslashes
Body: the [following](https://github.com/satwikkansal/wtfpython/blob/master/README.md#L1225-L1226) is untrue:
```
>>> print(r"\\n")
'\\\\n'
```
it should be one of the following:
```
>>> print(r"\\n")
\\n
>>> print(repr(r"\\n"))
'\\\\n'
``` | 0easy
|
Title: Support python 3.10
Body: Add it in CI | 0easy
|
Title: Add default_sort parameter to `mo.ui.table`
Body: ### Description
I am hoping to be able to write the following code that would mean that a ui.table gets initially rendered with a sorted column.
```
mo.ui.table(data, default_sort='Title')
```
where 'Title' is the column name name of the.
By default it would be ascending.
We would need a mechanism to specify descending. Possible options
```
ascending=False # like pandas
default_sort='-Title' # like django
default_sort='ASC:Title' or default_sort='DESC:Title'
```
If a user then subsequently sorts on a different column the default sort would be lost.
### Suggested solution
I've sketched out an API above. I don't know about the under-the-hood implementation.
### Alternative
_No response_
### Additional context
_No response_ | 0easy
|
Title: Deprecate support for python 2
Body: Given that official support Python 2 will be ending in 2020, I think it makes sense to remove support for Python 2 from nbgrader as well in the next major release (maybe 0.6.0?).
I am opening this issue to have a discussion about this if others disagree, and otherwise to discuss a timeline. | 0easy
|
Title: Bug: Type coercion from torch to numpy does not work
Body: **Description:**
casting a TorchTensor NdArray fails
**How to reproduce:**
```python
from docarray import BaseDoc
from docarray.typing import NdArray
import torch
class MyDoc(BaseDoc):
tens: NdArray
t1 = torch.rand(512)
doc = MyDoc(tens=t1)
```
```bash
Expected a numpy.ndarray compatible type, got <class 'torch.Tensor'> (type=value_error)
```
**TODO**:
- Fix this in the `validate` function of `NdArray`
- what about coercions to/from tf? do we have tests for this? | 0easy
|
Title: Indicator Request - Connors RSI (CRSI)
Body: Hi @twopirllc ,
Could you please add the Connors RSI (CRSI) indicator?
[About CRSI](https://www.tradingview.com/support/solutions/43000502017-connors-rsi-crsi/)
[Code for reference](https://github.com/cperler/trading/blob/1da33afc28d77517ee803ddfc1a1126dcdd54a3a/indicators.py#L695)
Also doc for [Aroon](https://github.com/twopirllc/pandas-ta/blob/1deb7559f626d2a5cf664b6c0af7a8016a53bfca/pandas_ta/trend/aroon.py#L94) is not reflecting its current arguments: high, low | 0easy
|
Title: CoherenceModel does not finish with computing
Body: #### Problem description
When computing coherence scores, it newer finishes with computing on a bit bigger dataset. Run the code below (with the provided dataset) to reproduce.
#### Steps/code/corpus to reproduce
```python
with open("coherence-bug.pkl", "rb") as f:
model, tokens = pickle.load(f)
print("conherence")
print(datetime.now())
t = time.time()
cm = CoherenceModel(model=model, texts=tokens, coherence="c_v")
coherence = cm.get_coherence()
print(time.time() - t)
```
[coherence-bug.pkl.zip](https://github.com/RaRe-Technologies/gensim/files/9178910/coherence-bug.pkl.zip)
#### Versions
The bug appears on Gensim version 4.2, but it does not happen on 4.1.2
macOS-10.16-x86_64-i386-64bit
Python 3.8.12 (default, Oct 12 2021, 06:23:56)
[Clang 10.0.0 ]
Bits 64
NumPy 1.22.3
SciPy 1.8.1
gensim 4.2.1.dev0
FAST_VERSION 0
| 0easy
|
Title: Cleanup Scalar Converter Code
Body: We have the original draft of the scaler code uploaded in [this branch](https://github.com/microsoft/hummingbird/tree/cleanup/scaler). All credit here goes to @scnakandala, the original author and brains behind this.
It contains an un-edited implementation of RobustScaler, MaxAbsScaler, MinMaxScaler, and StandardScaler [here](https://github.com/microsoft/hummingbird/blob/cleanup/scaler/hummingbird/ml/operator_converters/scaler.py). We need to integrate this old code into the current code.
There is a single test file [here](https://github.com/microsoft/hummingbird/blob/cleanup/scaler/tests/test_sklearn_scaler_converter.py) that needs to be cleaned up, expanded, and passing. | 0easy
|
Title: Dataset used in example on scatter plots page is removed in geopandas 1.0
Body: This example here won't run with later versions of geopandas
https://plotly.com/python/scatter-plots-on-maps/#basic-example-with-geopandas
```
import plotly.express as px
import geopandas as gpd
geo_df = gpd.read_file(gpd.datasets.get_path('naturalearth_cities'))
px.set_mapbox_access_token(open(".mapbox_token").read())
fig = px.scatter_geo(geo_df,
lat=geo_df.geometry.y,
lon=geo_df.geometry.x,
hover_name="name")
fig.show()
```
```
20 error_msg = (
21 "The geopandas.dataset has been deprecated and "
22 "was removed in GeoPandas 1.0. New sample datasets are now available "
23 "in the geodatasets package (https://geodatasets.readthedocs.io/en/latest/)"
24 )
```
It would be good to have an example that works with earlier and later versions of geopandas | 0easy
|
Title: Provide a better error message when trying to downgrade a revision that is required by another
Body: **Describe the bug**
<!-- A clear and concise description of what the bug is. -->
Alembic crashed with an assertion error
**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->
A proper error should be raised
**To Reproduce**
Please try to provide a [Minimal, Complete, and Verifiable](http://stackoverflow.com/help/mcve) example, with the migration script and/or the SQLAlchemy tables or models involved.
See also [Reporting Bugs](https://www.sqlalchemy.org/participate.html#bugs) on the website.
Let's save we have 3 migration in a default env using sqlite configured so this way:
```
base -> first \
third
base -> second /
```
<details>
<summary> Files content </summary>
```py
"""first
Revision ID: first
Revises:
Create Date: 2022-05-02 20:07:26.041601
"""
# revision identifiers, used by Alembic.
revision = 'first'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
pass
def downgrade():
pass
```
```py
"""second
Revision ID: second
Revises:
Create Date: 2022-05-02 20:07:37.457352
"""
# revision identifiers, used by Alembic.
revision = 'second'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
pass
def downgrade():
pass
```
```py
"""third
Revision ID: 31dc94ecbcb5
Revises: 1caadb4b5052
Create Date: 2022-05-02 20:07:54.298706
"""
# revision identifiers, used by Alembic.
revision = "third"
down_revision = "first"
branch_labels = None
depends_on = ("second",)
def upgrade():
pass
def downgrade():
pass
```
</details>
**Error**
Running
```
alembic upgrade heads
alembic downgrade second@-1
```
errors with
```
Traceback (most recent call last):
File "venv\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "venv\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "venv\Scripts\alembic.exe\__main__.py", line 7, in <module>
File "venv\lib\site-packages\alembic\config.py", line 588, in main
CommandLine(prog=prog).main(argv=argv)
File "venv\lib\site-packages\alembic\config.py", line 582, in main
self.run_cmd(cfg, options)
File "venv\lib\site-packages\alembic\config.py", line 559, in run_cmd
fn(
File "venv\lib\site-packages\alembic\command.py", line 366, in downgrade
script.run_env()
File "venv\lib\site-packages\alembic\script\base.py", line 563, in run_env
util.load_python_file(self.dir, "env.py")
File "venv\lib\site-packages\alembic\util\pyfiles.py", line 92, in load_python_file
module = load_module_py(module_id, path)
File "venv\lib\site-packages\alembic\util\pyfiles.py", line 108, in load_module_py
spec.loader.exec_module(module) # type: ignore
File "<frozen importlib._bootstrap_external>", line 843, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "vv\env.py", line 77, in <module>
run_migrations_online()
File "vv\env.py", line 71, in run_migrations_online
context.run_migrations()
File "<string>", line 8, in run_migrations
File "venv\lib\site-packages\alembic\runtime\environment.py", line 851, in run_migrations
self.get_context().run_migrations(**kw)
File "venv\lib\site-packages\alembic\runtime\migration.py", line 608, in run_migrations
for step in self._migrations_fn(heads, self):
File "venv\lib\site-packages\alembic\command.py", line 355, in downgrade
return script._downgrade_revs(revision, rev)
File "venv\lib\site-packages\alembic\script\base.py", line 453, in _downgrade_revs
return [
File "venv\lib\site-packages\alembic\script\base.py", line 453, in <listcomp>
return [
File "venv\lib\site-packages\alembic\script\revision.py", line 789, in iterate_revisions
revisions, heads = fn(
File "venv\lib\site-packages\alembic\script\revision.py", line 1288, in _collect_downgrade_revisions
branch_label, target_revision = self._parse_downgrade_target(
File "venv\lib\site-packages\alembic\script\revision.py", line 1122, in _parse_downgrade_target
assert len(symbol_list) == 1
AssertionError
```
The error is correct, since third depends on second, it's just that a proper raise should be used there
**Versions.**
- OS: any
- Python: any
- Alembic: 1.7.6
- SQLAlchemy: any
- Database: any
- DBAPI: any
**Additional context**
<!-- Add any other context about the problem here. -->
**Have a nice day!**
| 0easy
|
Title: Improve WebClient's slack.com url overwriting experience
Body: (Filling out the following details about bugs will help us solve your issue sooner.)
#### Steps to reproduce:
(Share the commands to run, source code, and project settings (e.g., setup.py))
1. Try setting up an app to point to a different slack url that does not include a trailing `/`
2. `app = App(token=os.environ.get("SLACK_BOT_TOKEN"), client=WebClient(os.environ.get("SLACK_BOT_TOKEN"), "https://example.slack.com/api"))`
3. This will fail ๐ด
4. Add a trailing `/`
`app = App(token=os.environ.get("SLACK_BOT_TOKEN"), client=WebClient(os.environ.get("SLACK_BOT_TOKEN"), "https://example.slack.com/api/"))`
5. This will pass ๐ข
### Expected result:
`app = App(token=os.environ.get("SLACK_BOT_TOKEN"), client=WebClient(os.environ.get("SLACK_BOT_TOKEN"), "https://example.slack.com/api"))`
Should provide an informative error or format the slack URL to work
## Requirements
Please read the [Contributing guidelines](https://github.com/slackapi/bolt-python/blob/main/.github/contributing.md) and [Code of Conduct](https://slackhq.github.io/code-of-conduct) before creating this issue or pull request. By submitting, you are agreeing to those rules.
| 0easy
|
Title: Resolve API Violation Exceptions in Katib API
Body: ### What you would like to be added?
We should resolve API violation exceptions in:
https://github.com/kubeflow/katib/blob/eb8af4d50266b51c77ea895585ff535c8e9137f9/hack/violation_exception_v1beta1.list#L1-L30
### Why is this needed?
As we discussed in https://github.com/kubeflow/katib/pull/2463#discussion_r1878566117, we will create this issue as the tracker for resolving those API violation exceptions
/remove-label lifecycle/needs-triage
/good-first-issue
/area api
### Love this feature?
Give it a ๐ We prioritize the features with most ๐ | 0easy
|
Title: Modify `TestStructuredProfilerRowStatistics`: Update null stats tests
Body: **Is your feature request related to a problem? Please describe.**
The null stats tests in `TestStructuredProfilerRowStatistics` [link](https://github.com/capitalone/DataProfiler/blob/main/dataprofiler/tests/profilers/test_profile_builder.py#L3504)
need to be updated to use the data that is created in `setUpClass` [link](https://github.com/capitalone/DataProfiler/blob/main/dataprofiler/tests/profilers/test_profile_builder.py#L3509). Currently they are using their own datasets
**Describe the outcome you'd like:**
The null stats tests should use the data initialized in the `setUpClass` class method, not their own data
| 0easy
|
Title: Matplotlib warning about color usage in Datasaurus
Body: **Describe the bug**
the datasaurus function used to demonstrate Anscombe's quartet is isssuiing the following warning
WARNING:matplotlib.axes._axes:*c* argument looks like a single numeric RGB or RGBA sequence, which should be avoided as value-mapping will have precedence in case its length matches with *x* & *y*. Please use the *color* keyword-argument or provide a 2D array with a single row if you intend to specify the same RGB or RGBA value for all points.
**To Reproduce**
```python
from yellowbrick import datasaurus
datasaurus()
```
**Dataset**
**Expected behavior**
Produce the image without warnings
**Desktop (please complete the following information):**
- OS: [e.g. macOS] Google Colab
- Python Version [e.g. 2.7, 3.6, miniconda] 3.8.10
- Yellowbrick Version [e.g. 0.7] 1.5
| 0easy
|
Title: Fix CI warnings
Body: `pytest` is throwing a lot of warnings in the CI logs, we should go one by one and fix them. I'm sure there are many factors behind this but fixing at least some of this helps. running the test suite locally should show the warnings as well.
we don't want to hide the warnings because the show important information, but rather see which ones we can fix | 0easy
|
Title: SPDX Document metric API
Body: The canonical definition is here: https://chaoss.community/?p=3968 | 0easy
|
Title: Docs: 'Usage' says the default strategy is .create(), not .build()
Body: The [homepage of the docs](https://factoryboy.readthedocs.io/en/stable/index.html#using-factories) says:
> You can use the Factory class as a shortcut for the default build strategy:
> ```py
> # Same as UserFactory.create()
> user = UserFactory()
> ```
Maybe I'm misunderstanding something, but shouldn't it be: "Same as `UserFactory.build()`", not "Same as `UserFactory.create()`"? | 0easy
|
Title: [Feature request] Add apply_to_images to MedianBlur
Body: | 0easy
|
Title: In the chat interface, switching to "custom" should default-set the parameters of the previously selected preset
Body: | 0easy
|
Title: experiment naming convention
Body: /kind feature
**Describe the solution you'd like**
When experiment naming convention is dissatisfied, experiment should not be created by validationg webhook or its status should be failed.
However, currently experiment created successfully and its status stays at `CREATED` forever.
but, katib-controller pod's log is as follows:
```
{"level":"error","ts":1621923906.1874073,"logger":"suggestion-controller","msg":"Reconcile Suggestion error","Suggestion":"jaeyeon-kim/1524-test","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\ngithub.com/kubeflow/katib/pkg/controller.v1beta1/suggestion.(*ReconcileSuggestion).Reconcile\n\t/go/src/github.com/kubeflow/katib/pkg/controller.v1beta1/suggestion/suggestion_controller.go:175\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:297\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"error","ts":1621923906.1875703,"logger":"controller-runtime.manager.controller.suggestion-controller","msg":"Reconciler error","name":"1524-test","namespace":"jaeyeon-kim","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:301\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"info","ts":1621923911.3088973,"logger":"suggestion-controller","msg":"Creating Service","Suggestion":"jaeyeon-kim/1524-test","name":"1524-test-random"}
{"level":"error","ts":1621923911.3107684,"logger":"suggestion-controller","msg":"Reconcile Suggestion error","Suggestion":"jaeyeon-kim/1524-test","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\ngithub.com/kubeflow/katib/pkg/controller.v1beta1/suggestion.(*ReconcileSuggestion).Reconcile\n\t/go/src/github.com/kubeflow/katib/pkg/controller.v1beta1/suggestion/suggestion_controller.go:175\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:297\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"error","ts":1621923911.3109326,"logger":"controller-runtime.manager.controller.suggestion-controller","msg":"Reconciler error","name":"1524-test","namespace":"jaeyeon-kim","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:301\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"info","ts":1621923921.5522773,"logger":"suggestion-controller","msg":"Creating Service","Suggestion":"jaeyeon-kim/1524-test","name":"1524-test-random"}
{"level":"error","ts":1621923921.5543118,"logger":"suggestion-controller","msg":"Reconcile Suggestion error","Suggestion":"jaeyeon-kim/1524-test","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\ngithub.com/kubeflow/katib/pkg/controller.v1beta1/suggestion.(*ReconcileSuggestion).Reconcile\n\t/go/src/github.com/kubeflow/katib/pkg/controller.v1beta1/suggestion/suggestion_controller.go:175\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:297\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"error","ts":1621923921.554501,"logger":"controller-runtime.manager.controller.suggestion-controller","msg":"Reconciler error","name":"1524-test","namespace":"jaeyeon-kim","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:301\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"info","ts":1621923942.0349097,"logger":"suggestion-controller","msg":"Creating Service","Suggestion":"jaeyeon-kim/1524-test","name":"1524-test-random"}
{"level":"error","ts":1621923942.0366433,"logger":"suggestion-controller","msg":"Reconcile Suggestion error","Suggestion":"jaeyeon-kim/1524-test","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\ngithub.com/kubeflow/katib/pkg/controller.v1beta1/suggestion.(*ReconcileSuggestion).Reconcile\n\t/go/src/github.com/kubeflow/katib/pkg/controller.v1beta1/suggestion/suggestion_controller.go:175\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:297\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"error","ts":1621923942.0368195,"logger":"controller-runtime.manager.controller.suggestion-controller","msg":"Reconciler error","name":"1524-test","namespace":"jaeyeon-kim","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:301\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"info","ts":1621923982.9980388,"logger":"suggestion-controller","msg":"Creating Service","Suggestion":"jaeyeon-kim/1524-test","name":"1524-test-random"}
{"level":"error","ts":1621923983.0000584,"logger":"suggestion-controller","msg":"Reconcile Suggestion error","Suggestion":"jaeyeon-kim/1524-test","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\ngithub.com/kubeflow/katib/pkg/controller.v1beta1/suggestion.(*ReconcileSuggestion).Reconcile\n\t/go/src/github.com/kubeflow/katib/pkg/controller.v1beta1/suggestion/suggestion_controller.go:175\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:297\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"error","ts":1621923983.0002046,"logger":"controller-runtime.manager.controller.suggestion-controller","msg":"Reconciler error","name":"1524-test","namespace":"jaeyeon-kim","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:301\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"info","ts":1621924064.9217365,"logger":"suggestion-controller","msg":"Creating Service","Suggestion":"jaeyeon-kim/1524-test","name":"1524-test-random"}
{"level":"error","ts":1621924064.9238694,"logger":"suggestion-controller","msg":"Reconcile Suggestion error","Suggestion":"jaeyeon-kim/1524-test","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\ngithub.com/kubeflow/katib/pkg/controller.v1beta1/suggestion.(*ReconcileSuggestion).Reconcile\n\t/go/src/github.com/kubeflow/katib/pkg/controller.v1beta1/suggestion/suggestion_controller.go:175\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:297\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"error","ts":1621924064.9240654,"logger":"controller-runtime.manager.controller.suggestion-controller","msg":"Reconciler error","name":"1524-test","namespace":"jaeyeon-kim","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:301\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"info","ts":1621924228.764417,"logger":"suggestion-controller","msg":"Creating Service","Suggestion":"jaeyeon-kim/1524-test","name":"1524-test-random"}
{"level":"error","ts":1621924228.7661974,"logger":"suggestion-controller","msg":"Reconcile Suggestion error","Suggestion":"jaeyeon-kim/1524-test","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\ngithub.com/kubeflow/katib/pkg/controller.v1beta1/suggestion.(*ReconcileSuggestion).Reconcile\n\t/go/src/github.com/kubeflow/katib/pkg/controller.v1beta1/suggestion/suggestion_controller.go:175\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:297\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"error","ts":1621924228.7663867,"logger":"controller-runtime.manager.controller.suggestion-controller","msg":"Reconciler error","name":"1524-test","namespace":"jaeyeon-kim","error":"Service \"1524-test-random\" is invalid: metadata.name: Invalid value: \"1524-test-random\": a DNS-1035 label must consist of lower case alphanumeric characters or '-', start with an alphabetic character, and end with an alphanumeric character (e.g. 'my-name', or 'abc-123', regex used for validation is '[a-z]([-a-z0-9]*[a-z0-9])?')","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error\n\t/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:132\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:301\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:252\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func1.2\n\t/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:215\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil.func1\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:155\nk8s.io/apimachinery/pkg/util/wait.BackoffUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:156\nk8s.io/apimachinery/pkg/util/wait.JitterUntil\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:133\nk8s.io/apimachinery/pkg/util/wait.JitterUntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:185\nk8s.io/apimachinery/pkg/util/wait.UntilWithContext\n\t/go/pkg/mod/k8s.io/[email protected]/pkg/util/wait/wait.go:99"}
{"level":"info","ts":1621924556.4477894,"logger":"suggestion-controller","msg":"Creating Service","Suggestion":"jaeyeon-kim/1524-test","name":"1524-test-random"}
```
**Anything else you would like to add:**
- katib version : v0.11.0 | 0easy
|
Title: Too many requests
Body: When running airflow DatabricksRunNowOperator, if using managed identity, and if there is multiple tasks running in parallel, the code below can quickly exhaust the allowed metadata server as explained here https://learn.microsoft.com/en-us/azure/virtual-machines/instance-metadata-service?tabs=windows#rate-limiting
```
In general, requests to IMDS are limited to 5 requests per second (on a per VM basis). Requests exceeding this threshold will be rejected with 429 responses.
```
https://github.com/apache/airflow/blob/4b83391b75fb24209904bad5721cf16a391cf065/providers/databricks/src/airflow/providers/databricks/hooks/databricks_base.py#L568
I don't understand why this check was put here 3 years ago, but I feel this is unnecessary.
I propose we remove this check, or make it optional. Can I open a PR for this?

| 0easy
|
Title: Enhancement: Add AttrsFactory
Body: ### Summary
We should support `attrs` based models generation. This would be a largist contribution but would be very much appreciated.
### Basic Example
_No response_
### Drawbacks and Impact
_No response_
### Unresolved questions
_No response_ | 0easy
|
Title: bug: acm-pca get-certificate-authority-certificate
Body: ### Is there an existing issue for this?
- [X] I have searched the existing issues
### Current Behavior
CertificateChain is not correctly formatted when returned from get-certificate-authority-certificate, the returned value is a base64 encoded pem or chain of pem's as below:
```
aws acm-pca get-certificate-authority-certificate --certificate-authority-arn=arn:aws:acm-pca:us-east-1:000000000000:certificate-authority/ea258b76-04e4-4384-a843-15af1ffa865b
{
"Certificate": "-----BEGIN CERTIFICATE-----\nMIICgDCCAgagAwIBAgIQPVpmtKY8FtTxnFBCfyCYLTAKBggqhkjOPQQDAzA1MRMw\nEQYDVQQKEwpUYXlsb3JNdWZmMR4wHAYDVQQDExVteWNhLnRheWxvcm11ZmYuY28u\ndWswHhcNMjQxMjI3MTUxNzAwWhcNMzQxMjI1MTUxNzAwWjAhMR8wHQYDVQQDExZh\nY21jYS50YXlsb3JtdWZmLmNvLnVrMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAuKb80EA2oJu7LSbGdyMoGg+mM6FsQDpHHhIm/yVai0oSJynEl5i8MJ90\nIvdJnBj97SO7pzjGb2GZtQZp1iLvSMVx9G2ZPSSGBF853S9OPcJohXPRg7p5Q0bG\nrYkDP6R02DX3xuoIugUOvyFVsFWR0xfChxZDgH3TEyAqvIzlv1YKEN/1aM6b7HxB\n2mYMf7kzdlSmbKy21SlaGmF7MvXhMeHKrOnW0SqUW/6Fmv7DRCwCwXAcri14GgyN\nJjJpmdS/2A3X8j9E5nzrQl394sN1QaSCRk+lwu9LbpJPHoAvbvotWDkLOSpkmJOh\n9luXf3KWUy12iRzayslMZhAV5ZuMaQIDAQABo0EwPzAOBgNVHQ8BAf8EBAMCAqQw\nDAYDVR0TAQH/BAIwADAfBgNVHSMEGDAWgBTqcjhsYlZXDfx4XK3pu0/mFSbJ/TAK\nBggqhkjOPQQDAwNoADBlAjA4gwcbBIqzGuFQv4uZzbYiCmLK8m9hC29RXzBLsZzj\ngeZQM6hcRbwttpQJe5gKG1QCMQC6hxS6aZYmyKSpFfm1B51MBGtCPCAmh/EVvSIm\niro9tEa2hvJNUw9AYiicU4tIEEM=\n-----END CERTIFICATE-----\n",
"CertificateChain": "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUI1akNDQVcyZ0F3SUJBZ0lRTWNaYU5HU3hKQ2d3WmRVU0FOVWg1ekFLQmdncWhrak9QUVFEQXpBMU1STXcKRVFZRFZRUUtFd3BVWVhsc2IzSk5kV1ptTVI0d0hBWURWUVFERXhWdGVXTmhMblJoZVd4dmNtMTFabVl1WTI4dQpkV3N3SGhjTk1qUXhNakkzTVRVeE5qVTRXaGNOTXpReE1qSTFNVFV4TmpVNFdqQTFNUk13RVFZRFZRUUtFd3BVCllYbHNiM0pOZFdabU1SNHdIQVlEVlFRREV4VnRlV05oTG5SaGVXeHZjbTExWm1ZdVkyOHVkV3N3ZGpBUUJnY3EKaGtqT1BRSUJCZ1VyZ1FRQUlnTmlBQVFTSUROYnJPampuS0pqakxlMjYrbkdJeFBhejRlODZPQ3Z0TlpLZHJ1QgpyMm1QbWZBdkQra2l3VWJ0WTdXYmFGQ0o5ZnI3TlUzbVNhYjRVWXhMSWM1RmlTQ2puT05EdmdQNUxucmVLRlFtCisvN01yaGlObkVUSWFmdU5KcVFYRllXalFqQkFNQTRHQTFVZER3RUIvd1FFQXdJQ3BEQVBCZ05WSFJNQkFmOEUKQlRBREFRSC9NQjBHQTFVZERnUVdCQlRxY2poc1lsWlhEZng0WEszcHUwL21GU2JKL1RBS0JnZ3Foa2pPUFFRRApBd05uQURCa0FqQUh2R0dBdDF6YmNpOWllZXovSFI4eUsvWUU3WENQSGN2QVZvbGhnWGozV0ZSV3ViQS9XWk1WCkNPWG9vTVpTVm1BQ01EbWdXaFBWeXFBWGJBUDNOOTEvcVN5UUdObXhDcFRFUE5YdUpxa0Q3V2hUK2VBb0thOFAKcWJoZGE4R0grUzF2Y2c9PQotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg=="
}
```
### Expected Behavior
```
aws acm-pca get-certificate-authority-certificate --certificate-authority-arn=arn:aws:acm-pca:us-east-1:000000000000:certificate-authority/ea258b76-04e4-4384-a843-15af1ffa865b
{
"Certificate": "-----BEGIN CERTIFICATE-----\nMIICgDCCAgagAwIBAgIQPVpmtKY8FtTxnFBCfyCYLTAKBggqhkjOPQQDAzA1MRMw\nEQYDVQQKEwpUYXlsb3JNdWZmMR4wHAYDVQQDExVteWNhLnRheWxvcm11ZmYuY28u\ndWswHhcNMjQxMjI3MTUxNzAwWhcNMzQxMjI1MTUxNzAwWjAhMR8wHQYDVQQDExZh\nY21jYS50YXlsb3JtdWZmLmNvLnVrMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB\nCgKCAQEAuKb80EA2oJu7LSbGdyMoGg+mM6FsQDpHHhIm/yVai0oSJynEl5i8MJ90\nIvdJnBj97SO7pzjGb2GZtQZp1iLvSMVx9G2ZPSSGBF853S9OPcJohXPRg7p5Q0bG\nrYkDP6R02DX3xuoIugUOvyFVsFWR0xfChxZDgH3TEyAqvIzlv1YKEN/1aM6b7HxB\n2mYMf7kzdlSmbKy21SlaGmF7MvXhMeHKrOnW0SqUW/6Fmv7DRCwCwXAcri14GgyN\nJjJpmdS/2A3X8j9E5nzrQl394sN1QaSCRk+lwu9LbpJPHoAvbvotWDkLOSpkmJOh\n9luXf3KWUy12iRzayslMZhAV5ZuMaQIDAQABo0EwPzAOBgNVHQ8BAf8EBAMCAqQw\nDAYDVR0TAQH/BAIwADAfBgNVHSMEGDAWgBTqcjhsYlZXDfx4XK3pu0/mFSbJ/TAK\nBggqhkjOPQQDAwNoADBlAjA4gwcbBIqzGuFQv4uZzbYiCmLK8m9hC29RXzBLsZzj\ngeZQM6hcRbwttpQJe5gKG1QCMQC6hxS6aZYmyKSpFfm1B51MBGtCPCAmh/EVvSIm\niro9tEa2hvJNUw9AYiicU4tIEEM=\n-----END CERTIFICATE-----\n",
"CertificateChain": "-----BEGIN CERTIFICATE-----\nMIIB5jCCAW2gAwIBAgIQMcZaNGSxJCgwZdUSANUh5zAKBggqhkjOPQQDAzA1MRMw\nEQYDVQQKEwpUYXlsb3JNdWZmMR4wHAYDVQQDExVteWNhLnRheWxvcm11ZmYuY28u\ndWswHhcNMjQxMjI3MTUxNjU4WhcNMzQxMjI1MTUxNjU4WjA1MRMwEQYDVQQKEwpU\nYXlsb3JNdWZmMR4wHAYDVQQDExVteWNhLnRheWxvcm11ZmYuY28udWswdjAQBgcq\nhkjOPQIBBgUrgQQAIgNiAAQSIDNbrOjjnKJjjLe26+nGIxPaz4e86OCvtNZKdruB\nr2mPmfAvD+kiwUbtY7WbaFCJ9fr7NU3mSab4UYxLIc5FiSCjnONDvgP5LnreKFQm\n+/7MrhiNnETIafuNJqQXFYWjQjBAMA4GA1UdDwEB/wQEAwICpDAPBgNVHRMBAf8E\nBTADAQH/MB0GA1UdDgQWBBTqcjhsYlZXDfx4XK3pu0/mFSbJ/TAKBggqhkjOPQQD\nAwNnADBkAjAHvGGAt1zbci9ieez/HR8yK/YE7XCPHcvAVolhgXj3WFRWubA/WZMV\nCOXooMZSVmACMDmgWhPVyqAXbAP3N91/qSyQGNmxCpTEPNXuJqkD7WhT+eAoKa8P\nqbhda8GH+S1vcg==\n-----END CERTIFICATE-----\n"
}
```
### How are you starting LocalStack?
With a docker-compose file
### Steps To Reproduce
#### How are you starting localstack (e.g., `bin/localstack` command, arguments, or `docker-compose.yml`)
started using podman-compose, compose file below:
```
---
services:
localstack:
image: docker.io/localstack/localstack-pro:latest
ports:
- "127.0.0.1:4566:4566"
- "127.0.0.1:4510-4559:4510-4559"
- "127.0.0.1:8443:443"
environment:
LOCALSTACK_AUTH_TOKEN: <redacted>
DEBUG: 1
PERSISTENCE: 1
REDIS_CONTAINER_MODE: 1
volumes:
- type: bind
source: ./localstack-vol
target: /var/lib/localstack
bind:
selinux: z
- type: bind
source: $XDG_RUNTIME_DIR/podman/podman.sock
target: /var/run/docker.sock
networks:
- localstack-net
networks:
localstack-net:
```
#### Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
```
openssl genrsa -out my-root-ca.key 4096
openssl req -x509 -new -nodes -key my-root-ca.key \
-sha256 -days 3650 -out my-root-ca.crt \
-subj "/CN=my-root-ca"
aws acm-pca create-certificate-authority \
--certificate-authority-configuration \
KeyAlgorithm=RSA_2048,SigningAlgorithm=SHA256WITHRSA,Subject={CommonName=my-subordinate-ca} \
--certificate-authority-type "SUBORDINATE"
aws acm-pca get-certificate-authority-csr --certificate-authority-arn <ARN> --query "Csr" --output text > my-subordinate-ca.csr
echo "basicConstraints=critical,CA:TRUE" > openssl-ca-extensions.ext
openssl x509 -req -in my-subordinate-ca.csr \
-CA my-root-ca.crt -CAkey my-root-ca.key \
-CAcreateserial -out my-subordinate-ca.crt -days 3650 -sha256 \
-extfile openssl-ca-extensions.ext
aws acm-pca import-certificate-authority-certificate \
--certificate-authority-arn <ARN> \
--certificate fileb://my-subordinate-ca.crt \
--certificate-chain fileb://my-root-ca.crt
aws acm-pca get-certificate-authority-certificate --certificate-authority-arn <ARN>
```
### Environment
```markdown
- OS: Fedora 41
- LocalStack:
LocalStack version: 4.0.4.dev63
LocalStack Docker image sha: sha256:d19a03dfe10274ee574a896ae40b9ecf99654ea8ffa1ff28de4530a6731e2e70
LocalStack build date: 2024-12-27
LocalStack build git hash: 11d12723f
```
### Anything else?
The fix to be made in https://github.com/getmoto/moto
https://github.com/getmoto/moto/blob/4c1a20822259a312cd6084a7570ca4cd502732f7/moto/acmpca/models.py#L374-L380 | 0easy
|
Title: Remove stated support for obsolete Python version
Body: Python 3.2 and 3.3 aren't in much use nowadays.
We should remove all mentions of them in the code:
- In the tox.ini file
- In the .travis.yml configuration
- In the setup.py classifiers
- In the README.rst declaration | 0easy
|
Title: Add an example for how to easily consume JSON APIs
Body: Need examples showcasing how to [send JSON requests](https://uplink.readthedocs.io/en/stable/user/quickstart.html#form-encoded-multipart-and-json-requests) and [consume JSON responses](https://uplink.readthedocs.io/en/stable/user/quickstart.html#handling-json-responses). Also, we should provide examples of [custom JSON (de)serialization](https://uplink.readthedocs.io/en/stable/user/serialization.html#custom-json-deserialization) using [`@loads`](https://uplink.readthedocs.io/en/stable/dev/converters.html#uplink.loads) and [`@dumps`](https://uplink.readthedocs.io/en/stable/dev/converters.html#uplink.dumps).
These examples should live in the [`examples`](https://github.com/prkumar/uplink/tree/master/examples) directory. | 0easy
|
Title: Hardcoded paths
Body: **Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Run the streamlit app with an idea submitted.
**Expected behavior**
A demo app is produced
**Desktop (please complete the following information):**
- Windows 11
- Streamlit
- Edge
**Additional context**
It appears there are some hardcoded paths unique to the original development environment. For example:
FileNotFoundError: [Errno 2] No such file or directory: '/home/melih/anaconda3/envs/synthdata/bin/streamlit' | 0easy
|
Title: Check pytest's "good practices" guide
Body: https://docs.pytest.org/en/stable/explanation/goodpractices.html#test-package-name | 0easy
|
Title: GUI: token hard to see
Body: A user writes:
> The way new tokens are displayed in a dark grey element, on a black background, at the bottom of the screen makes them very easy to miss, if youโre using a large screen and donโt know what youโre looking for. I spent quite a bit of time fiddling around creating new tokens, before I noticed.
We got this feedback multiple times, so let's fix it. | 0easy
|
Title: Coverage is below 100%
Body: https://codecov.io/gh/jreese/aiomultiprocess | 0easy
|
Title: [DeepSpeed Example] Fail on AWS T4 due to package import issue
Body: <!-- Describe the bug report / feature request here -->
To reproduce: use `accelerators: T4:1` in `examples/deepspeed-multinode/sky.yaml` and run `sky launch examples/deepspeed-multinode/sky.yaml -c ds -i1 --down --cloud=aws`
This dataset import issue is interesting, after ssh into the sky cluster and run `pip install datasets>=2.8.0` the import datasets work, so I checked the setup log and saw a few attempts at `Collecting datasets>=2.8.0 (from -r requirements.txt (line 1))` in the log but maybe none succeeded.
```
(head, rank=0, pid=2867) 172.31.10.116: [2024-12-03 20:53:28,710] [INFO] [real_accelerator.py:203:get_accelerator] Setting ds_accelerator to cuda (auto detect)
(head, rank=0, pid=2867) 172.31.15.28: [WARNING] async_io requires the dev libaio .so object and headers but these were not found.
(head, rank=0, pid=2867) 172.31.15.28: [WARNING] async_io: please install the libaio-dev package with apt
(head, rank=0, pid=2867) 172.31.15.28: [WARNING] If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
(head, rank=0, pid=2867) 172.31.15.28: [WARNING] Please specify the CUTLASS repo directory as environment variable $CUTLASS_PATH
(head, rank=0, pid=2867) 172.31.15.28: [WARNING] NVIDIA Inference is only supported on Ampere and newer architectures
(head, rank=0, pid=2867) 172.31.10.116: [WARNING] async_io requires the dev libaio .so object and headers but these were not found.
(head, rank=0, pid=2867) 172.31.10.116: [WARNING] async_io: please install the libaio-dev package with apt
(head, rank=0, pid=2867) 172.31.10.116: [WARNING] If libaio is already installed (perhaps from source), try setting the CFLAGS and LDFLAGS environment variables to where it can be found.
(head, rank=0, pid=2867) 172.31.10.116: [WARNING] Please specify the CUTLASS repo directory as environment variable $CUTLASS_PATH
(head, rank=0, pid=2867) 172.31.15.28: [WARNING] sparse_attn requires a torch version >= 1.5 and < 2.0 but detected 2.4
(head, rank=0, pid=2867) 172.31.15.28: [WARNING] using untested triton version (3.0.0), only 1.0.0 is known to be compatible
(head, rank=0, pid=2867) 172.31.15.28: Traceback (most recent call last):
(head, rank=0, pid=2867) 172.31.15.28: File "main.py", line 27, in <module>
(head, rank=0, pid=2867) 172.31.15.28: from utils.data.data_utils import create_prompt_dataset
(head, rank=0, pid=2867) 172.31.15.28: File "/home/ubuntu/sky_workdir/DeepSpeedExamples/applications/DeepSpeed-Chat/training/utils/data/data_utils.py", line 12, in <module>
(head, rank=0, pid=2867) 172.31.15.28: from datasets import load_dataset
(head, rank=0, pid=2867) 172.31.15.28: ModuleNotFoundError: No module named 'datasets'
(head, rank=0, pid=2867) 172.31.10.116: [WARNING] NVIDIA Inference is only supported on Ampere and newer architectures
(head, rank=0, pid=2867) 172.31.10.116: [WARNING] sparse_attn requires a torch version >= 1.5 and < 2.0 but detected 2.4
(head, rank=0, pid=2867) 172.31.10.116: [WARNING] using untested triton version (3.0.0), only 1.0.0 is known to be compatible
(head, rank=0, pid=2867) 172.31.10.116: Traceback (most recent call last):
(head, rank=0, pid=2867) 172.31.10.116: File "main.py", line 27, in <module>
(head, rank=0, pid=2867) 172.31.10.116: from utils.data.data_utils import create_prompt_dataset
(head, rank=0, pid=2867) 172.31.10.116: File "/home/ubuntu/sky_workdir/DeepSpeedExamples/applications/DeepSpeed-Chat/training/utils/data/data_utils.py", line 12, in <module>
(head, rank=0, pid=2867) 172.31.10.116: from datasets import load_dataset
(head, rank=0, pid=2867) 172.31.10.116: ModuleNotFoundError: No module named 'datasets'
(head, rank=0, pid=2867) 172.31.15.28: [2024-12-03 20:53:31,139] [INFO] [launch.py:319:sigkill_handler] Killing subprocess 3352
(head, rank=0, pid=2867) 172.31.15.28: [2024-12-03 20:53:31,140] [ERROR] [launch.py:325:sigkill_handler] ['/home/ubuntu/miniconda3/envs/deepspeed/bin/python', '-u', 'main.py', '--local_rank=0', '--data_path', 'Dahoas/rm-static', 'Dahoas/full-hh-rlhf', 'Dahoas/synthetic-instruct-gptj-pairwise', 'yitingxie/rlhf-reward-datasets', '--data_split', '2,4,4', '--model_name_or_path', 'facebook/opt-1.3b', '--per_device_train_batch_size', '8', '--per_device_eval_batch_size', '8', '--max_seq_len', '512', '--learning_rate', '1e-3', '--weight_decay', '0.1', '--num_train_epochs', '16', '--gradient_accumulation_steps', '1', '--lr_scheduler_type', 'cosine', '--num_warmup_steps', '0', '--seed', '1234', '--zero_stage', '0', '--lora_dim', '128', '--lora_module_name', 'decoder.layers.', '--only_optimize_lora', '--deepspeed', '--output_dir', './output'] exits with return code = 1
(head, rank=0, pid=2867) 172.31.10.116: [2024-12-03 20:53:31,657] [INFO] [launch.py:319:sigkill_handler] Killing subprocess 2799
(head, rank=0, pid=2867) 172.31.10.116: [2024-12-03 20:53:31,657] [ERROR] [launch.py:325:sigkill_handler] ['/home/ubuntu/miniconda3/envs/deepspeed/bin/python', '-u', 'main.py', '--local_rank=0', '--data_path', 'Dahoas/rm-static', 'Dahoas/full-hh-rlhf', 'Dahoas/synthetic-instruct-gptj-pairwise', 'yitingxie/rlhf-reward-datasets', '--data_split', '2,4,4', '--model_name_or_path', 'facebook/opt-1.3b', '--per_device_train_batch_size', '8', '--per_device_eval_batch_size', '8', '--max_seq_len', '512', '--learning_rate', '1e-3', '--weight_decay', '0.1', '--num_train_epochs', '16', '--gradient_accumulation_steps', '1', '--lr_scheduler_type', 'cosine', '--num_warmup_steps', '0', '--seed', '1234', '--zero_stage', '0', '--lora_dim', '128', '--lora_module_name', 'decoder.layers.', '--only_optimize_lora', '--deepspeed', '--output_dir', './output'] exits with return code = 1
(head, rank=0, pid=2867) pdsh@ip-172-31-15-28: 172.31.15.28: ssh exited with exit code 1
(head, rank=0, pid=2867) pdsh@ip-172-31-15-28: 172.31.10.116: ssh exited with exit code 1
โ Job finished (status: SUCCEEDED).
```
| 0easy
|
Title: Provide links to Page variable documentation
Body: We should provide links to documentation on the Page editor: https://docs.ctfd.io/docs/pages/variables/ | 0easy
|
Title: Spurious comment in `Dockerfile`
Body: The `Dockerfile` used by repo2docker when building a repository that doesn't contain a `postBuild` file contains a spurious line:
```
# Make sure that postBuild scripts are marked executable before executing them
```
towards the end of the file. You can reproduce this with ` repo2docker --debug --no-build https://github.com/binder-examples/requirements`.
We should remove the comment when there isn't a `postBuild` file. | 0easy
|
Title: The 'silent' keyword argument does not behave pythonically in version 2.1.0
Body: # Summary of your issue
When I give `silent` as the last argument to `tabula.read_pdf()`, the mere existence of `silent` keyword causes it to be considered as `True`. To unsilence Tabula's `sys.stderr` output, I have to omit it. Setting `silent=False` or `silent=None` did not turn on Tabula's `sys.stderr` output.
I did not test other Tabula functions or other `tabula.io.build_options()` options, but I suspect that the bug exists also for them.
Workaround which worked for me:
```
tabula.read_pdf(...., **({ "silent": True } if silent else {})
```
which is not Pythonic.
# Check list before submit
<!--- Write and check the following questionaries. -->
- [x] Did you read [FAQ](https://tabula-py.readthedocs.io/en/latest/faq.html)?
- [ ] (Optional, but really helpful) Your PDF URL: ?
Not PDF-specific.
- [X] Paste the output of `import tabula; tabula.environment_info()` on Python REPL: ?
>>> import tabula
>>> tabula.environment.info()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tabula' has no attribute 'environment'
>>> tabula.environment_info()
Python version:
3.8.2 (default, Apr 2 2020, 08:26:09)
[GCC 8.3.0]
Java version:
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Debian-3deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Debian-3deb10u1, mixed mode, sharing)
tabula-py version: 2.1.0
platform: Linux-4.19.0-9-amd64-x86_64-with-glibc2.28
uname:
uname_result(system='Linux', node='c4', release='4.19.0-9-amd64', version='#1 SMP Debian 4.19.118-2+deb10u1 (2020-06-07)', machine='x86_64', processor='')
linux_distribution: ('Debian GNU/Linux', '10', 'buster')
mac_ver: ('', ('', '', ''), '')
# What did you do when you faced the problem?
I used the workaround:
```
tabula.read_pdf(...., **({ "silent": True } if silent else {})
```
## Code:
```
tabula.read_pdf(...)
```
with the following values of `silent` option:
- option does not exist
- `silent=True`
- `silent=False`
- `silent=None`
## Expected behavior:
- missing option: messages about font errors are outputted.
- `silent=True`: messages about font errors are NOT outputted.
- `silent=False`: messages about font errors are outputted.
- `silent=None`: messages about font errors are outputted.
## Actual behavior:
- missing option: messages about font errors are outputted - OK
- `silent=True`: messages about font errors are NOT outputted - OK
- `silent=False`: messages about font errors are NOT outputted - NOT OK
- `silent=None`: messages about font errors are NOT outputted - NOT OK
## Related Issues:
The bug is cosmetic by its nature - does not affect real functionality and has an easy workaround. | 0easy
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.