text:
Running user-defined functions on console return only when stopped manually

Issue Report Checklist

[x] Searched the issues page for similar reports
[x] Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
[x] Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
[ ] Could not reproduce inside jupyter qtconsole (if console-related)
[ ] Tried basic troubleshooting (if a bug/error)

[x] Restarted Spyder
[ ] Reset preferences with spyder --reset
[ ] Reinstalled the latest version of Anaconda
[ ] Tried the other applicable steps from the Troubleshooting Guide

[x] Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description
Hello,
When calling various user-defined functions or creating instances of user-defined classes from console, it will run indefinitely until I press Stop debugging (Ctrl+Shift+F12) twice, although I wasn't even in debugging mode, just running commands from the console. Furthermore, for some reason the command won't start to run until I press Shift+Enter (pressing Enter will do nothing). When printing the running time at various locations in the function, the times are printed only after pressing Stop debugging twice. Also, the times correspond to regular running time, i.e. very short. So I figure that the function runs and then gets stuck before returning for some reason. This does not happen for every user defined function or class, and I could not identify the pattern. However, when it does happen for some function, it is quite consistent. It always happens only at first call to the function with some set of inputs. If I run the same again, it will run normally. But if I change the inputs to the function, it is stuck again.
When running the cell/file, this problem does not occur. It also does not occur when running ipython from terminal. It does occur when running it from a jupyter qtconsole. Please tell me If I should delete this and post it on jupyter qtconsole issues instead.
I know this might seem like a strange and maybe ill-described problem, but this problem is bugging me for a very long time, through different versions of anaconda and spyder and on different computers. I appreciate any help.
What steps reproduce the problem?

Define some function
Run it from console

What is the expected output? What do you see instead?
Expected: Normal execution of the command after pressing Enter. Instead the command won't start to run upon Enter and when pressing Shift+Enter it will run indefinitely until pressing Stop debugging twice which will make the function return. Sometimes Ctrl+C also makes the function return.
Versions

Spyder version: 5.1.5 None
Python version: 3.8.12 64-bit
Qt version: 5.9.7
PyQt5 version: 5.9.2
Operating System: Linux 5.4.0-90-generic

Dependencies

# Mandatory:
atomicwrites >=1.2.0          :  1.4.0 (OK)
chardet >=2.0.0               :  4.0.0 (OK)
cloudpickle >=0.5.0           :  2.0.0 (OK)
cookiecutter >=1.6.0          :  1.7.2 (OK)
diff_match_patch >=20181111   :  20200713 (OK)
intervaltree >=3.0.2          :  3.1.0 (OK)
IPython >=7.6.0               :  7.29.0 (OK)
jedi >=0.17.2;<0.19.0         :  0.17.2 (OK)
jsonschema >=3.2.0            :  3.2.0 (OK)
keyring >=17.0.0              :  23.1.0 (OK)
nbconvert >=4.0               :  6.1.0 (OK)
numpydoc >=0.6.0              :  1.1.0 (OK)
parso >=0.7.0;<0.9.0          :  0.7.0 (OK)
pexpect >=4.4.0               :  4.8.0 (OK)
pickleshare >=0.4             :  0.7.5 (OK)
psutil >=5.3                  :  5.8.0 (OK)
pygments >=2.0                :  2.10.0 (OK)
pylint >=2.5.0;<2.10.0        :  2.9.6 (OK)
pyls_spyder >=0.4.0           :  0.4.0 (OK)
pylsp >=1.2.2;<1.3.0          :  1.2.4 (OK)
pylsp_black >=1.0.0           :  None (OK)
qdarkstyle =3.0.2             :  3.0.2 (OK)
qstylizer >=0.1.10            :  0.1.10 (OK)
qtawesome >=1.0.2             :  1.0.2 (OK)
qtconsole >=5.1.0             :  5.1.1 (OK)
qtpy >=1.5.0                  :  1.10.0 (OK)
rtree >=0.9.7                 :  0.9.7 (OK)
setuptools >=49.6.0           :  58.0.4 (OK)
sphinx >=0.6.6                :  4.2.0 (OK)
spyder_kernels >=2.1.1;<2.2.0 :  2.1.3 (OK)
textdistance >=4.2.0          :  4.2.1 (OK)
three_merge >=0.1.1           :  0.1.1 (OK)
watchdog >=0.10.3             :  2.1.3 (OK)
xdg >=0.26                    :  0.27 (OK)
zmq >=17                      :  22.2.1 (OK)

# Optional:
cython >=0.21                 :  0.29.24 (OK)
matplotlib >=2.0.0            :  3.4.3 (OK)
numpy >=1.7                   :  1.20.3 (OK)
pandas >=1.1.1                :  1.3.4 (OK)
scipy >=0.17.0                :  1.7.1 (OK)
sympy >=0.7.3                 :  1.9 (OK)```

Hey @yuvalwas, thanks for reporting. You said

This does not happen for evey user defined function or class, and I could not identify the pattern. However, when it does happen for some function, it is quite consistent

We haven't seen reports of problems like this before, so it's really hard to know what's happening. The problem is that without a clear way to reproduce it, it won't be possible for us or someone else to track it down and fix it.

It does occur when running it from a jupyter qtconsole

That means the problem is not specific to Spyder, but to the Jupyter architecture.

Please tell me If I should delete this and post it on jupyter qtconsole issues instead

There's no need of that because we also maintain qtconsole.

I know this might seem like a strange and maybe ill-described problem, but this problem is bugging me for a very long time, through different versions of anaconda and spyder and on different computers. I appreciate any help.

If you have this problem in other computers, then it could be related to a specific configuration that you're copying from system to system. Do you have configuration files for IPython, IPykernel or another Jupyter project?

If you have this problem in other computers, then it could be related to a specific configuration that you're copying from system to system. Do you have configuration files for IPython, IPykernel or another Jupyter project?

No.
I tried isolating what makes the function behave like this. First of all, I think it only happens when the function reads data from some variable which contains all of my data. Sometimes, when I stop a function running after it got stuck, it would return some traceback. For some functions that I use for plotting, it would return the following traceback:
Error in callback <function flush_figures at 0x7ff4540bc670> (for post_execute):
Traceback (most recent call last):

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/PIL/ImageFile.py", line 504, in _save
    fh = fp.fileno()

AttributeError: '_idat' object has no attribute 'fileno'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib_inline/backend_inline.py", line 121, in flush_figures
    return show(True)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib_inline/backend_inline.py", line 41, in show
    display(

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/IPython/core/display.py", line 320, in display
    format_dict, md_dict = format(obj, include=include, exclude=exclude)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/IPython/core/formatters.py", line 180, in format
    data = formatter(obj)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/IPython/core/formatters.py", line 224, in catch_format_error
    r = method(self, *args, **kwargs)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/IPython/core/formatters.py", line 341, in __call__
    return printer(obj)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/IPython/core/pylabtools.py", line 151, in print_figure
    fig.canvas.print_figure(bytes_io, **kw)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2255, in print_figure
    result = print_method(

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 1669, in wrapper
    return func(*args, **kwargs)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 509, in print_png
    mpl.image.imsave(

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/image.py", line 1616, in imsave
    image.save(fname, **pil_kwargs)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/PIL/Image.py", line 2240, in save
    save_handler(self, fp, filename)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/PIL/PngImagePlugin.py", line 1348, in _save
    ImageFile._save(im, _idat(fp, chunk), [("zip", (0, 0) + im.size, 0, rawmode)])

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/PIL/ImageFile.py", line 518, in _save
    l, s, d = e.encode(bufsize)

KeyboardInterrupt

or
Error in callback <function flush_figures at 0x7f2f6c4cb670> (for post_execute):
Traceback (most recent call last):

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib_inline/backend_inline.py", line 121, in flush_figures
    return show(True)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib_inline/backend_inline.py", line 41, in show
    display(

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/IPython/core/display.py", line 320, in display
    format_dict, md_dict = format(obj, include=include, exclude=exclude)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/IPython/core/formatters.py", line 180, in format
    data = formatter(obj)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/IPython/core/formatters.py", line 224, in catch_format_error
    r = method(self, *args, **kwargs)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/IPython/core/formatters.py", line 341, in __call__
    return printer(obj)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/IPython/core/pylabtools.py", line 151, in print_figure
    fig.canvas.print_figure(bytes_io, **kw)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2230, in print_figure
    self.figure.draw(renderer)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py", line 74, in draw_wrapper
    result = draw(artist, renderer, *args, **kwargs)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/figure.py", line 2790, in draw
    mimage._draw_list_compositing_images(

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/image.py", line 132, in _draw_list_compositing_images
    a.draw(renderer)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/_api/deprecation.py", line 431, in wrapper
    return func(*inner_args, **inner_kwargs)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 2921, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/image.py", line 132, in _draw_list_compositing_images
    a.draw(renderer)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/collections.py", line 1012, in draw
    super().draw(renderer)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/collections.py", line 389, in draw
    extents = paths[0].get_extents(combined_transform)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/path.py", line 631, in get_extents
    _, dzeros = curve.axis_aligned_extrema()

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/bezier.py", line 295, in axis_aligned_extrema
    Cj = self.polynomial_coefficients

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/matplotlib/bezier.py", line 273, in polynomial_coefficients
    prefactor = (-1)**(i + j) * _comb(j, i)  # j on axis 0, i on axis 1

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/numpy/lib/function_base.py", line 2113, in __call__
    return self._vectorize_call(func=func, args=vargs)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/numpy/lib/function_base.py", line 2194, in _vectorize_call
    inputs = [array(a, copy=False, subok=True, dtype=object)

  File "/home/yuval/anaconda3/lib/python3.8/site-packages/numpy/lib/function_base.py", line 2194, in <listcomp>
    inputs = [array(a, copy=False, subok=True, dtype=object)

KeyboardInterrupt

However, I should note again that this also happen for non-plotting functions and many times does not produce any traceback, just upon manually stopping the function it returns normally.

As far as I have noticed, it only happens when the function reads data from some variable I have which contains all of my data

Ok, to me (and also seeing your tracebacks) this implies that the problem is not caused by Spyder. Instead, it seems to be triggered by the libraries you're using in your code. Since you already said that you're also seeing it in Qtconsole, that's the most logical conclusion too.
Sorry for not being more helpful, but I don't know what else we could do for you.

Closing because I don't think we can do something else about this.

Thank you anyway, really appreciate your work. Hopefully you'll also support Julia someday.


text:
Can not start spyder under python2 because guidata doesn't support PyQt5

Started from bootstrap.py with today's last master:
Traceback (most recent call last):
  File "/home/joseph/prog/spyder.git/spyderlib/spyder.py", line 2865, in main
    mainwindow = run_spyder(app, options, args)
  File "/home/joseph/prog/spyder.git/spyderlib/spyder.py", line 2755, in run_spyder
    main.setup()
  File "/home/joseph/prog/spyder.git/spyderlib/spyder.py", line 736, in setup
    if is_module_installed('guidata'):
  File "/home/joseph/prog/spyder.git/spyderlib/utils/programs.py", line 292, in is_module_installed
    actver = get_module_version(module_name)
  File "/home/joseph/prog/spyder.git/spyderlib/utils/programs.py", line 238, in get_module_version
    mod = __import__(module_name)
  File "/usr/lib/python2.7/site-packages/guidata/__init__.py", line 539, in <module>
    import guidata.config
  File "/usr/lib/python2.7/site-packages/guidata/config.py", line 15, in <module>
    from guidata.configtools import add_image_module_path, get_translation
  File "/usr/lib/python2.7/site-packages/guidata/configtools.py", line 22, in <module>
    from guidata.qt.QtGui import (QFont, QLabel, QPixmap, QIcon, QHBoxLayout,
  File "/usr/lib/python2.7/site-packages/guidata/qt/__init__.py", line 13, in <module>
    assert _modname in ('pyqt', 'pyside')
AssertionError

This is not an issue with Spyder but with guidata. It seems it doesn't support Qt5?
Since guitadata is now on Github, please report this issue there https://github.com/PierreRaybaut/guidata/issues
But until @PierreRaybaut fixes this error, we need to fix the crash in our side :-)

Yeah, the doc states that it requires PyQt4, so it's not a bug but a missing feature. The last commit is 2 years old, is it still maintained ?

I don't know :-)

@Nodd, I can't test this because Ubuntu doesn't have pyqt5 for Python 2.
Please test it in your side and report back if my commit fixes the problem for you.

Traceback (most recent call last):
  File "/data/prog/spyder.git/spyderlib/spyder.py", line 2870, in main
    mainwindow = run_spyder(app, options, args)
  File "/data/prog/spyder.git/spyderlib/spyder.py", line 2760, in run_spyder
    main.setup()
  File "/data/prog/spyder.git/spyderlib/spyder.py", line 736, in setup
    if is_module_installed('guidata'):
  File "/data/prog/spyder.git/spyderlib/utils/programs.py", line 292, in is_module_installed
    actver = get_module_version(module_name)
  File "/data/prog/spyder.git/spyderlib/utils/programs.py", line 238, in get_module_version
Sadly, it doesn't :
    mod = __import__(module_name)
  File "/usr/lib/python2.7/site-packages/guidata/__init__.py", line 539, in <module>
    import guidata.config
  File "/usr/lib/python2.7/site-packages/guidata/config.py", line 15, in <module>
    from guidata.configtools import add_image_module_path, get_translation
  File "/usr/lib/python2.7/site-packages/guidata/configtools.py", line 22, in <module>
    from guidata.qt.QtGui import (QFont, QLabel, QPixmap, QIcon, QHBoxLayout,
  File "/usr/lib/python2.7/site-packages/guidata/qt/__init__.py", line 13, in <module>
    assert _modname in ('pyqt', 'pyside')
AssertionError

I'm at commit 1d40965c917da3490aa01de4154aea1b9548732a so it includes your commit.
The problem is when testing if guidata is installed, so it's the line right before your modifications: https://github.com/spyder-ide/spyder/commit/55b30d8ad2d703f1451db1d2e3d51c13e9449caf#diff-e13742a2ff2d16fb2f96574ff7b24a5cR736

Ok, I see. Thanks for reopening.

@Nodd, please test again. I think I fixed the error now :-)

@Nodd, can you give me confirmation on this issue? I need to be sure my last fix is working for beta1.

It works now, thanks !

Oh yeah, forgot to close it...

source: gharchive/issue

repo: spyder-ide/spyder

license: MIT

license_type: permissive

license_source: github-api


text:
Error when executing argparse in IPython console

The following code snippet fails when it is executed with F9 or in cell mode.
import argparse
parser = argparse.ArgumentParser()
args = parser.parse_args()

The reason is the arguments passed to the ipython console, in particular the -f:
>>> import sys
>>> print(sys.argv)
['/usr/local/lib/python3.5/dist-packages/spyder/utils/ipython/start_kernel.py', '-f', '/run/user/1000/jupyter/kernel-690215617a08.json']

What steps will reproduce the problem?

Run code snippet above in ipython console
An error message is generated

The code snippet does work when executed in the python console. It also worked with previous versions of spyder. The issue is probably the same as #1557.
Versions and main components

Spyder Version: Spyder 4.0.0.dev0
Python Version: 3.5.2
Operating system: Ubuntu

What does -f have to do with this?

The -f is not one of the arguments in my parser object, that is why the line args = parser.parse_args() fails. To compare: if I run the code snippet from the command line, then the follow works:
python snippet.py

but the following fails:
python -f dummyvalue snippet.py

So the solution would be to clear sys.argv for our IPython consoles, right?

That would solve it for me yes. Not sure how easy that is to do in spyder. Note that if I run the code with F5 then the arguments are cleared.

@andfoy, please work on this one. The idea is to clean sys.argv in utils/ipython/start_kernel.py by evaluating
import sys; sys.argv=['']; del sys

in the same way as we evaluate the matplotlib magic.

You can also try   args = parser.parse_args(args=[])

i have the same error how you fix it?
Exception has occurred: SystemExit
2
File "C:\Users\Acer\Downloads\imgclsmob-master\imgclsmob-master\examples\demo_tf2.py", line 64, in parse_args
args = parser.parse_args()
File "C:\Users\Acer\Downloads\imgclsmob-master\imgclsmob-master\examples\demo_tf2.py", line 72, in main
args = parse_args()
File "C:\Users\Acer\Downloads\imgclsmob-master\imgclsmob-master\examples\demo_tf2.py", line 132, in
main()

authors: ArvindSubramaniam ccordoba12 fatimajanbein peendebak


text:
Add description and workaround of Spyder UMR conflict with Astropy to Troubleshooting Guide

Problem Description
Need a place to document known Spyder issue with Astropy. There is a PR at astropy/astropy#7374 but we feel it belongs more to your documentation over here. Please advise.
What steps will reproduce the problem?
Detailed description at astropy/astropy#7363
What is the expected output? What do you see instead?
Expect no error message. Instead, there is error message.
Package Versions

Spyder: 2.3.5.2 - 3.1.2
Python: 2.7
Qt: N/A
PyQt: N/A
Operating System: openSUSE Leap 42.3

Dependencies
N/A

Thanks for the information and request. The place to put it currently would be our Troubleshooting Guide and FAQ on our wiki, where we list common known issues and solutions (although it is currently more focused on general troubleshooting, it is in the slow process of being expanded).
However, I note both here and skimming the attached thread, the problem exists only with

Spyder: 2.3.5.2 - 3.1.2

Those Spyder versions are many years old and long-unsupported; the current stable version is 3.2.8; with 3.3 in the immediate works and Spyder 4 as the development version. Therefore, if the issue isn't present in the current version (or at least something very near it), we can only advise that users update to the supported stable release; due to the current funding situation we simply cannot spare the resources supporting versions that are many years old, unfortunately.
Therefore, please advise accordingly. Thanks!

Thanks for looking into this; I have confirmed the problem under MacOS 10.12 and Python 2.7 (it does not occur in 3.5 or higher) for
spyder 3.2.8
qtpy 1.3.1
pyqt5 5.10.1
astropy 2.0.5

as long as astropy is not among the blacklisted modules, i.e. actually reloaded by sitecustomize.UserModuleReloader. I have tested a similar script reloading the scipy, pandas and pytables packages, and none of the latter raises an exception.

Okay, thanks for following up @dhomeier . Pardon my ignorance, but is the reason Spyder is detecting it as a "user module" and even trying to reload it is that you're actively developing and modifying it from e.g. a git clone, vs. having it installed normally as most users would? My understanding is that UMR shouldn't even try to trigger if there are no changes to the module and it is properly installed as a third party package vs. just being on the path/in the working directly (I don't know the exact logic off the top of my head). @ccordoba12 ?

@pllim, @dhomeier, what if we simply add astropy among our list of default blacklisted modules for Python 2.7?
We can certainly add a note in our docs, but I doubt people would easily find it.

@CAM-Gerlach, in the original bug report the user was running the Spyder version (3.1.4) installed on her Ubuntu 17.10 system with a user installation of Astropy in ~/.local/lib (probably in some way like pip install --user). Since Astropy versions included with most distributions are often even more out of date than Spyder, if they exist at all, this is probably not a too uncommon situation.
If not blacklisted, the UMR reloads the imported astropy modules in any case, even if they have not been changed since the first run file().

@ccordoba12, yes, I think that would be a helpful workaround - active astropy development is under Python 3 only anyway, and in any case is should be safer to start a new IPython kernel for testing.

Thanks for the explanation @dhomeier . I guess I can be a little too conda centric sometimes, heh.

should be safer to start a new IPython kernel for testing.

Just in case you're curious about the various ways to quickly achieve this in Spyder, I refer you to the recent #6955 .

@dalthviz, please work on this one.

authors: CAM-Gerlach ccordoba12 dhomeier pllim


text:
Automatic error report

Problem Description
What steps will reproduce the problem?

the error accurs at the start.
spyder is unable to connect to kernel
Traceback
  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\plugins\ipythonconsole.py", line 1046, in create_new_client
    self.connect_client_to_kernel(client, is_cython=is_cython)
  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\plugins\ipythonconsole.py", line 1074, in connect_client_to_kernel
    is_cython=is_cython)
  File "C:\ProgramData\Anaconda3\lib\site-packages\spyder\plugins\ipythonconsole.py", line 1522, in create_kernel_manager_and_kernel_client
    kernel_manager.start_kernel(stderr=stderr)
  File "C:\ProgramData\Anaconda3\lib\site-packages\jupyter_client\manager.py", line 240, in start_kernel
    self.write_connection_file()
  File "C:\ProgramData\Anaconda3\lib\site-packages\jupyter_client\connect.py", line 472, in write_connection_file
    kernel_name=self.kernel_name
  File "C:\ProgramData\Anaconda3\lib\site-packages\jupyter_client\connect.py", line 137, in write_connection_file
    with open(fname, 'w') as f:
OSError: [Errno 28] No space left on device: 'h:\\win.v2\\AppData\\Roaming\\jupyter\\runtime\\kernel-4b9ad480903e.json'

Package Versions

Spyder version: 3.2.8
Python version: 3.6.5
Qt version: 5.9.4
PyQt5 version: 5.9.2
Operating system: Windows 8.1

Dependencies
pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.4.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  0.23.0 (OK)
numpy >=1.7      :  1.14.3 (OK)
sphinx >=0.6.6   :  1.7.4 (OK)
rope >=0.9.4     :  0.10.7 (OK)
jedi >=0.9.0     :  0.12.0 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  1.1.1 (OK)
cython >=0.21    :  0.28.2 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.4.0 (OK)
pylint >=0.25    :  1.8.4 (OK)

OSError: [Errno 28] No space left on device

The error is clear: you don't have space in your H:\ partition to save files. Besides, this error will be caught and reported in a nicer way since our next version (3.3.2).


text:
Discord module "not found" when imported, but installed.

Description
What steps will reproduce the problem?

"import discord" doesn't work and only produces the error showed in the pic below.  I double checked via the cmd window and it is installed in the Python 36_32 site-packages folder.  I can even see all the help available on this module, its methods, etc.  Why is Spyder not able to  import the discord module into my file?
Versions

Spyder version: 3.3.1
Python version: 3.6.4
Qt version: 5.6.2
PyQt5 version: 5.6
Operating System: Windows 10

Dependencies
pyflakes >=0.6.0  :  1.6.0 (OK)
pycodestyle >=2.3 :  2.3.1 (OK)
pygments >=2.0    :  2.2.0 (OK)
sphinx >=0.6.6    :  1.6.6 (OK)
rope >=0.9.4      :  0.10.7 (OK)
jedi >=0.9.0      :  0.11.1 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
pandas >=0.13.1   :  0.22.0 (OK)
numpy >=1.7       :  1.15.4 (OK)
sympy >=0.7.3     :  1.1.1 (OK)
cython >=0.21     :  0.27.3 (OK)
qtconsole >=4.2.0 :  4.3.1 (OK)
IPython >=4.0     :  6.2.1 (OK)
matplotlib >=2.0.0:  2.1.2 (OK)
pylint >=0.25     :  1.8.2 (OK)

This is not a Spyder problem but we wrote the following guide to help people with this kind of problems:
https://github.com/spyder-ide/spyder/wiki/Working-with-packages-and-environments-in-Spyder
Please try to solve your problem by reading it.

Thanks so much!  New to use using Spyder, Anaconda, and all this jazz so the guide is much appreciated!
On Saturday, November 24, 2018, 12:36:51 AM GMT+2, Carlos Cordoba notifications@github.com wrote:
This is not a Spyder problem but we wrote the following guide to help people with this kind of problems:
https://github.com/spyder-ide/spyder/wiki/Working-with-packages-and-environments-in-Spyder
Please try to solve your problem by reading it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


text:
extracting features using VGG-16 in keras

Description
What steps will reproduce the problem?

I am extracting features of images using VGG-16 model in keras
Traceback
  File "C:\ProgramData\Anaconda3\envs\python36\lib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 482, in createEditor
    if not editor.setup_and_check(value, title=key, readonly=readonly):
  File "C:\ProgramData\Anaconda3\envs\python36\lib\site-packages\spyder\widgets\variableexplorer\arrayeditor.py", line 620, in setup_and_check
    self.data.flags.writeable = True
ValueError: cannot set WRITEABLE flag to True of this array
Traceback (most recent call last):
  File "C:\ProgramData\Anaconda3\envs\python36\lib\site-packages\spyder\widgets\variableexplorer\collectionseditor.py", line 482, in createEditor
    if not editor.setup_and_check(value, title=key, readonly=readonly):
  File "C:\ProgramData\Anaconda3\envs\python36\lib\site-packages\spyder\widgets\variableexplorer\arrayeditor.py", line 620, in setup_and_check
    self.data.flags.writeable = True
ValueError: cannot set WRITEABLE flag to True of this array

Versions

Spyder version: 3.3.2
Python version: 3.6.8
Qt version: 5.9.6
PyQt5 version: 5.9.2
Operating System: Windows 10

Dependencies
pyflakes >=0.6.0  :  2.1.0 (OK)
pycodestyle >=2.3 :  2.5.0 (OK)
pygments >=2.0    :  2.3.1 (OK)
sphinx >=0.6.6    :  1.8.4 (OK)
rope >=0.9.4      :  0.11.0 (OK)
jedi >=0.9.0      :  0.13.2 (OK)
nbconvert >=4.0   :  5.3.1 (OK)
pandas >=0.13.1   :  0.24.1 (OK)
numpy >=1.7       :  1.16.1 (OK)
sympy >=0.7.3     :  None (NOK)
cython >=0.21     :  None (NOK)
qtconsole >=4.2.0 :  4.4.3 (OK)
IPython >=4.0     :  7.2.0 (OK)
matplotlib >=2.0.0:  3.0.2 (OK)
pylint >=0.25     :  2.2.2 (OK)

This is fixed in our latest version (3.3.3). Please update by opening the Anaconda Prompt and running there
conda update spyder


text:
Internal Python Language Server error

Description
What steps will reproduce the problem?

I tried to open a different project when one project is already open. Both projects were made using older spyder3 version.
Traceback
  File "/home/sudhanshu/bin/anaconda3_7/anaconda/envs/pyrosetta-code-school/lib/python3.6/site-packages/pyls_jsonrpc/endpoint.py", line 113, in consume
    self._handle_request(message['id'], message['method'], message.get('params'))
  File "/home/sudhanshu/bin/anaconda3_7/anaconda/envs/pyrosetta-code-school/lib/python3.6/site-packages/pyls_jsonrpc/endpoint.py", line 182, in _handle_request
    handler_result = handler(params)
  File "/home/sudhanshu/bin/anaconda3_7/anaconda/envs/pyrosetta-code-school/lib/python3.6/site-packages/pyls_jsonrpc/dispatchers.py", line 23, in handler
    return method(**(params or {}))
  File "/home/sudhanshu/bin/anaconda3_7/anaconda/envs/pyrosetta-code-school/lib/python3.6/site-packages/pyls/python_ls.py", line 236, in m_text_document__did_close
    self.workspace.rm_document(textDocument['uri'])
  File "/home/sudhanshu/bin/anaconda3_7/anaconda/envs/pyrosetta-code-school/lib/python3.6/site-packages/pyls/workspace.py", line 74, in rm_document
    self._docs.pop(doc_uri)

Versions

Spyder version: 4.0.0b2
Python version: 3.6.7
Qt version: 5.6.2
PyQt5 version: 5.6
Operating System: Linux 4.18.0-15-generic

Dependencies
pygments >=2.0     :  2.3.1 (OK)
qdarkstyle >=2.6.4 :  2.7 (OK)
sphinx >=0.6.6     :  2.1.0 (OK)
psutil >=0.3       :  5.6.1 (OK)
pyls >=0.19.0;<0.25:  0.24.0 (OK)
nbconvert >=4.0    :  5.4.1 (OK)
pandas >=0.13.1    :  0.24.2 (OK)
numpy >=1.7        :  1.16.3 (OK)
sympy >=0.7.3      :  None (NOK)
cython >=0.21      :  None (NOK)
qtconsole >=4.2.0  :  4.4.3 (OK)
IPython >=4.0      :  7.4.0 (OK)
matplotlib >=2.0.0 :  3.0.3 (OK)
pylint >=0.25      :  2.3.1 (OK)

This error was already fixed and it'll be part of our next beta.


text:
PR: Connect project explorer to file explorer when "Single click to open" option is updated

Description of Changes

[ ] Wrote at least one-line docstrings (for any new functions)
[ ] Added unit test(s) covering the changes (if testable)

[ ] Included a screenshot or animation (if affecting the UI, see Licecap)

Issue(s) Resolved

Fixes #9303
Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: @goanpeca

Single-click open in the project explorer is not working in 5.1.5
I don't know if this is a reversion or if this is as-designed behavior.
Not sure if it's a separate issue, but the hidden files setting for the file explorer also does not work in the project explorer.

@Llaves, thanks for mentioning that. The thing is that now (i.e. in Spyder 5) the file and project explorers are disconnected from each other and have their own set of options.
In our 5.2.0 version (released a few days ago), we added an option to do single click for Projects and also hidden directories are shown by default on that pane (there's no option to hide them).

I"ll download and enjoy the new feature
Thx

source: gharchive/pull-request

authors: Llaves ccordoba12 goanpeca


text:
🛑 37HRD - NAS is down

In 3eb34e1, 37HRD - NAS (https://nas.37hrd.uk) was down:

HTTP code: 0
Response time: 0 ms

Resolved: 37HRD - NAS is back up in ee1b157 after 9 minutes.

repo: sqbxmediagroup/status


text:
System.DllNotFoundException: Unable to load DLL 'Photino.Native' or one of its dependencies

Describe the problem
Hello!
I get this error when I try to open Bravo BI.
System.DllNotFoundException: Unable to load DLL 'Photino.Native' or one of its dependencies: The specified module could not be found. (0x8007007E)
at PhotinoNET.PhotinoWindow.Photino_register_win32(IntPtr hInstance)
at PhotinoNET.PhotinoWindow.<>c.<.ctor>b__238_0()
at PhotinoNET.PhotinoWindow.Invoke(Action workItem)
at PhotinoNET.PhotinoWindow..ctor(PhotinoWindow parent)
at Sqlbi.Bravo.Infrastructure.AppWindow.CreateWindow() in D:\a\1\s\src\Infrastructure\AppWindow.cs:line 58
at Sqlbi.Bravo.Infrastructure.AppWindow..ctor(IHost host, AppInstance instance) in D:\a\1\s\src\Infrastructure\AppWindow.cs:line 35
at Sqlbi.Bravo.Program.Main() in D:\a\1\s\src\Program.cs:line 25
How can I fix this error ?
Please help ~~!
Thank you!
Bravo version
na
Tabular model
Power BI Desktop, import mode
Power BI
Power BI Desktop version March 2022
Steps to reproduce the behavior

Install Bravo BI
Open PowerBI Desktop
Access External Tools
Click on Bravo BI
Error:
System.DllNotFoundException: Unable to load DLL 'Photino.Native' or one of its dependencies: The specified module could not be found. (0x8007007E)
at PhotinoNET.PhotinoWindow.Photino_register_win32(IntPtr hInstance)
at PhotinoNET.PhotinoWindow.<>c.<.ctor>b__238_0()
at PhotinoNET.PhotinoWindow.Invoke(Action workItem)
at PhotinoNET.PhotinoWindow..ctor(PhotinoWindow parent)
at Sqlbi.Bravo.Infrastructure.AppWindow.CreateWindow() in D:\a\1\s\src\Infrastructure\AppWindow.cs:line 58
at Sqlbi.Bravo.Infrastructure.AppWindow..ctor(IHost host, AppInstance instance) in D:\a\1\s\src\Infrastructure\AppWindow.cs:line 35
at Sqlbi.Bravo.Program.Main() in D:\a\1\s\src\Program.cs:line 25

Additional context
No response
Screenshots

Anything else ?
No response

Hi @Anaa97, thanks for reporting this! I'm closing this issue as duplicate of https://github.com/sql-bi/Bravo/issues/225
In the meantime could you please provide more details on this issue by replying to the comment https://github.com/sql-bi/Bravo/issues/225#issuecomment-1082235281 ?

@Anaa97 It appears that the Microsoft Visual C++ runtime libraries are not installed on your system. We will include this component in the MSI setup to install it automatically with the next release, in the meantime you can download and install it manually from here https://aka.ms/vs/17/release/vc_redist.x64.exe
https://github.com/sql-bi/Bravo/issues/225#issuecomment-1083064111

repo: sql-bi/Bravo


text:
[Bug] Get-DbaDbBackupHistory LastFull returns a old backup

Get-DbaDbBackupHistory -LastFull returns a backup, that is not the last.

Environmental information

#### PowerShell version:

Name                           Value
----                           -----
PSVersion                      5.1.14393.3471
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.14393.3471
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

#### dbatools Module version:

Name    : dbatools
Path    : C:\Users\skampmann\Documents\WindowsPowerShell\Modules\dbatools\1.0.103\dbatools.psd1
Version : 1.0.103

LCID             Name             DisplayName
----             ----             -----------
1031             de-DE            Deutsch (Deutschland)

SQL Server:

Microsoft SQL Server 2019 (RTM-CU2) (KB4536075) - 15.0.4013.40 (X64)   Feb  3 2020 16:40:57   Copyright (C) 2019 Microsoft Corporation  Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2016 Standard 10.0 <X64> (Build 14393: )

Deutsch

Report

Host used

[ ] powershell.exe
[ ] ISE
[x] VS Code
[ ] Other (please specify)

If anything other than powershell.exe was used, please confirm that you can duplicate the issue with powershell.exe

[x] Still buggy in powershell.exe

Errors Received

Steps to Reproduce

Get-DbaDbBackupHistory -SqlInstance rs -Database 'master' -LastFull -IncludeCopyOnly -Raw | Select-Object Database, Type, Start, FirstLsn
Get-DbaDbBackupHistory -SqlInstance rs -Database 'master' -IncludeCopyOnly -Raw | Sort-Object Start -Descending | Select-Object Database, Type, Start, FirstLsn -First 1

Expected Behavior

Database Type Start                         FirstLSN
-------- ---- -----                         --------
master   Full 27.03.2020 03:00:00 622000000022700001
master   Full 27.03.2020 03:00:00 622000000022700001

Actual Behavior

Database Type Start                         FirstLSN
-------- ---- -----                         --------
master   Full 28.01.2020 03:00:00 672000000028000021
master   Full 27.03.2020 03:00:00 622000000022700001

you're restored the database at some point, which has caused a new LSN chain to start
workarounds are

Clear out the old history from msdb
Use the -since paramter to search in the time since you restored the database

Really, once you've restored a database, the old backuphistory is of no real use as you can't use it as a starting point for a restore chain.

authors: Stuart-Moore abbgrade

repo: sqlcollaborative/dbatools


text:
Import issue after upgrading to v.1.1.14

Verified issue does not already exist?
No
What error did you receive?
VERBOSE: Loading module from path '/Users/lowlydba/.local/share/powershell/Modules/dbatools/1.1.14/dbatools.psd1'.
VERBOSE: Loading 'TypesToProcess' from path '/Users/lowlydba/.local/share/powershell/Modules/dbatools/1.1.14/xml/dbatools.Types.ps1xml'.
VERBOSE: Loading 'FormatsToProcess' from path '/Users/lowlydba/.local/share/powershell/Modules/dbatools/1.1.14/xml/dbatools.Format.ps1xml'.
VERBOSE: Populating RepositorySourceLocation property for module dbatools.
VERBOSE: Loading module from path '/Users/lowlydba/.local/share/powershell/Modules/dbatools/1.1.14/dbatools.psm1'.
Resolve-Path: /Users/lowlydba/.local/share/powershell/Modules/dbatools/1.1.14/bin/library.ps1:82:39
Line |
  82 |                      $script:DllRoot = Resolve-Path -Path bin
     |                                        ~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path '/Users/lowlydba/code/xxx/bin' because it does not exist.

Import-Module: Cannot bind argument to parameter 'Path' because it is null.

Similar issue (secondary problem) as in #7528
Steps to Reproduce
After downloading v 1.1.14
Import-Module dbatools -Force

Are you running the latest release?
Yes
Other details or mentions
Importing worked as of version 1.0.156
What PowerShell host was used when producing this error
PowerShell Core (pwsh.exe)
PowerShell Host Version
Name                           Value

PSVersion                      7.1.4
PSEdition                      Core
GitCommitId                    7.1.4
OS                             Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:31 PDT 2021; root:xnu-7195.141.2~5/RELEASE_X86_64
Platform                       Unix
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
SQL Server Edition and Build number
N/A

Thanks for the report! Fixing now

authors: LowlyDBA potatoqualitee


text:
Example 3 for Find-DbaInstance does not work in PowerShell Core (v7.1.4)

Verified issue does not already exist?
Yes
What error did you receive?
Find-DbaInstance: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.
Steps to Reproduce
# Example number 3 from https://docs.dbatools.io/Find-DbaInstance
Get-ADComputer -Filter "*" | Find-DbaInstance

Find-DbaInstance: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.

Find-DbaInstance: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.

Find-DbaInstance: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.

Are you running the latest release?
Yes
Other details or mentions
Get-AdComputer -Filter '*'  does return a valid computer object for each computer in the domain.
If I use the following script it seems to work:
(Get-AdComputer -Filter '*').Name | Find-DbaInstance

What PowerShell host was used when producing this error
PowerShell Core (pwsh.exe)
PowerShell Host Version
Name                           Value

PSVersion                      7.1.4
PSEdition                      Core
GitCommitId                    7.1.4
OS                             Microsoft Windows 10.0.17763
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
SQL Server Edition and Build number
Microsoft SQL Server 2019 (RTM-CU13) (KB5005679) - 15.0.4178.1 (X64)   Sep 23 2021 16:47:49   Copyright (C) 2019 Microsoft Corporation  Developer Edition (64-bit) on Windows 10 Enterprise 10.0  (Build 17763: ) (Hypervisor)
.NET Framework Version
.NET 5.0.9

I just installed PowerShell Core 7.1.5 and there it works. If you can still reproduce the issue, please reopen.

authors: andreasjordan jrobiii


text:
Fixed incorrect parameter -DatabaseUser to -User in the first Example

Type of Change

[ ] Bug fix (non-breaking change, fixes #)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[ ] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[ ] Adding code coverage to existing functionality
[ ] Pester test is included
[ ] If new file reference added for test, has is been added to github.com/sqlcollaborative/appveyor-lab ?
[ ] Nunit test is included
[x] Documentation
[ ] Build system

Purpose

Approach

Commands to test

Screenshots

Learning

Much appreciated.

authors: hahndorf wsmelton


text:
Allow queries to be cancelled while it is executing

This is different from https://github.com/sqlectron/sqlectron-gui/issues/87
currently once a query is issued and the db is processing there is no way to cancel a query. Sometimes you want to do this because your realized you did something bad.
I think the client is pretty much unusable without this.

Ouch "pretty much unusable" :cry: Even without that feature I think this app still quite useful. At least I have never needed to do that using this app or even with any other client. But I get your point, that would be a great feature.
I have seen some people doing that manually, listing the queries running in the database and killing them. I guess that is something you can do in any database. Could you let me know which client you use has this feature?
Since that is something I have never needed to use. I wont try to implement it right now. But if you are interested in sending a PR I would gladly accept that.

mmh i think pgadmin does this, and sequelpro too.

I think any decent SQL Client does this, I would think this is one of those super basic functionalities. So far we've been using navicat lite, it allows cancels, we also tried wagon and thas also allowed cancels. In fact my favourite client psql allows cancels via ctrl-c :)
Every one makes big mistakes and especially if you're working with big datasets, those mistakes can be painful and being able to cancel allows you to move on.
Imagine if i started a query like select * from 100_M_row_fact_table a join 10000_row_dimension_table b on a.b_id = b.id
Oh fuck i forgot to issue a limit.
I would look for the cancel button yes?

Fair enough. I have investigated the implementation for this feature and seems only mysql is gonna a bit more complicated.

postgres client has support already to cancel the query. reference
mysql does not have support, would require finding the current process id and killing it reference
mssql client has support already to cancel the query. reference
cassandra does not have support, and I think is not even possible to do that trick to kill the process (I am ok skipping this feature for this client)

Since it is a important feature I don't mind implement it. But right now I'm not much available to implement that. @elhh82 if you are interested on implementing that, please do.

authors: eMerzh elhh82 maxcnunes

repo: sqlectron/sqlectron-gui

license: mit

license_source: bigquery


text:
Refactoring & Pull Data from Past End of Timerange

This branch performs refactoring on the changes introduced by #60. The most important change is pulling from beyond the end of the timerange as in #62.
@jeeyoungk @achow

LGTM

authors: Nathan-Fenner jeeyoungk

repo: square/metrics


text:
Prebuild then NPM Run-Script

prebuild command must be part of the same shell out for consistent execution

Merged with #229

repo: square/misk-web


text:
🛑 ForPlayersForo is down

In 2c3f85e, ForPlayersForo (https://foro.fplayers.com/) was down:

HTTP code: 500
Response time: 526 ms

Resolved: ForPlayersForo is back up in ed25a9d after 19 minutes.

repo: sraaronrock/upptime


text:
Fix issue 269, deleting pre-existing files error

Pull Request Title
Fix issue, deleting pre-existing files error
Related Issue
#269
Description
The error arises when the user deletes the pre-existing files from Data/Resumes or Data/JobDescriptions
Type

[x] Bug Fix
[ ] Feature Enhancement
[ ] Documentation Update
[ ] Code Refactoring
[ ] Other (please specify):

Proposed Changes

Add in a check to see if the directory exists in run_first.py
Make the directory if it does not exist in scripts/<ResumeProcessor.py|JobDescriptionProcessor.py>

How to Test

Delete existing resumes from Data/Resumes
Run python run_first.py as instructed in README

Checklist

[x] The code compiles successfully without any errors or warnings
[x] The changes have been tested and verified
[x] The documentation has been updated (if applicable)
[x] The changes follow the project's coding guidelines and best practices
[x] The commit messages are descriptive and follow the project's guidelines
[x] All tests (if applicable) pass successfully
[x] This pull request has been linked to the related issue (if applicable)

Additional Information
The pre-commit hooks appear to be failing by default, without any modifications to the existing main branch code. As such, I complied with style using black but did not run the pre-commit hooks

Thanks, @han-so1omon. I'll test this and merge it over this weekend.

Bump
Side note: I was able to fix this just by making the folder if it didn't exist:
def remove_old_files(files_path):

    if not (os.path.isdir(files_path)):
        os.makedirs(files_path)

...

authors: han-so1omon srbhr webxl

repo: srbhr/Resume-Matcher


text:
get last commit from remote repo

How can i get last commit from remote repo? as i see repository commitIter does not sort commits....

You must to start reading from the commit from the branch you want, you can get the references calling:
https://godoc.org/gopkg.in/src-d/go-git.v3#Remote.Refs.
I am keeping this issue open with the goal of create an example.

Here you can find a example:
https://github.com/src-d/go-git/blob/master/examples/latest/latest.go
I just added a few methods to make the life easier to the user:
https://godoc.org/gopkg.in/src-d/go-git.v3#Repository.PullDefault
https://godoc.org/gopkg.in/src-d/go-git.v3#Remote.Head

Thanks!

authors: mcuadros vtolstov

repo: src-d/go-git


text:
Add Auto Comment Feature to Improve Collaboration

Issue Description:
As an active contributor to your open-source project, I believe that implementing an auto-comment feature would greatly enhance collaboration and communication within the project. This feature would automatically generate comments in response to specific events, such as when an issue is opened, a pull request is created, an issue is assigned, or an issue is unassigned.
Feature Details:
When an issue is opened, the auto-comment should greet the author and provide a brief acknowledgement and request for additional context.
When a pull request is opened, the auto-comment should greet the author, express gratitude, and remind them to follow the project's contributing guidelines.
When an issue is closed, the auto-comment should thank the author for their contribution and encourage further engagement.
When an issue is assigned to someone, the auto-comment should notify the assignee and encourage them to start working on it.
When an issue is unassigned from someone, the auto-comment should notify the assignee about the change and suggest reassignment if they are offline.
Benefits:
Improved communication and engagement with contributors.
Provides clear instructions and acknowledgements for various events.
Enhances collaboration by setting expectations and providing reminders.
Reduces manual effort by automating comment generation.
Acceptance Criteria:
The auto-comment feature should be implemented using the "wow-actions/auto-comment" GitHub Action.
Comments should be appropriately customized for each event, mentioning relevant parties and providing the necessary information.
The auto-comment workflow should trigger on the following events: issues opened, pull requests opened, issues closed, issues assigned, and issues unassigned.
The feature should be added to the project's existing GitHub Actions workflow file.
Additional Context:
Feel free to ask any questions or seek clarification regarding the auto-comment feature. I'm excited about contributing to your project and believe this enhancement will greatly benefit its community.

hi @Harshu467 , you can work on this

repo: srivastavaritik/Extraspace-Cloud


text:
Add support for BGPaaS

PE-CE routing in the overlay.

This can be done with Level 1 Infra intents but it's touching network_instance var at multiple places (groups, neighbors).
Might be an idea to have a Level 1.5 intent that describes a 'BGP Peer' as a single object, but as this is a node-specific intent (bgp peers have IP address info attached which is linked to the node) the benefits are less clear as with level-2 intents

repo: srl-labs/intent-based-ansible-lab


text:
Slideshow jumps to image when clicking a thumbnail

Hi,
First off, let me say how great this plugin is!
I've been trying to implement two features at once but can't get it to work. The idea is that when someone enter some page, there will be a slideshow running. This works. I also have thumbnails related to the bg images and what I want is that when someone clicks that thumbnail, the slideshow jumps to the selected image. I'm not even sure this is possible with backstretch but decided to try. Based on your examples, I came up with this:
var images = [
    "image1.jpg",
    "image2.jpg",
    "image3.jpg"
];

var index = 0;
$.backstretch(images[index], {speed: 500});

setInterval(function() {
    index = (index >= images.length - 1) ? 0 : index + 1;
    $.backstretch(images[index]);
}, 5000);

$("#img1").click(function() {
    $.backstretch("image1.jpg");
});
$("#img2").click(function() {
    $.backstretch("image2.jpg");
});
$("#img3").click(function() {
    $.backstretch("image3.jpg");
});

And then my thumbs are linked like this:

There is probably an easy and simple way to achieve this. Can you please point me in the right direction? Thanks!

Frederico

Hi Frederico,
I'd recommend doing something like this:
var images = [
    "image1.jpg",
    "image2.jpg",
    "image3.jpg"
];

var index = 0;
$.backstretch(images[index], {speed: 500});

var slideshow = setInterval(function() {
    index = (index >= images.length - 1) ? 0 : index + 1;
    $.backstretch(images[index]);
}, 5000);

$("a.clickable").click(function(e) {
    // Prevent the click from actually following the href
    e.preventDefault();

    // Stop the slideshow
    clearInterval(slideshow);

    // Backstretch
    $.backstretch( $(this).attr("href") );
});

And, then for your thumbnails, I'd make them look like this:

As you can see, there's now a "clickable" class, so that all of your links can share the same code. Also, I've added the image that you want to backstretch to as the href tag. This way, if JavaScript fails, it will still link the user to that image.
Hope you find this helpful. If you need any additional help, please consider purchasing Premium Support for Backstretch (located at the bottom of the page).
http://srobbin.com/blog/jquery-plugins/jquery-backstretch/
Cheers,
Scott

Works perfectly! Thank you Scott :) I'm probably going to need a few more bells and whistles, like resuming the slideshow after the picture was clicked, so I'll contact you for some custom development, if needed. Again, thank you :)

authors: effell srobbin

repo: srobbin/jquery-backstretch


text:
Artefacts show around the numbers

This doesn't seem to be an issue in Chrome or Firefox. It might be a rendering issue with the OBS browser and the specific font used.

Ah, that could make it harder to debug for sure.

authors: PeterJCLaw RealOrangeOne

repo: srobo/stream-countdown


text:
cpu_dummy_reads.nes is failing

https://github.com/christopherpow/nes-test-roms/raw/master/cpu_dummy_reads/cpu_dummy_reads.nes
I found more info here: https://github.com/christopherpow/nes-test-roms/tree/master/cpu_dummy_reads/source

This might help
https://www.reddit.com/r/EmuDev/comments/9zes0i/nes_what_are_dummy_reads_and_how_to_emulate_them/

That's going to be complicated to fix, not going to bother for now

authors: luctrudeau sroby

repo: sroby/f-type


text:
Update lein-script to 2.8.1 to make builds work in more recent java versions

When running leiningen commands with a newer JDK (I'm running java 10), things fail immediately:
$ ./go test
Start frontend tests
[...]
Start backend tests
Exception in thread "main" java.lang.ExceptionInInitializerError
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:374)
	at clojure.lang.RT.classForName(RT.java:2168)
	at clojure.lang.RT.classForName(RT.java:2177)
	at clojure.lang.RT.loadClassForName(RT.java:2196)
	at clojure.lang.RT.load(RT.java:443)
	at clojure.lang.RT.load(RT.java:419)
	at clojure.core$load$fn__5677.invoke(core.clj:5893)
	at clojure.core$load.invokeStatic(core.clj:5892)
	at clojure.core$load.doInvoke(core.clj:5876)
	at clojure.lang.RestFn.invoke(RestFn.java:408)
	at clojure.core__init.load(Unknown Source)
	at clojure.core__init.<clinit>(Unknown Source)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:374)
	at clojure.lang.RT.classForName(RT.java:2168)
	at clojure.lang.RT.classForName(RT.java:2177)
	at clojure.lang.RT.loadClassForName(RT.java:2196)
	at clojure.lang.RT.load(RT.java:443)
	at clojure.lang.RT.load(RT.java:419)
	at clojure.lang.RT.doInit(RT.java:461)
	at clojure.lang.RT.<clinit>(RT.java:331)
	at clojure.main.<clinit>(main.java:20)
Caused by: java.lang.ClassNotFoundException: java/sql/Timestamp
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Class.java:374)
	at clojure.lang.RT.classForName(RT.java:2168)
	at clojure.lang.RT.classForNameNonLoading(RT.java:2181)
	at clojure.instant$loading__5569__auto____6869.invoke(instant.clj:9)
	at clojure.instant__init.load(Unknown Source)
	at clojure.instant__init.<clinit>(Unknown Source)
	... 23 more

Seems like the Leiningen 2.7.* has some issues with those newer versions so this PR updates the packaged lein script to the most recent stable release.

Replaced by #108

repo: sroidl/lambda-ui


text:
Implementation of a markdown editor

Basic initial implementation of a markdown editor as requested on #57.
Todo

[x] Create a markdown editor interface.
[x] Add markdown support to pages and page revisions.
[x] Integrate the markdown editor with the image manager.
[x] Allow changing the editor type via the Admin UI (currently done via the .env file).

Please look also at #85, I think it is linked to this task.

@tpetrauskas Thanks, For the next release there will only be a really basic markdown editor but I will resolve your issue and add additional shortcuts to both editors in a future release.

authors: ssddanbrown tpetrauskas

repo: ssddanbrown/BookStack


text:
fix: ensure compatibility with new yq v4

The new version of yq introduced a breaking change when reading from a yaml file. This ensures compatibility with the latest version which we should use as v3 is marked as deprecated and will run out of support in August.

Duplicate of #80

Duplicate of #80

repo: sse-secure-systems/connaisseur


text:
Change logo color

The logo color of you tube is blue in the website, i want to change its color to make it sync with other logos.

/assign

Kindly assign me this issue @dhairyaostwal @harshsingh32 @shubhisingh184 @smty2018

@ritikaaaa177 dude I am just a contributor ...untag me :)

@smty2018 yeah sure, pardon

sure assign to u !! start working and complete it in 10 days
follow contributing.md guide for successful PR merge.
happy coding !!

Thankyou @Dharmesh177 , sure.

I am from GSSoC'23.
I would like to be assigned this task.

Can you assign this issue to me under GSSoC'23? please assign .

repo: ssitvit/Code-Canvas


text:
write to the console in the event TurboReact steps down due to errors

console.dir(e) to the rescue!
I think this will be as good as it gets given we're not the ones throwing the error.

This should be removed in the production build. It would need to be added to Webpack, something like webpack-strip.

Hmmm. Would there be a way to include it via some kind of debug mode? I'm using rails so I had to build this fork to my forked turbo_react-rails and then bundle that for me to confirm an error was being thrown on my development server.

You learn something new every day. I totally thought console was standard. shakes fist

console is standard, but you don't want to ship debugging in production code.

Hmm. I read things saying that some browsers only support it if you've opened the development console, and if you don't it throws errors.
Anywho, I still think it would be helpful if there was some way to know that TurboReact had a problem and returned the baton to Turbolinks, even in production. I ran into this because of content I'd added to my site (apparently bad content in a blog post). If I hadn't already been looking at this source all week (and even then, I only noticed because of that super helpful comment) I'm not sure how I would've ever figured out this was why transitions were failing only some of the time.
Maybe this should just be added to the readme?

authors: sickslives ssorallen

repo: ssorallen/turbo-react


text:
Claude 3?

When should we expect an update for claude 3?

@ermaxinc
I'm not actually aware of a Claude 3 update...
If it's just the model name updated, then it's just a matter of changing model_name paramater in ClaudeAPIClient.
May require more changes but I'm not sure and don't have much time to verify right now...
If you're willing to post the relevant captured request for send_message and try changing the client parameter, it would help me a lot.

Apparently, it seems they dropped that parameter, probably this API should avoid setting it by default if no model_name was provided.
I'm working on a PR for this...


text:
[FEAT] Add a comment to the line that needs editing later

When pressing "edit later" add a comment to the line that needs to be edited later. This comment can be "%%SR-edit-later%%" for example. By doing so we can easily perform a global search with "sr-" or "edit-" to find all cards that needs editing. In addition the comment can include a date so we can search by year/month/day. Example:

search cards that need editing from January 2023
sr-edit-later-2023-01

Note that global search doesn't match case by default so we can search "sr-" instead of "SR-". Also note that searching "sr-edit" doesn't include results that contain "sr" or "edit" but only results that contain "sr-edit".

This will probably be superseded by https://github.com/st3v3nmw/obsidian-spaced-repetition/pull/459

This will probably be superseded by #459

I'm not sure if that includes a feature that shows individual cards that needs editing. If not then my feature request is one possible solution.


text:
build: on a git tag simply create the :release-candidate image and do not push to pypi

Context
The image stage will have already pushed the pip-wheel to pypi. If we try to push the
same wheel twice Pypi raises a 400 error because the uploaded file has a filename conflict
with an existing wheel (the one that image just pushed).
Change list

Travis pipeline will not push the pip wheel twice on a git-tag

Checklist
Ensure your PR meets the following requirements:

~This PR is associated to one (or more) issues that are open~ (CI/CD is running on different GH server)
[x] I have signed off my commits (using git commit -s)
[x] I agree with the ST4SD Code of Conduct

Closing because of https://github.com/st4sd/st4sd-runtime-core/commit/347147a04ac0fad076e0e81f424080a9c41a4d23


text:
Hang Implementation (Sprint 5)

The purpose of this issue is to implement and test a hang mechanism for a level 2 ascent at the Kingston Qualifier
Requirements:

Use elastic force to create a release mechanism for compact storage before use
Support the entire weight of the robot for a brief moment to qualify for lvl 2 ascent points
Mount in a place that does not take over space and is easy to manage wires.

Updated the design of the hang.

The old design was designed to hang from 2 hooks from the back of the robot. The problem with this design is that it occupied too much space and needed to be removed to prioritize the claw.
New design is more compact while retaining a sufficient amount of strength to lift the robot (roughly 18 kg)
Uses a hinge to be able to rotate about the yz-plane in relation to the front of the robot
Through the use of elastic bands, the hook has a desire to snap outwards to relieve tension from the elastics. The servo arm placed in front keeps the hook in place until drivers try to hang

Mathematically analyzed the requirements in order to hang with the new design

Since the new design is on the side of the robot, the system relies on one motor on the vertical slide
This could be impossible if the motor does not have enough torque to lift the entire weight of the robot
For this reason, our team calculated the required torque to lift the robot and compared that to what we currently have
https://drive.google.com/file/d/1gMUXokMbsquDKGgQicXMj_DKpC3t_jub/view


text:
OpenApi spec: self-referencing schema contains ambiguous object description

When some ManagedObject class contains self-referencing field (i.e Person class contains "parent" field of type Person) then OpenApi3 specification json, generated by aqueduct cli, describes the field with inline description. Expected behaviour would be reference to component schema object.
Please see: https://gist.github.com/andreskask123/6bcf6b3421a0a2dd897e35ea5d1ab5de
Gist consists of 3 files:

model.dart
current_spec.json
expected_spec.json

Current result: current_spec.json:L350
Expected result is in expected_spec.json:L350.
Note that photo field get's expected descriptions in spec files.
Used cli version: 3.2.1

This is intentional - but willing to evaluate other solutions. The intent was to prevent a user of the API documentation from thinking they could pass a full Person object as parent; only the id is going to be used. Does this cause issues with code generation or other behavior?

I see, it does make sense if you put it like that. On the other hand i think of openapi spec as platform agnostic. Which means i would assume it to ignore some specific framework (Aqueduct in this case) behavioural expectations. Let me explain a bit further.
My ideal dev workflow would be that when i write api code i get auto generated sdk for free to simplify api communication and reduce the need for boilerplate code i need to write. Sdk generation would first create all the model classes that’s described in openapi components->schemas and after that it would generate the http communication related code(authorization, error handling, mocking for tests, etc). Those auto-generated model classes i would re-use in my frontend (Angular and Flutter) application codebases. Current code generation solution that i’ve tried (https://github.com/OpenAPITools/openapi-generator) didn’t quite satisfied my needs. Pluss i’d rather have this generation done by dart (just to keep things simple).
Since the sdk generation isn’t that difficult i started to toy around with the idea myself. Then i bumped into a problem that i can’t quite replicate the model, described in aqueduct api project, since i don’t have enough info on model class properties (i.e Person.parent). In specification it says it’s an object but what other properties does it contain, besides id, is unclear for me. Another example would be that when i pull an object from an api (ie with GET /persons/{id}) i see that it should return Person object with property called parent which is an object with only one property - id. Actually it’s type is Person. Plus if i compare Person.parent description with Parent.photo description then in reality they both refer to a class (Person and Photo respectively) but their openapi components->schema descriptions are totally different (Parent.photo is $ref and Photo.parent is an inline object description). So personally for me it’s unconsistent.
So i did some quick digging in aqueduct’s source and found a really quick (https://github.com/andreskask123/aqueduct/commit/c3fcc34509419434c332a7bebac6a2b8a6e3d06f) solution for openapi spec generation, which works for me but i’m not quite sure how well it fits with the whole Aqueduct’s codebase and if it breaks anything or not. So that’s the reason why i haven’t made a PR yet.
The solution treats Person.parent and Person.photo the same way and generates similar $ref descriptions both for Person.parent and for Person.photo properties.
In regards of passing the full Person object as a parent, maybe the solution would be to throw an 400 error with correct description? Not fully convinced in the solution myself but rather thinking out loud.

btw, if it makes sense then i'm willing to share the sdk generation solution as well, when it's mature enough. For me, it's essential part of my (Aqueduct, Angular, Flutter) dev bundle and thanks to static analyzer, it makes my life a lot easier.

One thing to point out is that you can override a component/response body/request body/etc. on a per model/endpoint basis without having to alter the source of the framework. For example, you can override this method in your managed object or this method in a resource controller.
In any of these methods, you can call the superclass' implementation and then edit the parts that need to be edited.

Yes, thanks for pointing it out. Actually i was aware of that solution too, but for me, it seems a little bit like a workaround since i have to implement this method every time i have self reference in some class description. Luckily it doesn't happen often so it's not that big of a problem.
But what are your thoughts on the proposed solution?

I'm having a hard time understanding. If you consider how Aqueduct handles foreign keys using nested objects, i.e.:
{
  "id": 1,
  "name": "Bob",
  "parent" : {
    "id": 2
  }
}

Many other frameworks would not use a nested object and instead flatten the structure into the following:
{
  "id": 1,
  "name": "Bob",
  "parent_id" : 2
}

When dealing with foreign key fields, most endpoints are only going to expose and accept the foreign key value. That is why this behavior is the default - the endpoint will never accept or expose any other fields of the parent. If you change this behavior so that the endpoint either joins on the parent (and therefore expose more of its fields) or it updates the values of the parent alongside the child, then you need to update your OpenAPI doc to reflect that. That's why the callbacks exist and the default decision is the most common decision.
That being said, I may be misunderstanding you.

repo: stablekernel/aqueduct


text:
URL issue with AWS Deployment

Hello, I am trying to deploy this project on AWS using API Gateway and Lambda through serverless.
I have modified the dockerfile to use the aws lambda base docker image and the app to access the Magnum handler, set up two endpoints in API Gateway, one for root and one for {proxy+} and manually setup up a pgstac using Aurora PostgreSQL.
Things work well and I can access the endpoints. The problem I am facing is that the root URL of API Gateway contains the stage and results in a URL like https://{api_Id}.execute-api.{region}.amazonaws.com/{stage}/ but the URLs generated from the STAC API are like this https://{api_Id}.execute-api.{region}.amazonaws.com/collections/ which don't work out of the box. Adding the stage by hand (e.g.  https://{api_Id}.execute-api.{region}.amazonaws.com/{stage}/collections/) works with the exception of the api.html which is normal under the circumstance.
I have no experience with Fast API and every possible solution I found on the net didn't help.
I am sure that I am missing something. If needed I can post my dockerfile and serverless.yml.
Thanks in advance for any help.

Answering my own question to leave as a reference for anyone else that faces this issue in the future. Following this issue I added this app.root_path = '/dev' after  app = api.app in pgstac/app.py. This can be improved to set the root path based on a env variable from serverless.yml.

repo: stac-utils/stac-fastapi-pgstac


text:
Python unittest on travis with hpp-fcl

When travis will run with hpp-fcl, do not forget to include bindings_frame and bindings_geometry_objects in python unittests.
Note to check that it does not raise exception when creating a robot ( relative paths of hint_directory and romeo model in concerned unittest)

Solved by #174

authors: fvalenza jcarpent

repo: stack-of-tasks/pinocchio


text:
application failed to install dependencies and start

Describe the bug
application failed to install dependencies and start
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-im9uut
Steps to reproduce
sorry but i have no idea
Expected behavior
application was to install dependencies and start
Screen Recording / Screenshot
No response
Platform
Browser name = Chrome
Full version = 130.0.0.0
Major version = 130
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 178887679,
  "usedJSHeapSize": 172771791,
  "jsHeapSizeLimit": 4294705152
}
Username = AstroSpeed
Chat ID = a6d3e87780f3

Additional context
application failed to install dependencies and start

Appreciate the feedback! We are aware of this issue and are tracking it here: #2021

authors: AstroSpeed endocytosis


text:
scroll to bottom should be already scrolled to the bottom the first time it renders

is it possible that the messages container to start already scrolled to the bottom the first time it renders (and avoid visually scrolling from top to bottom) ? can we add something like initial="none"

initial="instant"

authors: pritipsingh samdenty

repo: stackblitz/use-stick-to-bottom


text:
Regular Expression don't work ?

Hi,
I tried to edit rules.cfg for match dev.example.com or dev.test.org :
[     {         "Pattern": "^dev\.([\da-z\.-]+)\.([a-z\.]{2,6})$",         "Address": "112.223.221.26"     } ]
But does'nt works.
I've test my regex on this website : https://www.regexpal.com/, it's work.
Could u help me please ?

You have to escape \ character because it's in a JSON string.
 { "Pattern": "^dev\\.([\\da-z\\.-]+)\\.([a-z\\.]{2,6})$", "Address": "112.223.221.26" } ]

Thanks stackia, works fine !

authors: Cedruyne stackia

repo: stackia/DNSAgent


text:
Add documentation for profile selectors

Summary
Ref #4018
Change Type
Mark the type of change your PR introduces:

[ ] Bug fix (resolves an issue without affecting existing features)
[ ] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[x] Documentation (updates or additions to documentation)
[ ] Refactoring or test improvements (no bug fixes or new functionality)

Testing
Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.
Review Checklist:

[x] Reviewed my own code for quality and clarity.
[ ] Added comments to complex or tricky code sections.
[ ] Updated any affected documentation.
[ ] Included tests that validate the fix or feature.
[ ] Checked that related changes are merged.

coverage: 53.899% (-0.005%) from 53.904%
when pulling f70b3cf3794ee05d90368ec0803e608741557601 on eleftherias:4018-selectors-docs
into 0d2c3b8f564b26eacec1cbfc1532bfc4a1eaec4d on stacklok:main.

authors: coveralls eleftherias

repo: stacklok/minder


text:
Probe validation after load

After Collector has loaded the modern probe, it has to perform few simple checks that it works:

Verify the Collector process is scraped and reported.
Spin up a canary process and verify it is reported.
Verify the Collector open connections are scraped and reported.
Open a connection and verify it is reported.

The list above is a suggestion, any items that make sense could be added or removed (if too complicated). Similar idea could be e.g. that bpf maps contain expected records (configuration maps, tail called maps, rigbuf for events), but we go for it only if it could be implemented with relatively less efforts.
Part of #1011

Done in https://github.com/stackrox/collector/pull/1110

repo: stackrox/collector


text:
ROX-24916: adding prune option in the store

Description
DeleteMany is in a transaction.  So if we are doing batches and any of them fail the whole operation will fail.  This is on purpose and the desired behavior for normal delete functions.  Pruning is different.  With pruning we want to delete all that we can because the data is no longer valid.  If a pruning batch fails, we will just get it the next time pruning runs.  So it is best to do those outside of a transaction.  This PR does the generated work and generic store updates.
The vast majority of the changes are auto generated.  Here are the files that were updated.
central/processlisteningonport/store/store.go
pkg/env/postgres_default_timeout.go -- adds a pruning timeout var
pkg/search/postgres/store.go
pkg/search/postgres/store_cache.go
pkg/search/postgres/store_test.go
tools/generate-helpers/pg-table-bindings/store.go.tpl
tools/generate-helpers/pg-table-bindings/store_test.go.tpl
Note:  For the cache store, I felt in that instances it was best to use DeleteMany as I felt it was important to make sure the database and cache stayed in sync.
Note:  I do not plan to merge this until AFTER 4.5 release work begins.
User-facing documentation
(must be 2 items and both must be checked)

[ ] CHANGELOG update is not needed
[ ] Documentation is not needed

Testing

[ ] inspected CI results

Automated testing
(must be at least 1 item and all items must be checked)

[ ] modified existing tests

This is the generic code.  It is not being used at this point, that will come in subsequent PRs.
How I validated my change

change me!

/retest

/retest

/retest

/retest

repo: stackrox/stackrox


text:
ROX-26018: Introduce NodeIndexer configuration

Description
This is a follow up to https://github.com/stackrox/stackrox/pull/12555.
After a change in the Red Hat Repo to CPE mapping json the unit test started failing, as it is dynamically pulling the latest mapping information from Red Hat.
This PR introduces a configuration structure for the NodeIndexer to configure the called URLs (amongst other options).
This allows us to test against a statically served mapping JSON, removing the dependency on Red Hat infrastructure.
Additionally, this configuration is needed to be in sync with Scanner v4 settings, as it utilizes the same scanners that the NodeIndexer uses, and ideally both Indexers are configured identically.
I recommend to review the PR by looking at the three separate commits one after the other.
User-facing documentation

[x] CHANGELOG is updated OR update is not needed
[x] documentation PR is created and is linked above OR is not needed

Testing and quality

[x] the change is production ready: the change is GA or otherwise the functionality is gated by a feature flag
[ ] CI results are inspected

Automated testing

[ ] added unit tests
[ ] added e2e tests
[ ] added regression tests
[ ] added compatibility tests
[x] modified existing tests

How I validated my change
Running the unit tests locally without Network connection

/retest


text:
ROX-27323: Suport hostname in LB ingress.

Description

The ticket in $SUBJECT collected failures of the following jobs:

rosa-qa-e2e-tests
rosa-hcp-qa-e2e-tests
eks-qa-e2e-tests
eks-qa-ebpf-e2e-tests
osd-aws-qa-e2e-tests

Apparently on ROSA, EKS and OSD-AWS the load balancer reports the ingress endpoint through the .hostname key rather than .ip.
Added support for this, along with BATS unit tests.
User-facing documentation

[x] CHANGELOG is updated OR update is not needed
[x] documentation PR is created and is linked above OR is not needed

Testing and quality

[x] the change is production ready: the change is GA or otherwise the functionality is gated by a feature flag
[ ] CI results are inspected

Automated testing

[x] added unit tests
[ ] added e2e tests
[ ] added regression tests
[ ] added compatibility tests
[x] modified existing tests

How I validated my change

change me!

/test ?

/test ocp-4-12-operator-e2e-tests
/test rosa-hcp-qa-e2e-tests
/test rosa-qa-e2e-tests
/test eks-qa-e2e-tests
/test eks-qa-ebpf-e2e-tests
/test osd-aws-qa-e2e-tests

rosa-qa-e2e-tests failure seems unrelated - kube API flake when polling for central to become ready


text:
Fix variable unbound in upgrade

Description
Fix a break to the gke-upgrade test in variable unbond.
Checklist

[ ] Investigated and inspected CI test results
~[ ] Unit test and regression tests added~
~[ ] Evaluated and added CHANGELOG entry if required~
~[ ] Determined and documented upgrade steps~
~[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)~

If any of these don't apply, please comment below.
Testing Performed
Run existing tests.

Hi @c-du, LGTM but unfortunately it needs a label to force the upgrade test to actually do something (I added that). And then:
/test gke-upgrade-tests
should get a result in an hour or so.

If this passes it should be good to commit: https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/stackrox_stackrox/2957/pull-ci-stackrox-stackrox-master-gke-upgrade-tests/1565810956024418304

authors: c-du gavin-stackrox


text:
Update readme for dotnetcore

The readme needs to be updated to cover for the dot net core tools configuration.
I may have time to do this during the week as there are only a few things that have changed. Otherwise I'll look into it during the weekend.

Cool. I might beat you to it; now that there is a package on nuget.org I'm keen to get it updated.

Remember to include note about the double-building bug #24.

authors: erik-lundgren stajs


text:
Refactor Lighthouse beacon node verification

Use something similar to what we use for Teku on Windows with checking peers count and is_syncing

Completed with 7e954d4591a9caea8a965c0a954cd29acddc9753


text:
🛑 Jenkins Server is down

In 4548a0e, Jenkins Server (https://jenkins01.its-telekom.eu/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Jenkins Server is back up in 0379984.

repo: stamateas/upptime


text:
⚠ GitLab Server has degraded performance

In d34ea7c, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 12144 ms

Resolved: GitLab Server performance has improved in eb60b9e.


text:
Update ipset example

The ipset script looked to be designed so that it could be executed repeatedly without issues, due to the flush statement and -q parameters.
However, doing so would generate duplicate iptables entries and temporarily disable the blocklist while new IPs were being fetched.
The new script solves these issues and uses apt-get to avoid a CLI warning when executed from cron.
If this new example script is too complex I would instead suggest removing the ipset -q flush ipsum line and make it more clear that it's not a ready-to-deploy script.
PS: Thanks for your work and the constant updates, greatly appreciated.

@stamparm I think something went wrong or did you not want to update the readme with the latest force-push?

@neon-dev repository is force cleaned each 24h, to prevent the build up of data (because of diffs). please write here what you wanted to suggest

Yes I know, that's why I expected your latest force-push would include some changes in the readme, but it didn't.
This is the change I proposed:
https://github.com/neon-dev/ipsum/commit/66afab0bf698bc66e1a81b5013fb29c2402bee9a

can you please elaborate: However, doing so would generate duplicate iptables entries?
also, i don't see any issue in temporarily disable the blocklist while new IPs were being fetched, so will just ignore that part TBH

it is clear enough from the following that it's not a ready-to-deploy script.:

can you please elaborate
Of course:
It will only happen if you run the commands more than once, since iptables -I will insert a new rule each time.
And because of the reasons I explained in the PR description, to me the script to me implied it should be safe to execute it multiple times.

with latest revision:

Looks good, thanks 👍

authors: neon-dev stamparm

repo: stamparm/ipsum

license: Unlicense


text:
[WIP] Move ci to flatiron institute

Summary
This PR will handle Jenkins CI migration to Flatiron Institute. Currently WIP until we iron out errors, plugins and other requirements.
Tests
We will run mc-stan and flatiron Jenkins in parallel until it's stable and most of the main jobs are workings, after that we will decomission mc-stan and migrate entirely to Flatiron Institute.
Side Effects
There may be side effects where two jobs would try to do the same objective like updating a submodule, will try to avoid this as much as possible.
Release notes
Checklist

[ ] Math issue #(issue number)

[ ] Copyright holder: Toptal
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[ ] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
dependencies checks pass, (make test-math-dependencies)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[ ] the code is written in idiomatic C++ and changes are documented in the doxygen

[ ] the new changes are tested

I will close this PR and open it in https://github.com/stan-dev/math/pull/2633 because I think clang-format messed up the branch in the initial phase when I've tested alpine vs ubuntu Docker base.

repo: stan-dev/math


text:
CompileError: command '/usr/bin/gcc' failed with exit code 1

Summary:
I am running STAN code that requires pystan 2.0.
I am trying to run a loop, but after a couple iterations (3-6), I get this error: CompileError: command '/usr/bin/gcc' failed with exit code 1. I then have to go back and restart the kernal and re-run the loop. I have gcc installed with version gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Reproducible Steps:
Here is my loop:
n = 100  # Number of neurons
start = 92 #Firing rate in Hz
finish = 100 #Firing rate in Hz
total_time = 1  # Total time in seconds
bin_size = 0.01  # Bin size in seconds
num_trials = 100  # Number of trials

stored_lambda = []

for r in range(start, finish):
    spike_counts_matrix = simulate_trials_poisson_neurons(n, r, total_time, bin_size, num_trials)
    possible_codewords = (hF.extract_unique_codewords(spike_counts_matrix, n_cores=4)).T
    sampled_cw = possible_codewords[np.random.choice(possible_codewords.shape[0], size=299, replace=False), :]
    dmat = hF.hamming_distance_matrix(sampled_cw)
    fit = hF.BHMDS_fit(sampled_cw, 2, 100, dmat)
    warnings.filterwarnings('ignore')
    stored_lambda.append(fit[1]['lambda'])

    #explicitly delete large objects
    del spike_counts_matrix, possible_codewords, sampled_cw, dmat, fit
    gc.collect()

fit = hF.BHMDS_fit(sampled_cw, 2, 100, dmat)

this line calls the stan code which looks like such:
HMDS_code = """
functions {
    //hyperbolic distance between points in lorentz coordinates
    real hyp(real t1, real t2, vector E1, vector E2){
        real xi = t1*t2 - dot_product(E1, E2);
        if (xi <= 1)
            return 0.0;
        else
            return acosh(xi);
    }
}
data {
    int<lower=0> N;        // number of points
    int<lower=0> D;        // Dimension of space
    matrix[N, N] deltaij;  // matrix of data distances, only upper triangle will be operated on
}
transformed data {
    real Nterms = 0.5*N*(N-1);
}
parameters {
    vector[D] euc[N];               //x1-xd coordinates in lorentz space
    vector<lower=0.0>[N] sig;       //embedding uncertainties
    real<lower=0.001> lambda;       //scale parameter
}
transformed parameters {
    vector[N] time;      //xo coordinates in lorentz space, solve for from constraint eqs

    for (i in 1:N)
        time[i] = sqrt(1.0 + dot_self(euc[i]));
}
model {
    real dist;
    real seff;

    //normal prior on scale parameter
    target += -Nterms*0.5*square(lambda)/square(10.0);

    //inverse gamma priors on uncertainties
    for (i in 1:N)
        sig[i] ~ inv_gamma(2.0, 0.5);

    //loop over all pairs
    for(i in 1:N){
        for (j in i+1:N){
            if (deltaij[i,j] > 0.0){
                //compute embedding distance and effective uncertainties
                dist = hyp(time[i], time[j], euc[i], euc[j]);
                seff = sqrt(square(sig[i]) + square(sig[j]));

                //data distances normally distributed about embedding distance
                deltaij[i,j] ~ normal(dist/lambda, seff);
            }
        }
    }
}
"""

Current Output:
The current output. Knowing what is the current behavior is useful.
/tmp/ccl1ZBv9.s: Assembler messages:
/tmp/ccl1ZBv9.s: Fatal error: can't close /tmp/pystan_10oiqnom/tmp/pystan_10oiqnom/stanfit4anon_model_83093fdb500d02ab161db95a3a9ac536_299748516262806981.o: No space left on device
---------------------------------------------------------------------------
DistutilsExecError                        Traceback (most recent call last)
File ~/anaconda3/envs/BHMDS/lib/python3.8/site-packages/setuptools/_distutils/unixccompiler.py:185, in UnixCCompiler._compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts)
    184 try:
--> 185     self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
    186 except DistutilsExecError as msg:

File ~/anaconda3/envs/BHMDS/lib/python3.8/site-packages/setuptools/_distutils/ccompiler.py:1041, in CCompiler.spawn(self, cmd, **kwargs)
   1040 def spawn(self, cmd, **kwargs):
-> 1041     spawn(cmd, dry_run=self.dry_run, **kwargs)

File ~/anaconda3/envs/BHMDS/lib/python3.8/site-packages/setuptools/_distutils/spawn.py:70, in spawn(cmd, search_path, verbose, dry_run, env)
     69     cmd = cmd[0]
---> 70 raise DistutilsExecError(
     71     "command {!r} failed with exit code {}".format(cmd, exitcode)
     72 )

DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1

During handling of the above exception, another exception occurred:

CompileError                              Traceback (most recent call last)
Cell In[12], line 15
     13 sampled_cw = possible_codewords[np.random.choice(possible_codewords.shape[0], size=299, replace=False), :]
     14 dmat = hF.hamming_distance_matrix(sampled_cw)
---> 15 fit = hF.BHMDS_fit(sampled_cw, 2, 100, dmat)
     16 warnings.filterwarnings('ignore')
     17 stored_lambda.append(fit[1]['lambda'])

File /mnt/cube/jugorman/BHDMS/code/helperFxnzBHMDS_JCG.py:276, in BHMDS_fit(pts, dim, n_batch, dmat)
    273     dmat = 2.0 * dmat / np.max(dmat)
    275     # embed points in a given dimension
--> 276     fit = HMDS.embed(dim, dmat)
    277     return dmat, fit
    278 else:

File /mnt/cube/jugorman/BHDMS/code/metric_HMDS.py:250, in embed(D, dij, initial_values, Niter)
    227 """
    228 Returns embedding of distance matrix and optimized parameter values
    229 Inputs:
   (...)
    246    'crs' - radial coordinates of points after CM translation
    247 """
    249 #compile model
--> 250 hmds_m = stan.StanModel(model_code=HMDS_code, verbose=False)
    252 N = len(dij)
    253 dat = {'N':N, 'D':D, 'deltaij':dij}

File ~/anaconda3/envs/BHMDS/lib/python3.8/site-packages/pystan-2.22.1.0.dev0-py3.8-linux-x86_64.egg/pystan/model.py:396, in StanModel.__init__(self, file, charset, model_name, model_code, stanc_ret, include_paths, boost_lib, eigen_lib, verbose, obfuscate_model_name, extra_compile_args, allow_undefined, include_dirs, includes)
    393     orig_stderr = pystan.misc._redirect_stderr()
    395 try:
--> 396     build_extension.run()
    397 finally:
    398     if redirect_stderr:
    399         # restore stderr

File ~/anaconda3/envs/BHMDS/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py:345, in build_ext.run(self)
    342     self.compiler.set_link_objects(self.link_objects)
    344 # Now actually compile and link everything.
--> 345 self.build_extensions()

File ~/anaconda3/envs/BHMDS/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py:467, in build_ext.build_extensions(self)
    465     self._build_extensions_parallel()
    466 else:
--> 467     self._build_extensions_serial()

File ~/anaconda3/envs/BHMDS/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py:493, in build_ext._build_extensions_serial(self)
    491 for ext in self.extensions:
    492     with self._filter_build_errors(ext):
--> 493         self.build_extension(ext)

File ~/anaconda3/envs/BHMDS/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py:548, in build_ext.build_extension(self, ext)
    545 for undef in ext.undef_macros:
    546     macros.append((undef,))
--> 548 objects = self.compiler.compile(
    549     sources,
    550     output_dir=self.build_temp,
    551     macros=macros,
    552     include_dirs=ext.include_dirs,
    553     debug=self.debug,
    554     extra_postargs=extra_args,
    555     depends=ext.depends,
    556 )
    558 # XXX outdated variable, kept here in case third-part code
    559 # needs it.
    560 self._built_objects = objects[:]

File ~/anaconda3/envs/BHMDS/lib/python3.8/site-packages/setuptools/_distutils/ccompiler.py:600, in CCompiler.compile(self, sources, output_dir, macros, include_dirs, debug, extra_preargs, extra_postargs, depends)
    598     except KeyError:
    599         continue
--> 600     self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
    602 # Return *all* object filenames, not just the ones we just built.
    603 return objects

File ~/anaconda3/envs/BHMDS/lib/python3.8/site-packages/setuptools/_distutils/unixccompiler.py:187, in UnixCCompiler._compile(self, obj, src, ext, cc_args, extra_postargs, pp_opts)
    185     self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
    186 except DistutilsExecError as msg:
--> 187     raise CompileError(msg)

CompileError: command '/usr/bin/gcc' failed with exit code 1

Expected Output:
The expected output is just the array. It does still work just instead of running all the iterations it throws an error after several so I am still able to get some of the values
Current Version:
v2.34.1

PyStan 2.0 was last updated ~4 years ago and hasn't been officially supported since May of 2021. Are you able to use cmdstanpy or pystan3 ?

Unfortunately, the code I am running explicitly states you need to use pystan 2.0

GCC failing due to no space left on device sounds like the code needlessly recompiles the model on every loop iteration.
The traceback suggests it happens on line 250 of ~/BHDMS/code/metric_HMDS.py:
hmds_m = stan.StanModel(model_code=HMDS_code, verbose=False)

You could try and move that line to global scope (e.g. next to where HMDS_code is defined) so the model gets compiled only once and hmds_m can be reused.

The line with stan.StanModel(model_code=...), line 250 in file metric_HMDS.py
Alternatively change that line, i.e.
hmds_m = stan.StanModel(model_code=HMDS_code, verbose=False)

to
global hmds_m
if hmds_m is None:
    hmds_m = stan.StanModel(model_code=HMDS_code, verbose=False)

and add to the start of the same file:
hmds_m = None

Further discussion of this is probably better on the Stan Forums

authors: WardBrian juliagorman nhuurre

repo: stan-dev/stan


text:
Instruction

:smiley:

[x] nop
[ ] const
[x] bipush
[ ] sipush
[ ] iload
[ ] pop
[ ] pop2
[ ] dup
[ ] swap
[ ] add
[ ] sub
[ ] mul
[ ] div
[ ] rem
[ ] neg
[ ] ishl
[ ] iand
[ ] land
[ ] iinc
[ ] d2f
[ ] d2i
[ ] d2l
[ ] lcmp
[ ] fcmp
[ ] dcmp
[ ] if
[ ] if_icmp
[ ] if_acmp
[ ] goto
[ ] tableswitch
[ ] lookupswitch
[ ] wide
[ ] ifnull
[ ] ifnonnull
[ ] goto_w

Split to multiple issues.
close

repo: standbyme/jvm-rs


text:
HEIM

New Scenarios, Models and Metrics for HEIM: https://crfm.stanford.edu/heim/latest/

Closing in favor of the fork: https://github.com/stanford-crfm/heim.

Thanks Tony!
More rationale for fork discussed offline, besides the blockers already discussed above:

Little cross interaction between the HEIM code and the HELM code - HEIM users will rarely touch the HELM models and vice versa.
You cannot pip install HEIM from PyPI and have it work out of the box, because some of its dependences are installed from GitHub rather than PyPI. PyPI packages are only allowed to have PyPI dependencies. So a user would have to manually install the HEIM dependencies anyway.

authors: teetone yifanmai

repo: stanford-crfm/helm