pytest-django could not find a Django project

Thanks to this example repo, I started experimenting with Django. I have added a simple django project following this tutorial while using the same dependency versions as in this repo. My pants.toml looks like this:
[GLOBAL]
pants_version = "2.11.0"

backend_packages = [
  "pants.backend.python",
]

[anonymous-telemetry]
enabled = false

[python]
# We use a narrow interpreter constraint to ensure that Python PEX'es will be executable by our
# selected Docker base image, `python:3.10`.
interpreter_constraints = ["==3.9.*"]
enable_resolves = true
resolves = { python-default = "lockfiles/python-default.txt" }
lockfile_generator = "pex"

[source]
root_patterns = [
  "/django"
]

[pytest]
lockfile = "lockfiles/pytest.txt"
version = "pytest>=6.2.4,<6.3"
extra_requirements.add = [
  "pytest-django>=4,<5",
]

[python-infer]
# Infer dependencies from strings that look like module/class names, such as are often
# found in settings.py, where dependencies are enumerated as strings and not directly imported.
string_imports = true
string_imports_min_dots = 1

My project strucuture looks like this
pants.toml
pytest.ini
  /django
    manage.py
    /mysite
      settings.py
    /polls
      tests.py

My pytest.ini looks as follows:
[pytest]
DJANGO_SETTINGS_MODULE = mysite.settings
pythonpath = .

I have been experimenting with the pythonpath option, but I am not able to run the test with ./pants test django/polls/tests.py as it throws the following error:
15:17:29.99 [INFO] Initializing scheduler...
15:17:30.13 [INFO] Scheduler initialized.
15:17:31.63 [WARN] Failed to generate JUnit XML data for django/polls/tests.py:tests.
15:17:31.63 [ERROR] Completed: Run Pytest - django/polls/tests.py:tests failed (exit code 1).
Traceback (most recent call last):
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pytest_django/plugin.py", line 179, in _handle_import_error
    yield
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pytest_django/plugin.py", line 351, in pytest_load_initial_conftests
    dj_settings.DATABASES
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/django/conf/__init__.py", line 82, in __getattr__
    self._setup(name)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/django/conf/__init__.py", line 69, in _setup
    self._wrapped = Settings(settings_module)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/django/conf/__init__.py", line 170, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'mysite'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/process-execution6KqLW2/.cache/pex_root/venvs/0b6a9b078e047f3c7341f09b2e9163fb0d6a7996/83912a035d4805bd1b6618bfd9e98f78cda4d615/pex", line 182, in <module>
    sys.exit(func())
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/_pytest/config/__init__.py", line 185, in console_main
    code = main()
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/_pytest/config/__init__.py", line 143, in main
    config = _prepareconfig(args, plugins)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/_pytest/config/__init__.py", line 318, in _prepareconfig
    config = pluginmanager.hook.pytest_cmdline_parse(
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pluggy/_callers.py", line 55, in _multicall
    gen.send(outcome)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/_pytest/helpconfig.py", line 100, in pytest_cmdline_parse
    config: Config = outcome.get_result()
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pluggy/_result.py", line 60, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1003, in pytest_cmdline_parse
    self.parse(args)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1283, in parse
    self._preparse(args, addopts=addopts)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/_pytest/config/__init__.py", line 1191, in _preparse
    self.hook.pytest_load_initial_conftests(
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pluggy/_hooks.py", line 265, in __call__
    return self._hookexec(self.name, self.get_hookimpls(), kwargs, firstresult)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pluggy/_manager.py", line 80, in _hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pluggy/_callers.py", line 60, in _multicall
    return outcome.get_result()
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pluggy/_result.py", line 60, in get_result
    raise ex[1].with_traceback(ex[2])
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pluggy/_callers.py", line 39, in _multicall
    res = hook_impl.function(*args)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pytest_django/plugin.py", line 351, in pytest_load_initial_conftests
    dj_settings.DATABASES
  File "/usr/local/lib/python3.9/contextlib.py", line 137, in __exit__
    self.gen.throw(typ, value, traceback)
  File "/home/vscode/.cache/pants/named_caches/pex_root/venvs/s/64a59a10/venv/lib/python3.9/site-packages/pytest_django/plugin.py", line 183, in _handle_import_error
    raise ImportError(msg)
ImportError: No module named 'mysite'

Any idea? Is the pytest PYTHONPATH messing with the pants PYTHONPATH? I also thought, that I would not need to specify the path as it is a standard Django installation with a default location for manage.py.
You can find the source code here.

I figured out the following so far:

pythonpath is only available with pytest>=7. Installing all packages and tools with just pip and running pytest from the root directory as outlined above works with this pytest.ini:

[pytest]
DJANGO_SETTINGS_MODULE = mysite.settings
python_files = tests.py test_*.py *_tests.py
pythonpath = django

vscode ➜ /workspaces/example-docker-django $ pip freeze | grep 'Django\|pytest'
Django==3.2.13
pytest==7.1.2
pytest-django==4.5.2
vscode ➜ /workspaces/example-docker-django $ pytest
================================================================================================================================= test session starts ==================================================================================================================================
platform linux -- Python 3.9.12, pytest-7.1.2, pluggy-1.0.0
django: settings: mysite.settings (from ini)
rootdir: /workspaces/example-docker-django, configfile: pytest.ini
plugins: django-4.5.2
collected 2 items

django/polls/tests.py F.                                                                                [100%]

======================================================================================================================================= FAILURES =======================================================================================================================================
_____________________________________________________________________________________________________________________ YourTestClass.test_something_that_will_fail ______________________________________________________________________________________________________________________

self = <tests.YourTestClass testMethod=test_something_that_will_fail>

    def test_something_that_will_fail(self):
>       self.assertTrue(False)
E       AssertionError: False is not true

django/polls/tests.py:16: AssertionError
=============================================================================================================================== short test summary info ================================================================================================================================
FAILED django/polls/tests.py::YourTestClass::test_something_that_will_fail - AssertionError: False is not true
============================================================================================================================= 1 failed, 1 passed in 0.24s ==============================================================================================================================

Running ./pants test :: still throws the above error. If I set pythonpath = /workspaces/example-docker-django/django (absolute path), the following is thrown:

django.core.exceptions.ImproperlyConfigured: The app module <module 'polls' (namespace)> has multiple filesystem locations (['/tmp/process-executionvZSHuN/django/polls', '/workspaces/example-docker-django/django/polls']); you must configure this app with an AppConfig subclass with a 'path' class attribute.

If I add the path attribute to apps.py it works:
from django.apps import AppConfig
import os
from django.conf import settings

class PollsConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'polls'
    path = os.path.join(settings.BASE_DIR, 'polls')

Why? I cannot image that this is the right setup.

To follow up from Slack thread.
This is due to there are no inferrable dependency from the polls test to the mysite.settings module, so that is not included in the sandbox running the tests.
Adding this dependency explicitly in the BUILD file should resolve this issue:
diff --git a/django/polls/BUILD b/django/polls/BUILD
index 0eea8b1..72520e3 100644
--- a/django/polls/BUILD
+++ b/django/polls/BUILD
@@ -2,4 +2,5 @@ python_sources()

 python_tests(
     name="tests",
+    dependencies=["django/mysite/settings.py"],
 )

That does the trick. As discussed in the Slack thread I tried the new __defaults__ feature (https://github.com/pantsbuild/pants/pull/15836, https://github.com/pantsbuild/pants/pull/15923) to solve this. But this does not work as the mysite module cannot be found again. Source code can be found here https://github.com/ptrhck/example-django (Note the PANTS_SHA in .devcontainer.json).
Also, ./pants run django:manage -- runserver is not working as it results in:
  File "/workspaces/example-docker-django/.pants.d/tmp2njknb9j/django/manage.py", line 10, in main
    from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/workspaces/example-docker-django/.pants.d/tmp2njknb9j/django/manage.py", line 21, in <module>
    main()
  File "/workspaces/example-docker-django/.pants.d/tmp2njknb9j/django/manage.py", line 12, in main
    raise ImportError(
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

However, ./pants run django:manage -- migrate works. Any idea? As this is a very common Django project structure, this could be of help for others.

Does ./pants run django:manage -- runserver --noreload work?
Django's dev server does some funky re-exec stuff in reload mode that I think is defeated by ./pants run, at least when in sandbox mode (Pants 2.13 has an option to run directly from in-repo sources, which may work better).
And in any case, when sandboxed, Django's autoreloading won't work. But (assuming --noreload fixes things) you can set restartable=True on the django:manage pex_binary target and let Pants do the autoreloading for you. It's more precise than Django's anyway.

Thanks for the explanation, that worked!
@kaos any idea for the defaults? I was sure you had a working examples on Slack, but this config does not work as shown above.

@ptrhck what is not working?
From your example repo, I think it seems to work, from what I can tell, at least.
$ PANTS_SHA=7382ad47b42618b155d8c3a0ea63b3827bdca574 ./pants dependencies django/polls/tests.py
23:28:33.99 [INFO] Initializing scheduler...
23:28:34.22 [INFO] Scheduler initialized.
//:root#django
django/mysite/settings.py

When I comment out the default
diff --git a/django/BUILD b/django/BUILD
index e7b4224..f64bed4 100644
--- a/django/BUILD
+++ b/django/BUILD
@@ -6,5 +6,5 @@ pex_binary(
 )

 __defaults__({
-      (python_tests): dict(dependencies=["django/mysite/settings.py"])
-    })
\ No newline at end of file
+#      (python_tests): dict(dependencies=["django/mysite/settings.py"])
+})

I get just:
$ PANTS_SHA=7382ad47b42618b155d8c3a0ea63b3827bdca574 ./pants dependencies django/polls/tests.py
//:root#django

Or is it another issue?


ln_normalope: fix to follow the conditions to send closing msgs

ln_normalope: fix to follow the conditions to send closing messages
shutdown
after sending commitmemt_signed (no pending updates)
closing_signed
no HTLCs and no updates

fix #1303


IntelliSense strings are localized

Yesterday my VS Code updated Omnisharp, since then my intellisense and debugging messages are being outputted in another language from English, there doesn't seem to be any way to configure or change that behaviour.

Can you give us some examples of intellisense strings?
I know the debugger hasn't yet done the work to ship any localized strings. So if you are getting localized debugger strings they must be from VS Code itself. I am not sure if there are any parts of the language service that have localization yet.

You were right, I could fix the intellisense, however I still get this:
With 1.32.3-beta.9:

Meanwhile with 1.32.4 or 1.32.5:

@rchande @akshita31 any ideas?

@Spikent We need more info--what OS are you on? If you're on Windows, what is your language is your system set to use? This looks like a Unity project--what language is Unity configured to use?

@rchande I'm running Windows 10 Pro, and it's locale is set to Spanish, which I'm guessing it's what Omnisharp is picking up on recent updates to set it's locale to...
The Project is a Godot project, it's running on c#.

I have the same problem on polish version of the Windows 10 system.

This is essentially a feature request for us to set the locale of OmniSharp based on the VS Code language configuration.

@Spikent Thank you for the feature request. What's happening here is that one of OmniSharp's dependencies recently implemented localization for error messages, meaning that they will now be printed in your system language instead of English. To work around this (and get English error messages), you can delete the OmniSharp localization files:
Open your "OmniSharp" log and find the path to OmniSharp from the beginning of the log, eg:
OmniSharp server started.
    Path: C:\Users\rchande\.vscode-insiders\extensions\ms-vscode.csharp-1.16.1\.omnisharp\1.32.5\OmniSharp.exe
    PID: 144684

Navigate to the directory eg C:\Users\rchande\.vscode-insiders\extensions\ms-vscode.csharp-1.16.1\.omnisharp\1.32.5, and enter the subfolder that corresponds to your system language. In @Spikent's case, the folder would be "es" because the system language is Spanish. Remove all the DLLs whose name starts with Microsoft.CodeAnalysis.
This should result in English error messages.

@chinaq you can follow the work around that @rchande gave above for now.

I have the same problem on mac os Mojave (10.14.3) with dotnet 2.1.504 installed.
The omnisharp server prints all messages in spanish, although I have english as locale for the terminal and vscode. Unfortunately the workaround is not working, as on mac the Microsoft.CodeAnalysis dlls are not located on the omnisharp installation folder

I have the same problem Terminal and IntelliSense https://i.imgur.com/GoxqoRx.png

Almost one year later, this bug (yes, it's a bug as a) OmniSharp ignores VSC's language setting and b) has no option for setting its own language either) still is unresolved.
If one might outline to some extend how to fix that (besides the mentioned awesome workaround by @rchande above), I'd love to implement it.

@Eagle3386 OmniSharp is just using the users's language setting. To alter this you would need to change the C# extension (https://github.com/OmniSharp/omnisharp-vscode) to read the VS Code setting and pass it to the server (https://github.com/OmniSharp/omnisharp-roslyn) which would also have to be changed to respect that configuration.

Alright, I'll try and see if I can handle that. Wish me luck, cause up to now, I've only fixed MS docs.. 🤣

While I've managed to add an option and extend unit tests without much work, I seem unable to find docs about the needed variable name for dotnet (OmniSharpServer -> server.ts, line 304, seems to enable direct "pass-through" for dotnet's settings).
Any help would be greatly appreciated! 👍

Update: Found it while adding "terminal.integrated.env.windows": { "DOTNET_CLI_UI_LANGUAGE": "en" }, (or en-us) to my user/workspace settings.json file to fix terminal output, too.
Maybe setting environment variable prior to to launching omnisharp-roslyn / dotnet via child thread already solves the issue.. 🤔

Update: Found it while adding "terminal.integrated.env.windows": { "DOTNET_CLI_UI_LANGUAGE": "en" }, (or en-us) to my user/workspace settings.json file to fix terminal output, too.
Maybe setting environment variable prior to to launching omnisharp-roslyn / dotnet via child thread already solves the issue.. 🤔

I had found this on the above comment. It doesn't work.

I had found this on the above comment. It doesn't work. You can try by setting it in Windows' environment variable.
For the (external) terminal panel, it definitely works.

Regarding OS-roslyn, it clearly can't work up to now as there's no code for reading the environment variable and then passing it into the child thread's environment and/or launch arguments.. 😉

Any news on this? Is there a better solution than the workaround yet available?

Wow.. It's middle of 2020 now.
I can't believe this is not solved yet. 😨

Update: Found it while adding "terminal.integrated.env.windows": { "DOTNET_CLI_UI_LANGUAGE": "en" }, (or en-us) to my user/workspace settings.json file to fix terminal output, too.
Maybe setting environment variable prior to to launching omnisharp-roslyn / dotnet via child thread already solves the issue.. 🤔

Yes, the easiest way 🙌

Where is this settings.json file ?  Could you write full-path?

Where is this settings.json file ?  Could you write full-path?

Yeah, I have found that where is "%APPDATA%\Code\User" settings.json file is here.

Yeah, I have found that where is "%APPDATA%\Code\User" settings.json file is here.

This solution work for me  Source:https://superuser.com/a/1512105/1346669
Close VS Code
Enter the system language found in this path inside the folder.I use Turkish language on windows
C:\Users\PC.vscode\extensions\ms-dotnettools.csharp-1.23.11.omnisharp\1.37.8\tr

Remove all dll files starting with 'Microsoft.CodeAnalysis'
(Please notice that some folder names in the path might vary due to different versions)
Open VS Code its work

This solution work for me Source:https://superuser.com/a/1512105/1346669
Close VS Code
Enter the system language found in this path inside the folder.I use Turkish language on windows
C:\Users\PC.vscode\extensions\ms-dotnettools.csharp-1.23.11.omnisharp\1.37.8\tr

Remove all dll files starting with 'Microsoft.CodeAnalysis'
(Please notice that some folder names in the path might vary due to different versions)
Open VS Code its work

thank you, it worked for me. I've been calling a lot.

We are mid 2021 and this was not solve yet...
Must be a very difcult issue to solve. OMG.

Well well... Who knows after hours of searching, it' s fixed by dll deletion.

Well well... Who knows after hours of searching, it' s fixed by dll deletion.

By no means shall this method be called "fix".

Today ...

Seems to be related to it. I clicked on "Don't show again." (on the gear icon).
Btw. a complete other topic but slighly related to it: The latest Chromium DevTools also now annoys with language packs. Have you already seen it? Argh, let me develop in english please. 😢 😆

In addition to @Spikent's workaround (https://github.com/OmniSharp/omnisharp-vscode/issues/2513#issuecomment-423270085):
If you also want the debugger output to appear in english, remove all DLL files from the following directory:
C:\Users\mroessler\.vscode\extensions\ms-dotnettools.csharp-1.23.16\.debugger\{LCID}
You can find the LCID for your system language here: https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a

Try to change the display language of vscode to en, which worked on my mac. But the effects will be global in the editor.

 Try to change the display language of vscode to en, which worked on my mac. But the effects will be global in the editor.

Would be great if somebody would advise how to solve this on MacOS.

doesn't work.

For mac this worked for me:

Uninstall the dotnet extensions (c#)
Change the region to US. Restart the machine.
Install the extension.
You can revert the region to your previous country.

Hi,
Issue is still here, the workaround to delete the localized DLL worked for me.
I think locale should be configurable and/or mapped to the vs code locale.

This still being unsolved officially is baffling and shows just how much Microsoft cares about C# development in VS Code.

Issue is still there as of 02/2023. After each update I have to delete the .dlls. Please give us a possibility to set the language for omnisharp-vscode.

+1 - what is also weird, it worked on my Mac until like... few days ago. Today I want to write some code and out of the blue all messages are in Polish. Terrible UX, amount of resources available in languages other than English are so minuscule it only makes everything harder.

Hello,
I have linux Os and look path not found dll??

I'm still here in 20 24

I'm still here at 20 24

O# does not set the CurrentUICulture so it defaults to your system locale. If this is still a problem, please open an issue at https://github.com/OmniSharp/omnisharp-roslyn/issues


Images/Data/Output folders

Hi Berteh,
I thought to have found a sollution but unfortunately...
I have images in several folders on drive A.
The Scribus template is on drive B in folder 1.
The csv data is in on Drive B in folder 2.
The outputs should go to Drive B in folder 3.
(folders 1,2 & 3 are different folders in the same main folder).
I tried virtually every possibility to get this working.
The data file is found, text data is working fine and output goes in the intended folder.
Only issue is I dont get Generator/Scribus to pull the images.
I added the full path in the csv. Even with testing to put all images in a folder 4 on drive B, it wont work.
What am I doing wrong?

hello @jvr14115
AFAIK Scribus handles images with relative addresses, not absolute, so you'd have to be sure the depths of your images stored in A/ is the same from B/1 and B/3.
I'd try to check out a few things in your circumstance:

When you include one of your images in the SLA template document does it show? If not it may be a user access rights or file format issue.

Try to copy-paste one of the generated SLA files in your template folder (B/1), and open it.
-> If this displays the images correctly you can fix the problem by adding linked directories that make the paths depth match.
-> If not it could mean the combination of output directory (B/3) + file path in CSV data does not point to an existing image. It may be a problem of the different drive, as no such thing exists in Linux I may have not tested this. I usually create a symbolic link (how-to in windows, in linux or mac run the ln -s <target> <name> command) that points  to my resources on a another drive to access them "localy" from within my project... and guess this should work for you: I would
a) create in B/1/ a symbolic link called "img" targeting A/path-to-images-root/
b) create in B/3/ a symbolic link called "img" targeting A/path-to-images-root/
c) in my template include the image located in B/1/img/%VAR_pic1%, and  B/1/img/%VAR_pic2%
d) set the variables pic1 and pic2  in your csv to any subdirectory + file name EXCLUDING A/path-to-images-root/

for instance if you have images in
A:\user\emil\library1\sunset.jpg
A:\user\emil\library1\moonset.jpg
A:\shared\jetski.jpg
A:\shared\diving.jpg
your "img" symbolic links would target "A:", as there is no other subdirectory all your images have in common, and your csv data would look like:
pic1|
For my info: what is your OS: Win/Mac/Linux?

Hi Berteh
Thanks for your quick response and good advice.
I am not really sure why it works, but it does:
Apperently the 1st image you put in a document "fixes" a path.
So the sollution I no use is to place a first image from c:. Then replace that image by a %VAR_something%.
In the CSV, I put the full path of each image excluding "C:"
Seems to work perfectly.
By the way: it does not matter if you put / or \ as directory sign. Both will work.
In my case all images are on C:\ so I do not need to make any virtual lyncs or shortcuts.
Thanks again.

glad it worked for you.
Could you please have a quick look at the related section in the document and tell me how I could improve that bit to make it more clear for the other users if they run into the same kind of troubles?
It's located at https://github.com/berteh/ScribusGenerator/#dynamic-images
thanks.
Berteh.
PS: if you have a template or generated document you're particularly proud of don't hesitate to share it with other users, for their inspiration, in https://github.com/berteh/ScribusGenerator/wiki#gallery-of-examples--some-templates

Hello @jvr14115
SG now supports the use of subdirectories in the output file name. Combine it anyway you like with variables from your data set. Hope this works for you... more info at https://github.com/berteh/ScribusGenerator#dynamic-output-file-location
B.

nice idea. will try to integrate in the plugin menu. thanks for the suggestion.


Lunar API Starter Kit

This will kickstart developers Lunar projects, integrating all non-authenticated resources and generating types for front-end development. (Note: We plan to develop a full API kit under sponsorware to fully integrate Lunar for direct use with your project.)

The initial release includes the following resources:
Catalogue:

Collections Resource

CollectionGroup (Filter)
Category (Presenter)

Collection Groups Resource

CategoryTree (Presenter)

Products Resource

Brand (Filter)
Collection (Filter)
Status (Filter)
Item (Presenter)
Detail (Presenter)

Brands Resource

Brand (Presenter)

Additional resources will be considered for Carts in future releases.
This will require updating migrations to store the existing cart session for guests.

1st stage for this starter kit completed for alpha release


$("#theform").valid()

This form gets submitted via jquery.form (ajaxsubmit) and is using jquery.validation. In IE 7, 8 , 9 the required fields do not fail validation as empty with the placeholder there when $("#theform").valid(); is called. I even added a method to the validation to check for notEqualTo the placeholder text and it still doesn't catch it. I am not sure what to do with this.

@Donzella Haven't had time to look at this plugin lately, but will hopefully soon. For now you can try my other plugin https://github.com/amerikan/placeholder-polyfill which aims to solve same problem as this plugin, but taking a different approach.

It's not going to work since this plugin is not compatible with jquery validation. See  #66


python3Packages.async-dns: 1.1.10 -> 2.0.0

Motivation for this change
Update to latest upstream release 2.0.0
Change log: https://github.com/gera2ld/async_dns/releases/tag/v2.0.0
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 131680 run on x86_64-linux 1

2 packages failed to build:

python38Packages.async-dns
python39Packages.async-dns

@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing pipBuildPhase
Creating a wheel...
WARNING: The directory '/homeless-shelter/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions
Ignoring indexes: https://pypi.org/simple
Created temporary directory: /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-ephem-wheel-cache-st0zdco4
Created temporary directory: /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-req-tracker-ctemi10u
Initialized build tracking at /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-req-tracker-ctemi10u
Created build tracker: /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-req-tracker-ctemi10u
Entered build tracker: /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-req-tracker-ctemi10u
Created temporary directory: /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-wheel-5uwdjts3
Processing /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/source
  Created temporary directory: /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-req-build-pvbjfob3
  Added file:///tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/source to build tracker '/tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-req-tracker-ctemi10u'
    Created temporary directory: /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-modern-metadata-brve0037
    Running command /nix/store/p65xvir2nnvc2h1m52x82pkd9k7h9pzz-python3-3.8.10/bin/python3.8 /nix/store/rd3hpfj14zzl4yayfnzqdw5cjc817j7k-python3.8-pip-21.0.1/lib/python3.8/site-pack
    Preparing wheel metadata ... done
  Source in /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-req-build-pvbjfob3 has version 2.0.0, which satisfies requirement async-dns==2.0.0 from file:///tmp/nix-build-python3.
  Removed async-dns==2.0.0 from file:///tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/source from build tracker '/tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-req-tracker-ctemi
Created temporary directory: /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-unpack-cl_gayg4
Building wheels for collected packages: async-dns
  Created temporary directory: /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-wheel-e69fxuyx
  Destination directory: /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-wheel-e69fxuyx
  Running command /nix/store/p65xvir2nnvc2h1m52x82pkd9k7h9pzz-python3-3.8.10/bin/python3.8 /nix/store/rd3hpfj14zzl4yayfnzqdw5cjc817j7k-python3.8-pip-21.0.1/lib/python3.8/site-packag
  Building wheel for async-dns (PEP 517) ... done
  Created wheel for async-dns: filename=async_dns-2.0.0-py3-none-any.whl size=34289 sha256=a257e47cc64022f95d570a1cd7f5fe90c2d8546b24fbe1049c3980a9a5832b96
  Stored in directory: /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-ephem-wheel-cache-st0zdco4/wheels/cd/34/c8/222e46c4a93c376f172cf493dc62e07467ab4197160bcca6fd
Successfully built async-dns
Removed build tracker: '/tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/pip-req-tracker-ctemi10u'
Finished creating a wheel...
Finished executing pipBuildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pipInstallPhase
/tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/source/dist /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/source
Processing ./async_dns-2.0.0-py3-none-any.whl
Installing collected packages: async-dns
Successfully installed async-dns-2.0.0
/tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/source
Finished executing pipInstallPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/1s3ziccc9mnqpbdp77qqlixydw8rw7xv-python3.8-async-dns-2.0.0
strip is /nix/store/fh9f7pr9kxfwvs8lm4479lvhrkzmmkdw-binutils-2.35.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/1s3ziccc9mnqpbdp77qqlixydw8rw7xv-python3.8-async-dns-2.0.0/lib
patching script interpreter paths in /nix/store/1s3ziccc9mnqpbdp77qqlixydw8rw7xv-python3.8-async-dns-2.0.0
checking for references to /tmp/nix-build-python3.8-async-dns-2.0.0.drv-0/ in /nix/store/1s3ziccc9mnqpbdp77qqlixydw8rw7xv-python3.8-async-dns-2.0.0...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
running install tests
rm: cannot remove 'tests/test_resolver.py': No such file or directory

Result of nixpkgs-review pr 131680 run on x86_64-linux 1

2 packages built:

python38Packages.async-dns
python39Packages.async-dns

Build failure should be fixed now. Thanks @siraben.


Build reports success when an AfterTargets errors

Steps to reproduce
1.proj
<Project DefaultTargets="Build">
    <Target Name="Build">
        <MSBuild Projects="2.proj" Targets="Build"/>
    </Target>
</Project>

2.proj
<Project DefaultTargets="Build">
    <Target Name="Build" />

    <Target Name="IndirectBuild" AfterTargets="Build">
        <Error Text="Induce failure" />
    </Target>
</Project>

build with
set MSBUILDNOINPROCNODE=1

msbuild.exe 1.proj /clp:ShowCommandLine /m:1 /verbosity:n /nr:false /bl /fl /flp:v=diagnostic

Expected  behavior
Build fails because of the <Error> task
Actual behavior
Build succeeds:
Build started 5/24/2018 5:35:56 PM.
Project "e:\delete\repro\1.proj" on node 2 (default targets).
Project "e:\delete\repro\1.proj" (1) is building "e:\delete\repro\2.proj" (2) on node 2 (Build target(s)).
e:\delete\repro\2.proj(5,9): error : Induce failure
Done Building Project "e:\delete\repro\2.proj" (Build target(s)) -- FAILED.

Done Building Project "e:\delete\repro\1.proj" (default targets).

Deferred Messages

  Detailed Build Summary
  ======================

  ============================== Build Hierarchy (IDs represent configurations) =====================================================
  Id                  : Exclusive Time   Total Time   Path (Targets)
  -----------------------------------------------------------------------------------------------------------------------------------
  0                   : 0.101s           0.120s       e:\delete\repro\1.proj ()
  . 1                 : 0.018s           0.018s       e:\delete\repro\2.proj (Build)

  ============================== Node Utilization (IDs represent configurations) ====================================================
  Timestamp:            2        Duration   Cumulative
  -----------------------------------------------------------------------------------------------------------------------------------
<PHONE_NUMBER>66714538:   0        0.096s     0.096s #
<PHONE_NUMBER>67674882:   1        0.018s     0.114s
<PHONE_NUMBER>67855025:   0        0.007s     0.121s
  -----------------------------------------------------------------------------------------------------------------------------------
  Utilization:          100.0    Average Utilization: 100.0

Build succeeded.

"e:\delete\repro\1.proj" (default target) (1) ->
"e:\delete\repro\2.proj" (Build target) (2) ->
(IndirectBuild target) ->
  e:\delete\repro\2.proj(5,9): error : Induce failure

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.22

Changing 2.proj to the following makes it work.
<Project DefaultTargets="Build">
    <Target Name="Build" DependsOnTargets="IndirectBuild"/>

    <Target Name="IndirectBuild">
        <Error Text="Induce failure" />
    </Target>
</Project>

Project "e:\delete\repro\1.proj" on node 2 (default targets).
Project "e:\delete\repro\1.proj" (1) is building "e:\delete\repro\2.proj" (2) on node 2 (Build target(s)).
e:\delete\repro\2.proj(5,9): error : Induce failure
Done Building Project "e:\delete\repro\2.proj" (Build target(s)) -- FAILED.

Done Building Project "e:\delete\repro\1.proj" (default targets) -- FAILED.

Deferred Messages

  Detailed Build Summary
  ======================

  ============================== Build Hierarchy (IDs represent configurations) =====================================================
  Id                  : Exclusive Time   Total Time   Path (Targets)
  -----------------------------------------------------------------------------------------------------------------------------------
  0                   : 0.099s           0.118s       e:\delete\repro\1.proj ()
  . 1                 : 0.018s           0.018s       e:\delete\repro\2.proj (Build)

  ============================== Node Utilization (IDs represent configurations) ====================================================
  Timestamp:            2        Duration   Cumulative
  -----------------------------------------------------------------------------------------------------------------------------------
<PHONE_NUMBER>79846253:   0        0.094s     0.094s #
<PHONE_NUMBER>80786685:   1        0.018s     0.112s
<PHONE_NUMBER>80966525:   0        0.007s     0.119s
  -----------------------------------------------------------------------------------------------------------------------------------
  Utilization:          100.0    Average Utilization: 100.0

Build FAILED.

"e:\delete\repro\1.proj" (default target) (1) ->
"e:\delete\repro\2.proj" (Build target) (2) ->
(IndirectBuild target) ->
  e:\delete\repro\2.proj(5,9): error : Induce failure

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.23

I think the reason that this is happening is that from a certain point of view the MSBuild request is succeeding. It's legal to "partially" build another project by specifying an entry-point target, and the result of that request should be success if all of the targets that must run before that target and that target itself succeed.
Consider a small project:
Deploy DependsOn
Build DependsOn
Initialize

If you call the target Build, Deploy won't run, so its success or failure is irrelevant to the result of Build.
In this situation,
Deploy2 AfterTargets
Build2 DependsOn
Initialize2

There's no way to run Build2 without also running Deploy2. But if the entry-point is Build2, what should the result be if Initialize2 and Build2 pass but Deploy2 fails? It's arguable that the request succeeded because Build2 succeeded. But I agree with single-proc MSBuild that that's not the intuitive, reasonable answer.
Note that this has been this way since MSBuild 4.5:
S:\repro\Microsoft\msbuild\issues\3345>C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe 1.proj
Microsoft (R) Build Engine version 4.7.3056.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 5/25/2018 10:53:54 AM.
Project "S:\repro\Microsoft\msbuild\issues\3345\1.proj" on node 2 (default targets).
Project "S:\repro\Microsoft\msbuild\issues\3345\1.proj" (1) is building "S:\repro\Microsoft\msbuild\issues\3345\2.proj" (2) on node 2 (Build target(s)).
S:\repro\Microsoft\msbuild\issues\3345\2.proj(5,9): error : Induce failure
Done Building Project "S:\repro\Microsoft\msbuild\issues\3345\2.proj" (Build target(s)) -- FAILED.

Done Building Project "S:\repro\Microsoft\msbuild\issues\3345\1.proj" (default targets).

Build succeeded.

"S:\repro\Microsoft\msbuild\issues\3345\1.proj" (default target) (1) ->
"S:\repro\Microsoft\msbuild\issues\3345\2.proj" (Build target) (2) ->
(IndirectBuild target) ->
  S:\repro\Microsoft\msbuild\issues\3345\2.proj(5,9): error : Induce failure

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.38

We hit this (not failing, but an error occurred in AfterTargets) behavior too today.
msbuild binlog analysis did not show initial error, but then if you look with $error search you can find it and it is not obvious why the build was actually not failing (ContinueOnError="false", etc was all set correctly).
Glad I found this bug to explain what was happening, not sure if this sufficiently clear for everyone though.

Is there a plan to fix this? It's let a couple bugs through our CI system recently.

Changing 2.proj to the following makes it work.
<Project DefaultTargets="Build">
    <Target Name="Build" DependsOnTargets="IndirectBuild"/>

    <Target Name="IndirectBuild">
        <Error Text="Induce failure" />
    </Target>
</Project>

@rainersigwald
Maybe I'm misunderstanding this, but wouldn't this change the target order? In the original, you're running:
Build -> IndirectBuild
In the fixed version, you run IndirectBuild before Build.

@mmitche that's true, but usually not interesting; the Build target is generally empty and exists only to aggregate/order other targets.


sensor.trash_first_next_item showing wrong input

Hi,
I think trash_first_next_item should never be the same as trash_today.
Like trash_first_next_in_days never showing 0 days.
In example below sensor.trash_first_next_item should be gft

Goed punt! Some people like to have it as you stated, others don't. So I guess the best thing for me todo is to check wether it's possible to convert this to a configuration item / option. I`ll check it Tomorrow.

Thank you so much! It's working perfect now 👍


etcdutil/member: add SecureClient option

why do we want to differentiate self hosted vs non self hosted etcd clusters?

@xiang90
Self-hosted uses pod IP. Non self-hosted uses service name.

@hongchaodeng i understand that part. but doing thing like "https://POD_IP" wont kill us now. we do not support TLS on self hosted cluster anyway. we can diverge the code path when we really need to, right?

I'm not catching it. What's the question again?

@xiang90
I actually walk through and self hosted path is not right with this change.
I'm lean to not solving self-hosted path now and fix it later.

yea. that is why i was suggesting that we just use the same code path for self hosted and non self hosted for now. minimum changes to make non self hosted to work for now is good enough. we will fix self hosted one later on.

lgtm


auto publish to npm

Pull Request Test Coverage Report for Build 150267564

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 83.898%

Totals

Change from base Build 145925336:
0.0%

Covered Lines:
74

Relevant Lines:
82

💛  - Coveralls


Switch to the new extensions api v2

We should consider switching to the new v2 extensions api.

Closing in favor of #369 duplicate, which had a bit more engagement


Valueerror on unspecified file (here: POSCAR)

I have the following raised value error: raise ValueError(f"Format not specified and could not infer from {filename=}")
ValueError: Format not specified and could not infer from filename='poscar'
when running the sqsgenerator with: "sqsgen run iteration -e -f poscar -c xz -w pymatgen" like in the doc or a modified one for my purpose (sqsgen run iteration -e -w pymatgen -f poscar -di objective -di parameters $workdir/$SYSTEM.yaml)
Although pymatgen and ase are updated to latest versions. Is there any approach, how to solve this issue?
Thanks in advance

Hi @ndhamrai!
Can you provide me with a slightly longer and more detailed stack trace? And maybe share the input file with me so that I can reproduce the error?

Hi @dgehringer,
sure. I provide the stdout file containing the stack trace with the error + my input file.
sqsgen.zip

Thanks a lot


Not available on Dell U3415W

Before opening the issue, have you...?

[X] Searched for existing issues
[X] Read through the Monitor-Troubleshooting Wiki
[X] Updated MonitorControl to the latest version (if applicable)

Describe the issue
Not available on Dell U3415W
Expected behavior
available on Dell U3415W
Anything else?
No response
Environment Information (please complete the following information)
- macOS version: 12.6 macOS Monterey
- Mac model: MacBook Pro (16-inch, 2019)
- MonitorControl version: 4.1.0
- Monitor(s): Dell U3415W
- Monitor Cable(s)/Connection(s): Mac book Usb 3.0 -> Displayport 2.1 -> Dell U3415W
- Apple Silicon/M1 (yes or no): no

if you are using a standard USB 3.0 to DisplayPort adapter then it is possible a DisplayLink adapter which does not support DDC communications on the Mac. Your only option is software dimming. Alternatively you can try BetterDisplay and force Color table manipulation in Settings/Displays as newer DisplayLink drivers do support this more advanced form of dimming.


Fix download link

The filename link should just be a shortcut to download the csv, right?
If so, this should do it.

I believe it was supposed to be a link to view the history of that import attempt.

Ah ok...presumably what craft/plugins/import/templates/history/_log.twig is for....

It should be {{ url('import/history', { id: item.id }) }}

Right...I'm not seeing where you're including _log.twig at all though. That link doesn't do anything for me. Am I missing something?

Sorry I see it now...in your routes

So I think we either need to change it to url('import/history/'~item.id) or change the route.

Ok - latest PR has the history view working again.


typo & sample

mentioning header instead of headers has caused me & a colleague of mine quite some headache... here is a patch for the documentation, plus a sample

Sorry to hear that. Thanks for sharing the correction.


porch: packagevariant and packagevariantset should expose errors in the status

Currently, the PackageVariant and PackageVariantSet do not expose errors in the status. Adding errors to the PackageVariant and PackageVariantSet status will make it obvious to the user that the resources are in an error state rather than the user needing to check the logs or uncertain if the resources have yet to been reconciled.
For example, when creating a PackageVariantSet using the ghost package from the kpt-samples repository, the target PackageRevision is not being created due to a rendering error. This can be seen in the controller logs (error Internal error occurred: fn.render: pkg .:\n\tpkg.render: pkg ghost-app:\n\tpipeline.run: error: function failure) however it is not obvious to the user when looking at the resources using kubectl.
Example PackageVariantSet yaml:
apiVersion: config.porch.kpt.dev/v1alpha1
kind: PackageVariantSet
metadata:
  name: my-ghost-pvs
  namespace: default
spec:
  targets:
  - package:
      name: ghost-pvs
      repo: application-deployments-2
  upstream:
    package:
      name: ghost
      repo: kpt-samples
    revision: v3

Inspecting the PackageVariantSet and PackageVariant using kubectl does not show the error:
apiVersion: config.porch.kpt.dev/v1alpha1
kind: PackageVariantSet
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"config.porch.kpt.dev/v1alpha1","kind":"PackageVariantSet","metadata":{"annotations":{},"name":"my-ghost-pvs","namespace":"default"},"spec":{"targets":[{"package":{"name":"ghost-pvs","repo":"application-deployments-2"}}],"upstream":{"package":{"name":"ghost","repo":"kpt-samples"},"revision":"v3"}}}
  creationTimestamp: "2023-03-21T20:26:21Z"
  generation: 1
  name: my-ghost-pvs
  namespace: default
  resourceVersion: "278630320"
  uid: 0460866f-9358-4a6a-85eb-143cbd4a0b7b
spec:
  targets:
  - package:
      name: ghost-pvs
      repo: application-deployments-2
  upstream:
    package:
      name: ghost
      repo: kpt-samples
    revision: v3
status:
  conditions:
  - lastTransitionTime: "2023-03-21T20:26:21Z"
    message: all validation checks passed
    reason: Valid
    status: "True"
    type: Valid

apiVersion: config.porch.kpt.dev/v1alpha1
kind: PackageVariant
metadata:
  creationTimestamp: "2023-03-21T20:26:21Z"
  finalizers:
  - config.porch.kpt.dev/packagevariants
  generation: 1
  labels:
    config.porch.kpt.dev/packagevariantset: 0460866f-9358-4a6a-85eb-143cbd4a0b7b
  name: my-ghost-pvs-ba5160554e945b99a227239b1547e4f1a7fec844
  namespace: default
  ownerReferences:
  - apiVersion: config.porch.kpt.dev/v1alpha1
    controller: true
    kind: PackageVariantSet
    name: my-ghost-pvs
    uid: 0460866f-9358-4a6a-85eb-143cbd4a0b7b
  resourceVersion: "278630319"
  uid: 3d51dea6-c73d-4a37-b10f-e86bc617d2e6
spec:
  adoptionPolicy: adoptNone
  deletionPolicy: delete
  downstream:
    package: ghost-pvs
    repo: application-deployments-2
  upstream:
    package: ghost
    repo: kpt-samples
    revision: v3

cc @johnbelamaric

Thanks for filing the issue! This is tangentially related to https://github.com/GoogleContainerTools/kpt/issues/3872

It should probably fire off K8s events as well.

Currently, the PackageVariant and PackageVariantSet do not expose errors in the status. Adding errors to the PackageVariant and PackageVariantSet status will make it obvious to the user that the resources are in an error state rather than the user needing to check the logs or uncertain if the resources have yet to been reconciled.
For example, when creating a PackageVariantSet using the ghost package from the kpt-samples repository, the target PackageRevision is not being created due to a rendering error. This can be seen in the controller logs (error Internal error occurred: fn.render: pkg .:\n\tpkg.render: pkg ghost-app:\n\tpipeline.run: error: function failure) however it is not obvious to the user when looking at the resources using kubectl.
Example PackageVariantSet yaml:
apiVersion: config.porch.kpt.dev/v1alpha1
kind: PackageVariantSet
metadata:
  name: my-ghost-pvs
  namespace: default
spec:
  targets:
  - package:
      name: ghost-pvs
      repo: application-deployments-2
  upstream:
    package:
      name: ghost
      repo: kpt-samples
    revision: v3

Inspecting the PackageVariantSet and PackageVariant using kubectl does not show the error:
apiVersion: config.porch.kpt.dev/v1alpha1
kind: PackageVariantSet
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"config.porch.kpt.dev/v1alpha1","kind":"PackageVariantSet","metadata":{"annotations":{},"name":"my-ghost-pvs","namespace":"default"},"spec":{"targets":[{"package":{"name":"ghost-pvs","repo":"application-deployments-2"}}],"upstream":{"package":{"name":"ghost","repo":"kpt-samples"},"revision":"v3"}}}
  creationTimestamp: "2023-03-21T20:26:21Z"
  generation: 1
  name: my-ghost-pvs
  namespace: default
  resourceVersion: "278630320"
  uid: 0460866f-9358-4a6a-85eb-143cbd4a0b7b
spec:
  targets:
  - package:
      name: ghost-pvs
      repo: application-deployments-2
  upstream:
    package:
      name: ghost
      repo: kpt-samples
    revision: v3
status:
  conditions:
  - lastTransitionTime: "2023-03-21T20:26:21Z"
    message: all validation checks passed
    reason: Valid
    status: "True"
    type: Valid

apiVersion: config.porch.kpt.dev/v1alpha1
kind: PackageVariant
metadata:
  creationTimestamp: "2023-03-21T20:26:21Z"
  finalizers:
  - config.porch.kpt.dev/packagevariants
  generation: 1
  labels:
    config.porch.kpt.dev/packagevariantset: 0460866f-9358-4a6a-85eb-143cbd4a0b7b
  name: my-ghost-pvs-ba5160554e945b99a227239b1547e4f1a7fec844
  namespace: default
  ownerReferences:
  - apiVersion: config.porch.kpt.dev/v1alpha1
    controller: true
    kind: PackageVariantSet
    name: my-ghost-pvs
    uid: 0460866f-9358-4a6a-85eb-143cbd4a0b7b
  resourceVersion: "278630319"
  uid: 3d51dea6-c73d-4a37-b10f-e86bc617d2e6
spec:
  adoptionPolicy: adoptNone
  deletionPolicy: delete
  downstream:
    package: ghost-pvs
    repo: application-deployments-2
  upstream:
    package: ghost
    repo: kpt-samples
    revision: v3

cc @johnbelamaric

How did you fix the rendering error ?...I am unable to root cause it..

Currently, the PackageVariant and PackageVariantSet do not expose errors in the status. Adding errors to the PackageVariant and PackageVariantSet status will make it obvious to the user that the resources are in an error state rather than the user needing to check the logs or uncertain if the resources have yet to been reconciled.
For example, when creating a PackageVariantSet using the ghost package from the kpt-samples repository, the target PackageRevision is not being created due to a rendering error. This can be seen in the controller logs (error Internal error occurred: fn.render: pkg .:\n\tpkg.render: pkg ghost-app:\n\tpipeline.run: error: function failure) however it is not obvious to the user when looking at the resources using kubectl.
Example PackageVariantSet yaml:
apiVersion: config.porch.kpt.dev/v1alpha1
kind: PackageVariantSet
metadata:
  name: my-ghost-pvs
  namespace: default
spec:
  targets:
  - package:
      name: ghost-pvs
      repo: application-deployments-2
  upstream:
    package:
      name: ghost
      repo: kpt-samples
    revision: v3

Inspecting the PackageVariantSet and PackageVariant using kubectl does not show the error:
apiVersion: config.porch.kpt.dev/v1alpha1
kind: PackageVariantSet
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"config.porch.kpt.dev/v1alpha1","kind":"PackageVariantSet","metadata":{"annotations":{},"name":"my-ghost-pvs","namespace":"default"},"spec":{"targets":[{"package":{"name":"ghost-pvs","repo":"application-deployments-2"}}],"upstream":{"package":{"name":"ghost","repo":"kpt-samples"},"revision":"v3"}}}
  creationTimestamp: "2023-03-21T20:26:21Z"
  generation: 1
  name: my-ghost-pvs
  namespace: default
  resourceVersion: "278630320"
  uid: 0460866f-9358-4a6a-85eb-143cbd4a0b7b
spec:
  targets:
  - package:
      name: ghost-pvs
      repo: application-deployments-2
  upstream:
    package:
      name: ghost
      repo: kpt-samples
    revision: v3
status:
  conditions:
  - lastTransitionTime: "2023-03-21T20:26:21Z"
    message: all validation checks passed
    reason: Valid
    status: "True"
    type: Valid

apiVersion: config.porch.kpt.dev/v1alpha1
kind: PackageVariant
metadata:
  creationTimestamp: "2023-03-21T20:26:21Z"
  finalizers:
  - config.porch.kpt.dev/packagevariants
  generation: 1
  labels:
    config.porch.kpt.dev/packagevariantset: 0460866f-9358-4a6a-85eb-143cbd4a0b7b
  name: my-ghost-pvs-ba5160554e945b99a227239b1547e4f1a7fec844
  namespace: default
  ownerReferences:
  - apiVersion: config.porch.kpt.dev/v1alpha1
    controller: true
    kind: PackageVariantSet
    name: my-ghost-pvs
    uid: 0460866f-9358-4a6a-85eb-143cbd4a0b7b
  resourceVersion: "278630319"
  uid: 3d51dea6-c73d-4a37-b10f-e86bc617d2e6
spec:
  adoptionPolicy: adoptNone
  deletionPolicy: delete
  downstream:
    package: ghost-pvs
    repo: application-deployments-2
  upstream:
    package: ghost
    repo: kpt-samples
    revision: v3

cc @johnbelamaric

How did you fix the rendering error ?...I am unable to root cause it..

Hi @shashidhar-p , this issue has been moved to https://github.com/nephio-project/nephio/issues/674.
Please use the new issue. Thanks.


How can I mention the imagelist.txt file?

How do you use it?

I have just updated the code. Now the order of the image list does not matter. You just need to make sure that these images follow the same naming convention as in the training dataset. For example, it can be like this:
///A001.jpg
///A002.jpg
///B001.jpg
...
The code will detect the the first chacacter of the file name to decide which type of image it is (ID or selfie).

I just downloaded BaseModel and ran Python Src / extract_features. py -- model_dir log / faceres_ms -- image_list image list. TXT -- output. NPY error
launchx@launchx-System-Product-Name:~/DocFace$ python src/extract_features.py --model_dir log/faceres_ms --image_list imagelist.txt --output output.npy
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcublas.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcudnn.so.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcufft.so.7.5 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:135] successfully opened CUDA library libcurand.so.7.5 locally
Traceback (most recent call last):
File "src/extract_features.py", line 86, in
main(args)
File "src/extract_features.py", line 41, in main
config = utils.import_file(os.path.join(args.model_dir, 'config.py'), 'config')
File "/home/launchx/DocFace/src/utils.py", line 46, in import_file
module_obj = imp.load_source(name, full_path_to_module)
File "/home/launchx/anaconda2/envs/rllab3/lib/python3.5/imp.py", line 172, in load_source
module = _load(spec)
File "", line 693, in _load
File "", line 673, in _load_unlocked
File "", line 665, in exec_module
File "", line 222, in _call_with_frames_removed
File "log/faceres_ms/config.py", line 19, in
train_dataset_path = os.environ["DATABASES"] + "/FaceDatabasesPublic/MsCeleb/msceleb5m_mtcnncaffe_aligned"
File "/home/launchx/anaconda2/envs/rllab3/lib/python3.5/os.py", line 725, in getitem
raise KeyError(key) from None
KeyError: 'DATABASES'

That's a bug. You can just comment that line (as well as the next line which uses the same environment variable). It is not needed in any cases. I will update the configurations in the models to avoid this problem.
Thank you

I annotate the DATABASES two rows in the config file.
The following error occurred in operation
major: 5 minor: 2 memoryClockRate (GHz) 1.076
pciBusID 0000:01:00.0
Total memory: 11.92GiB
Free memory: 11.63GiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:906] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:916] 0:   Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:975] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:01:00.0)
Metagraph file: log/faceres_ms/graph.meta
Checkpoint file: log/faceres_ms/ckpt-320000
Traceback (most recent call last):apsed time: 00:00:00
File "src/extract_features.py", line 86, in
main(args)
File "src/extract_features.py", line 67, in main
embeddings = network.extract_feature(images, args.batch_size, verbose=True)
File "/home/launchx/DocFace/src/basenet.py", line 232, in extract_feature
result[start_idx:end_idx] = self.sess.run(self.outputs, feed_dict=feed_dict)
File "/home/launchx/anaconda2/envs/rllab3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 767, in run
run_metadata_ptr)
File "/home/launchx/anaconda2/envs/rllab3/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 944, in _run
% (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (1, 250, 250, 3) for Tensor 'inputs:0', which has shape '(?, 112, 96, 3)'

As mentioned in the README, all the images must be aligned using MTCNN to 112x96 to use this model. To align the images, you can check here: https://github.com/wy1iu/sphereface and https://github.com/wy1iu/sphereface/tree/master/preprocess/code

I would like to ask, can you give me an example of your training, I first see how the effect, if I want to do the same is not necessary to install their own sphere face?

The problem is that the code of alignment uses Matlab and Caffe, so I don't put it into the repo. I can give you a demo Matlab code for aligning images using MTCNN (you need to install Caffe) if you want.

Thank you. Please show me a Matlab code.

I have added the alignment code into the repo. Please check the updated README on how to use it.

It's best to make a docker, so you don't want to install the environment, you can use docker.

Thank you for your suggestion.  I will check it.


added autofocus to login modal

@DanielJMaher
No more clicking!
Added autofocus to input field of login modal.

Cam already did this.  Whoops


Cannot read property 'exp' of undefined

Hi,
I've come across the following issue in the image below. There must be something that i'm missing but I can't put my finger on it.

I have the following scripts included:
jquery-2.1.1.js
angular.js (v1.2.20)
bootstrap.js (v3.1.1)
angular-ui-tree.js
The controller and html code is pretty much the same as in the connected trees demo.
Thank you.

@MagicIndustries are you up to create a PR for this?

Just happened to me too, disabling batarnag did the job

AngularJS v1.4.4
Angular UI Tree v2.8.0
Disabling Batarang helped.

+1 for disabling batarang

Made a pull request #664 to fix this issue in the latest version

Hi all,
I'm still getting this issue without batarang. I have the map included on a single page:
        <ui-gmap-google-map center='map.center' zoom='map.zoom'>
            <ui-gmap-marker coords="marker.coords" idkey="marker.id">
            </ui-gmap-marker>
        </ui-gmap-google-map>

and the following code to init:

    if (site.status) {
      $scope.error = ... etc.
    } else {
      getMapData();
      ...
    }

    var getMapData = function () {
      //Get map data
      $scope.map = {
        center: {
          latitude: $scope.site.location.x,
          longitude: $scope.site.location.y
        },
        zoom: 5
      };

      //Get marker to display on map
      $scope.marker = {
        id: 0,
        coords: {
          latitude: $scope.site.location.x,
          longitude: $scope.site.location.y
        }
      };
    };

The error is as follows:
angular.js:13424 TypeError: Cannot read property 'exp' of undefined
    at setIfChange (angular-google-maps.js:1900)
    at Scope.$digest (angular.js:16869)
    at angular.js:17064
    at completeOutstandingRequest (angular.js:5824)
    at angular.js:6100

Versions:
    "angular": "^1.4.0",
    "angular-google-maps": "~2.2.1",

Any help would be appreciated.

@Vixxd Try upgrading to 2.3.3. Moving from 2.0.11 to 2.3.3 fixed a Cannot read property 'exp' of undefined" for me

@nordoff how did you upgrade it?

I am using bower, so I simply changed the version in dependency list in my bower.js

I did it too but IMHO it doesn't work as the most recent version is 2.15.0 O_o
Could you please give me the exact bower.json line?

@archasek
"angular": "^1.5.2",
"angular-google-maps": "2.3.3",
Hope that helps

+1. Same issue using uib-typeahead.
Disabling batarang works, but that's not ideal

thanks! had the same error but with angular inspector, which is based on batarang


Error message when trying to backup

Hi,
Trying to backup my wallet I got this error message:
"Runtime error!
Program C:\program files.....\gridcoinresearch.exe
This application has requested the runtime to terminate
it in an unusual way. Please contact application support team"
What does this mean and what can I do about it?
Thanks in advance for any reaction!!

This is fixed in the upcoming version.


Error: EACCES: permission denied, mkdir '/public'

I am using admin bro with an express server, i just installed the package
yarn add @admin-bro/upload
I've created the public folder and assign it as static folder for the express framework, as follow
app.use(express.static('public'));
Each time i am using the uploadFileFeature it is giving me this error Error: EACCES: permission denied, mkdir '/public'
I am using   @admin-bro/upload": "^1.3.1 and testing on my localhost environment on Linux Ubunto
Any help please ?

Closed


next and prev to jump over deactivated tabs

proposal to fix Next/previous button in pagers step into disabled tabs (#163), could be easily adjusted to take visibility class into account as well. Additional suggestion: NextTab and PreviousTab could make use of nextIndex and previousIndex.

@jstaerk can you add a test case (an example file under examples)?
thank you.

done. Please do feel free to help me/correct/refine my code, I suspect you get a lot of unconstructive feedback, I did my best to prove that I try to be constructive, but I guess as I don't know your project my submission could use a final touch.


fix: updated deps

:tada: This PR is included in version 2.4.24 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Encode temporary html document as utf-8.

Fix garbled output on utf characters
Drop markdown requirement

:+1:


add PlanPricing.visible field to allow hiding some pricings

Add posibility to hide certain PlanPricings from public offer (e.g. I want to offer non-recurring plan variants only to those who can't buy recurring plan for some reason).

Contains commits from PR https://github.com/django-getpaid/django-plans/pull/169, which should be pulled first.


Why did ```cs code snippets stop being recognized as C#?

I usually use ```cs to mark my C# code snippets. I recently noticed that code snippets marked like that no longer highlight on GitHub:
using System;

Console.WriteLine("Hello, world!");

While ```c# works fine:
using System;

Console.WriteLine("Hello, world!");

Did something change in Linguist recently that could have caused this?

Do you remember when you saw it last working?

@pchaigno Probably around 2 or 3 days ago. I use GitHub on a daily basis, so if it had stopped working earlier than that I would probably have noticed.

Hum... The last release of Linguist is from 4 days ago and the only changes related to C# are in the grammar. Maybe it's due to a change on github.com side. @brandonblack Any idea?

We did push a release with updated grammars this week, but I don't see any changes in the upstream grammar that would have caused this. This language was not part of the rename so it wouldn't have been impacted by that either.
On GitHub's side and within linguist, this hasn't changed in 6 years.
I suspect while cs might have worked before, it wasn't actually C# and was just something similar. The two officially supported language identifiers for snippets are the name c# or the alias csharp.
Using c#:
using System;
Console.WriteLine("Hello, world!");

Using csharp:
using System;
Console.WriteLine("Hello, world!");

I suspect while cs might have worked before, it wasn't actually C# and was just something similar.

I am pretty sure it was C# and not something similar. I used a variety of language keywords (e.g. yield, async, nameof) under ```cs and they were all highlighted correctly.
Just a guess, but since cs wasn't even listed as one of the aliases for C#: Maybe there was a feature in the library that automatically added a cs alias because .cs is a file extension for C#? And that feature got removed in a recent update? It would explain how this is happening with little C#-specific changes.

@jamesqo it looks like this was related to the breaking changes made in v5.0.0 for find_by_extension.
https://github.com/github/linguist/blob/master/lib/linguist/language.rb#L151-L173
We should have a fix out shortly.


http2 support?

as netty 4.1.x add default support for http2, and dubbo also support protocol extension, is any plan to support http1/2 transport without containers such as jetty.

yes, that's in the plan.

Can share the detailed plan or milestone? thx @beiwei30

Hi, this is in plan.
The rep is here:
https://github.com/zonghaishang/dubbo-rpc-http2

@eonezhang  http2 example: https://github.com/zonghaishang/dubbo-example-http2
I will provide more detailed documentation later.

We should add a demo in dubbo-sample project.  I have new a issue : https://github.com/dubbo/dubbo-samples/issues/38 .
This issue can be closed.
&READY-TO-CLOSE&

@cvictory
Hi,
Since the part of HTTP2 has not been merged into the master, can this problem be closed?

2018年，为啥没合并呢？


Can't pip instal tqdm - stuck

How can I work with tqdm in sagemaker ?

Thank you . That solved it..


Improve and apply character repertoire restrictions only where necessary

Description
Fixes #1718 and #2854
This PR:

modifies the  com.google.fonts/check/name/ascii_only_entries check to match the restrictions in the OpenType spec instead of just checking that a string in question can be converted to ASCII (that alone is not enough).
makes it check the NameID entries which have actual pronounced restrictions in the spec, instead of looking at COPYRIGHT_NOTICE, which has none of them, and which seems to have been restricted in FontBakery based on a wrong assumption about the CFF table header (see https://github.com/fonttools/fontbakery/issues/1718#issuecomment-367398623)
removes an incorrect note from the rationale of this check (non-ASCII strings are allowed in most nameIDs, but will more commonly be found in headers with non-English language ID)
adds more data to the error messages produced
removes altogether the (dare I say) baseless Google-specific check for ©®™ characters in the HEAD table (googlefonts/name/unwanted_chars), which mostly overlapped with the check above anyway, and seems to have had the same rationale, according to https://github.com/fonttools/fontbakery/issues/2854#issuecomment-622419338

Checklist

[ ] update CHANGELOG.md
[ ] wait for the tests to pass
[ ] request a review

Okay, one thing I don't understand is why the test in test_checks_name.py fails for NameID 25 specifically. I'll get back to this tomorrow, but any hints will be greatly appreciated.

Sorry for the noise with force pushes. There was a typo which caused one of the tests to fail, and I just couldn't spot it until the next morning.

Should I maybe rename the check from ascii_only_entries to restricted_entries?


Allow to pass nulls to emitWith

Currently, uses a ?? operator so you can never pass a null value to emitWith. This should be possible.

Resolved in 0.0.4


Add "block" item condition type

A simple item condition that checks if the item is an instance of BlockItem.
Test power:
{
  "type": "apoli:active_self",
  "key": "key.attack",
  "entity_action": {
    "type": "apoli:if_else",
    "condition": {
      "type": "apoli:inventory",
      "slot": "weapon.mainhand",
      "item_condition": {
        "type": "apoli:block"
      }
    },
    "if_action": {
      "type": "apoli:execute_command",
      "command": "say True"
    },
    "else_action": {
      "type": "apoli:execute_command",
      "command": "say False"
    }
  }
}

I'm not too sure about the name of the item condition type type; I actually have the same exact thing in eggolib, but I'm also not too sure about its name too (it's named block_item) 🤔

I'm not sure about the name either, but if we follow Apoli's naming convention it should be either block (food, fuel item condition types) or is_placable (is_equippable, is_damageable item condition types). Another option is is_block so it won't be confused with the block block condition type), although I don't think it matters much.

Regarding is_placeable, since there are items that can place blocks/entities that aren't technically defined as a BlockItem, I think that could cause some confusion (e.g: "why are spawn eggs not considered "placeable" when it places entities?", etc.) So our best bet is probably is_block and/or is_block_item (maybe add one of the names, and variants without the "is" prefix as aliases) 🤔


add feature to testgen for pdf media type

I need to validate when the response produces a PDF mime type.
To do this, I compare the length of buffer file with the content-length header.
I have added tests for check this feature (test/pdfConsumeTypeTest)

Thanks you @SrHuevo for the feature add and for using STT. I apologize for the lack of support here. I'll merge this and release a new version soon.

Released in v1.5.0


Add instructions to README

Hello and thanks for the useful library!
I notice that the README directs us to the blog posts, which are quite lengthy (but informative).
I think I would help a lot of people to have sections of the README as follows:
Installation
Usage
And then we could details some quick getting-started information so people can drop in this library and start coding rather than having to deep-dive into the blogs to figure it out.
Thoughts?

I think you missed the "Documentation can be found in the Repo's Wiki." in the README file. I believe that what you are looking for.


Fix IndexOutOfBoundsException when back to "All Sessions" screen

Related issue
#95
Contents

[x] Check the size of the fragments and return null if it is out of bounds

Regression tests
Verified the following:

[x] With "Don't keep activities" on, I opened a session detail and added it to my schedule and return back to the All Sessions to see the session was checked
[x] With "Don't keep activities" off, I opened a session detail and added it to my schedule and return back to the All Sessions to see the session was checked

@konifar Could you review this when you have time?  I would like to confirm it does not break any existing behaviour.

@hkurokawa When it returns null, aren't there any problem right? I think it is related with this line.
https://github.com/konifar/droidkaigi2016/blob/f5c669f356e5995a6928631aaff7e657a3a6ad24/app/src/main/java/io/github/droidkaigi/confsched/fragment/SessionsFragment.java#L176

@hotchemi You're correct.  My concern is if there is no Fragments at that point of onActivityResult(), I can just do nothing or I should do anything else.

LGTM!

Thanks! I am merging this.

Hi, I think this PR is not enough.

Fragment should not initialize when savedInstanceState of the Activity is null.
ref : SimpleSinglePaneActivity.java#L45
http://developer.android.com/intl/ja/reference/android/app/Fragment.html

First-time init; create fragment to embed in activity.

It will cause an increase in the Fragment that FragmentManager holds.
FragmentActivity calls onActivityResult() of the child Fragment automatically. So, you should using onActivityResult() of the Fragment.

ref : FragmentActivity.java#L156

Can I send a pull request?

@sys1yagi Why not? :+1:

@sys1yagi

Can I send a pull request?

offcourse, Welcome your contribution

@sys1yagi Sure!


Document watchdog usage - use one hardware watchdog to support multiple software watchdogs for multiple sessions.

Background: https://github.com/DMTF/libspdm/issues/494
Follow up for https://github.com/DMTF/libspdm/pull/521 - "there will need to be a follow-up pull request to address issues such as number of watchdog timers available and resetting the watchdog."

I will check this.


GPU - two of "uwsgi" process stay at 46MB and not changed. Its need to be like that?

Hi
So I downloaded from the release the last version 1.2.0 and took the "docker-compose-gpu.yml" and changed the name to docker-compose.yml and ran it with docker compose up. Until here all working well
When I check the nvidia-smi with watch -n 0.1
The process"uwsgi" which belongs to Comparface stays at 46MB ALWAYS
With the face detection or not, I guess something wrong here.
I need help with this issue please
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.30.02              Driver Version: 530.30.02    CUDA Version: 12.1     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                  Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf            Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce GTX 1050 Ti      Off| 00000000:01:00.0 Off |                  N/A |
|  0%   55C    P0               N/A /  72W|   1064MiB /  4096MiB |     11%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
+---------------------------------------------------------------------------------------+
| Processes:                                                                            |
|  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
|        ID   ID                                                             Usage      |
|=======================================================================================|
|    0   N/A  N/A       667      G   /usr/lib/xorg/Xorg                            9MiB |
|    0   N/A  N/A       757      G   /usr/bin/gnome-shell                          6MiB |
|    0   N/A  N/A      2630      C   ffmpeg                                       79MiB |
|    0   N/A  N/A      2650      C   ffmpeg                                       75MiB |
|    0   N/A  N/A      2652      C   ffmpeg                                       93MiB |
|    0   N/A  N/A      2679      C   ffmpeg                                      150MiB |
|    0   N/A  N/A      3273      C   ffmpeg                                       77MiB |
|    0   N/A  N/A      3980      C   ffmpeg                                       83MiB |
|    0   N/A  N/A      3982      C   ffmpeg                                       83MiB |
|    0   N/A  N/A      4432      C   ffmpeg                                       77MiB |
|    0   N/A  N/A      5840      C   uwsgi                                        46MiB |
|    0   N/A  N/A      5841      C   uwsgi                                        46MiB |
|    0   N/A  N/A     11232      C   ffmpeg                                       77MiB |
|    0   N/A  N/A     16590      C   ffmpeg                                       77MiB |
|    0   N/A  N/A     25295      C   ffmpeg                                       77MiB |
+---------------------------------------------------------------------------------------+
This of containers was installed
89d33b05c114   exadel/compreface-fe:1.2.0
9ed09a738f42   exadel/compreface-admin:1.2.0
19ffe976b985   exadel/compreface-api:1.2.0
26bcc26b474b   exadel/compreface-core:1.2.0
170c6a40166e   exadel/compreface-postgres-db:1.2.0

My GPU was with 4GB
I replace it with 8GB now it’s working well
someone can explain why CompreFace take 5.4GB GPU memory please ?

It is possible to limit the GPU memory which CompreFace uses?


Fixes a bug when you use obtainFromCode with empty params

Coverage increased (+1.7%) to 83.848% when pulling 667f436dfb956c3939852e626214eae9d2f27bdb on abstractj:obtainFromCode into 48e82d5178997582faa011d7d8e73799f6f888dd on keycloak:master.

@sebastienblanc reviewzzz, please.


CMake error when adding dependency to desktop

I wanted to test out the new desktop support (#36), but as soon as I added the dependency I ran into build errors on both Windows and Linux (I haven't tested on MacOS yet). All I did was add flutter_zxing: ^1.0.0 to pubspec.yaml, ran flutter pub get and then tried to build with flutter build linux (or windows). The error I'm getting is:
$ flutter build linux
💪 Building with sound null safety 💪

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
log-lib
    linked by target "flutter_zxing" in directory my-project/linux/flutter/ephemeral/.plugin_symlinks/flutter_zxing/src

CMake Generate step failed.  Build files cannot be regenerated correctly.
Building Linux application...
Unable to generate build files

The error on Windows is pretty much identical. Am I missing something obvious here?

hello has there been a reply to this error message. I am experiencing the same issue. Any help would be greatly appreciated


It cannot work on Office 2016

My OS is Windows 7.
Chrome Broswer.
When I copy the result, it is pasted as just text other than equation.

Did you copy from Wikipedia?

No, I just copy it from a webpage with textbox.

me too, i copy it from Wikipedia,and my OS is Windows 10.

from https://en.wikipedia.org/wiki/Conditional_random_field.
It dosen't work in office 2016.

This extension supports Windows 10. The possible solution for fixing the problem above is to change the conversions to LaTex. The default equation conversion in office word 2016 is UTF-8, it can be changed under "Design" tab for equations.


Unexpected space between PowerLine Symbols on Integrated Terminal

Type: Bug

Install starship
Use this starship config

format = """
[](#182C61)\
$username\
[](fg:#182C61 bg:#01579B)\
$directory\
[](fg:#01579B bg:#16a085)\
$git_branch\
$git_status\
[](fg:#16a085 bg:#1B5E20)\
$c\
$python\
$elixir\
$elm\
$golang\
$gradle\
$haskell\
$java\
$julia\
$nodejs\
$nim\
$rust\
$scala\
[](fg:#1B5E20 bg:#2980b9)\
$docker_context\
[](fg:#2980b9 bg:#3F51B5)\
$time\
[](fg:#3F51B5 bg:#1A237E)\
$cmd_duration\
[](fg:#1A237E bg:#2c3e50)\
$status\
[ ](fg:#2c3e50)\
"""
command_timeout = 5000
scan_timeout = 70

[username]
show_always = true
style_user = "bg:#182C61"
style_root = "bg:#182C61"
format = "[󰀉 $user ]($style)"
disabled = false

[directory]
style = "bg:#01579B"
format = "[ 󰉋 $path ]($style)"
truncation_length = 3
truncation_symbol = "…/"

[c]
symbol = " "
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[python]
symbol = " "
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[elixir]
symbol = " "
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[elm]
symbol = " "
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[git_branch]
symbol = ""
style = "bg:#16a085 fg:#000000"
format = "[ $symbol $branch ]($style)"

[git_status]
style = "bg:#16a085 fg:#000000"
format = "[$all_status$ahead_behind ]($style)"

[golang]
symbol = " "
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[gradle]
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[haskell]
symbol = " "
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[java]
symbol = " "
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[julia]
symbol = " "
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[nodejs]
symbol = ""
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[nim]
symbol = " "
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[rust]
symbol = ""
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[scala]
symbol = " "
style = "bg:#1B5E20"
format = "[ $symbol ($version) ]($style)"

[docker_context]
symbol = " "
style = "bg:#2980b9"
format = "[ $symbol $context ]($style) $path"

[time]
disabled = false
time_format = "%r" # Hour:Minute:Seconds AM/PM Format
style = "bg:#3F51B5 fg:#000000"
format = "[ 󰥔 $time ]($style)"

[cmd_duration]
style = "bg:#1A237E"
min_time = 500
format = "[ 󰅒 took: $duration ]($style)"

[status]
style = "bg:#2c3e50"
symbol = "💔 "
success_symbol = "❤"
format = "[ $symbol$common_meaning$signal_name$maybe_int ]($style)"
map_symbol = true
disabled = false

Configure PowerShell to use starship
Open PowerShell using Integrated Terminal
See Unexpected space between PowerLine Symbols on Integrated Terminal

VS Code version: Code 1.82.1<PHONE_NUMBER>d557a81c9d0b5f8a5a1e9274db5585, 2023-09-08T08:45:05.575Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info

Item
Value

CPUs
Intel(R) Core(TM)2 Duo CPU     T5870  @ 2.00GHz (2 x 1995)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: disabled_offopengl: enabled_onrasterization: unavailable_offraw_draw: disabled_off_okvideo_decode: unavailable_offvideo_encode: unavailable_offvulkan: disabled_offwebgl: enabledwebgl2: unavailable_offwebgpu: enabled

Load (avg)
undefined

Memory (System)
1.93GB (0.27GB free)

Process Argv
--disable-extensions --crash-reporter-id 1c4fcefb-ace5-4e79-bc88-877db98ea822

Screen Reader
no

VM
0%

Extensions disabled
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
pythonvs932:30410667
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vscccc:30803845
2e4cg342:30602488
89544117:30613380
a9j8j154:30646983
showlangstatbar:30737416
962ge761:30835153
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxptcf:30805731
pythonnoceb:30805159
dsvsc013:30795093
dsvsc014:30804076
diffeditorv2:30821572
dsvsc015cf:30829746

Related issue on starship/starship#5439

I was searching for this issue for evenings now - bruh.
As mentioned here, this issue occurs on Windows but not on linux.
It might also be worth mentioning that this issue only occurs for characters which have a code point above U+FFFF (i.e. any nerd font glyph which has an ID with more than 4 hexadecimal characters).
Meaning:
The folder icon nf-md-folder with the code point f024b will cause this issue, while the (I believe) similar looking icon nf-fa-folder with code point f07b (take note that it only has 4 characters) won't:

I'm seeing this as well, with Oh-My-Posh. It looks like the integrated terminal is miscalculating the width of a character string like "\udb84\udfab" as 2, rather than 1 (it's the UTF-16 representation of a high bit character).

I'm seeing this as well, with Oh-My-Posh. It looks like the integrated terminal is miscalculating the width of a character string like "\udb84\udfab" as 2, rather than 1 (it's the UTF-16 representation of a high bit character).

So it's indeed a bug for Visual Studio Code not starship or oh-my-posh

Hi @Tyriar
I tested quite a few versions of Windows Terminal and the error seems to occur on Windows in any Windows Terminal version below 1.20:
https://github.com/starship/starship/issues/5439#issuecomment-2388671245
Is this information of any help?


MD WIDGETS: Save user input data to a local JSON file

Description
Add an additional parameter to the Submit button and let users save the user input data as a local JSON file. Make this submission method the default, while also providing options for users to submit via POST to a URL or POD.

For the example app perhaps simply pass a function that always saves the survey in a fixed file.


fix(deps): update terraform terraform-ibm-modules/cos/ibm to v8.10.3

This PR contains the following updates:

Package
Type
Update
Change

terraform-ibm-modules/cos/ibm (source)
module
patch
8.10.2 -> 8.10.3

Release Notes

terraform-ibm-modules/terraform-ibm-cos (terraform-ibm-modules/cos/ibm)
v8.10.3
Compare Source
Bug Fixes

deps: update terraform-module (#681) (1089405)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

/run pipeline

:tada: This issue has been resolved in version 1.8.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Improvements

All described in the commits.

Merge this!

In case anyone still using this I forked that and merged this bug fix and having a CDN link on jsdeliver


Refactored the code to run in parallel and improve code style

Each variable is now processed in a different process instead of a thread, so that GIL doesn't limit CPU-bound operations across variables.
All datasets are downloaded in parallel using threads, instead of sequential. Changed logic so that we first start concurrent dataset downloads and only later actually use the datasets.
Added type annotations, fixed formatting.
Identified some issues with logic, marked with FIXME to discuss.
Configured reproducible and working environment with poetry.

Thanks Oleh!


feat(sui): new operators script

AXE-4128

[x] sui/operators: new script for calling operators contract

I'll take over this PR


400 - Improve the site structure

Issue Number
#400
Purpose/Implementation Notes
Refactored the site structure and optimized the codebase based on the list. In addition, this update includes a fix for z-index issues (latest).
Types of changes

Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

[x] Lint and unit tests pass locally with my changes

@davidsmejia I just made a minor update to the ContributeBanner component - added the drop shadow and z-index value, thank you!

Closing due to being outdated


Unknown elements

Unknown elements, such as SVG and MathML, but also ng-button will probably just be recognised as elements.
I’m not yet sure how self-closing elements are handled (e.g., in SVG)...

Will have to deal with this later. Current set-up of using processor.data is fine.


Assets not there

The entire assets folder isn't there and i can build the game

redonwload

Thank you VMGuy23 very cool


hint client of download filename

Is your feature request related to a problem? Please describe.
Currently EODAG server does not give the filename when downloading data.
For example, the following command will download and name it "download".
wget http://localhost:8000/collections/S1_SAR_GRD/items/S1A_IW_GRDH_1SDV_20230831T234123_20230831T234152_050126_060852_FA06/download"

Describe the solution you'd like
A clear and concise description of what you want to happen.
Add the "Content-Disposition" header in download request response to hint the client of the filename.
Content-Disposition: attachment; filename="S1A_IW_GRDH_1SDV_20230831T234123_20230831T234152_050126_060852_FA06.zip"

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
We could also update URLs to look like the following instead. Or we could do both (header + URL).
http://localhost:8000/collections/S1_SAR_GRD/items/S1A_IW_GRDH_1SDV_20230831T234123_20230831T234152_050126_060852_FA06/download/S1A_IW_GRDH_1SDV_20230831T234123_20230831T234152_050126_060852_FA06.zip"

Additional context
Add any other context about the feature request here.

The "Content-Disposition" header is already used, but not implemented for all the download plugins. We should make sure it is


yarn.lock - file

yesterday the yarnpkg - manager comes out.
i let yarn generate its lock.file, for faster and reliable installation 😄
see offical-configuration

ignore the first commit^^