libpython not loaded under Anaconda

Bug Description
While correctly detected, libpython*.dylib is not found at runtime under miniconda.
Steps to Reproduce
See the complete minimal code.
Backtrace
--- stdout
  cargo:rerun-if-env-changed=PYO3_CROSS
  cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
  cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
  cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION
  cargo:rerun-if-env-changed=PYO3_PRINT_CONFIG

  -- PYO3_PRINT_CONFIG=1 is set, printing configuration and halting compile --
  implementation=CPython
  version=3.12
  shared=true
  abi3=false
  lib_name=python3.12
  lib_dir=/Users/runner/miniconda3/lib
  executable=/Users/runner/miniconda3/bin/python
  pointer_width=64
  build_flags=
  suppress_build_script_link_lines=false

  note: unset the PYO3_PRINT_CONFIG environment variable and retry to compile with the above config
...
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.78s
     Running `target/debug/pyo3-test`
dyld[6132]: Library not loaded: @rpath/libpython3.12.dylib
  Referenced from: <D47A24F9-530D-36D3-A2DF-66D920E7E1B9> /Users/runner/work/pyo3-test/pyo3-test/target/debug/pyo3-test
  Reason: tried: '/Users/runner/work/pyo3-test/pyo3-test/target/debug/deps/libpython3.12.dylib' (no such file), '/Users/runner/work/pyo3-test/pyo3-test/target/debug/libpython3.12.dylib' (no such file), '/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/rustlib/aarch64-apple-darwin/lib/libpython3.12.dylib' (no such file), '/Users/runner/.rustup/toolchains/stable-aarch64-apple-darwin/lib/libpython3.12.dylib' (no such file), '/Users/runner/lib/libpython3.12.dylib' (no such file), '/usr/local/lib/libpython3.12.dylib' (no such file), '/usr/lib/libpython3.12.dylib' (no such file, not in dyld cache)
/Users/runner/work/_temp/23791571-1fd0-4d1a-b32c-b63b783c7030.sh: line 5:  6132 Abort trap: 6           cargo run
Error: Process completed with exit code 134.

Your operating system and version
MacOS (Github runner) — also on Linux
Your Python version (python --version)
Python 3.12
Your Rust version (rustc --version)
rustc 1.78.0 (9b00956e5 2024-04-29)
Your PyO3 version
0.21.2
How did you install python? Did you use a virtualenv?
Anaconda
Additional Info
No response

Looks like #1554

Yes, that other issue looks similar (it lacks a bit of details to tell it is the very same).
Incidentally, making a symbolic link to libpython to target/debug/deps (for debug builds obviously) solves the issue.  Note that setting LD_LIBRARY_PATH=$CONDA_PREFIX/lib (or setting DYLD_LIBRARY_PATH on MacOSX) sort of solves the issue too but it may cause strange behaviors because there are many other libraries in $CONDA_PREFIX/lib and you do not want those to be used instead of the system ones.
Since it seems that anaconda will not solve this issue anytime soon, shouldn't PyO3 attempt to work around it?


LIVE-3312 Ethereum Rinkeby (testnet) integration

📝 Description
Integration of Ethereum Rinkeby testnet.
❓ Context

Impacted projects: cryptoassets LLC LLD LLM
Linked resource(s): https://ledgerhq.atlassian.net/browse/LIVE-3312

✅ Checklist

[x] Test coverage
[x] Atomic delivery
[x] No breaking changes

📸 Demo

🚀 Expectations to reach

:information_source: Work done in advance but backend not ready yet, putting this on HODL until backend ready on staging at least.

some conflict. consider putting PR in draft then


Print clear error on invalid contex name

For the common error of pssing an invalid --kubecontexts flag to
subctl verify, we should clearly notify the user before exiting.
Closes: submariner-io/submariner-operator#1620
Signed-off-by: Daniel Farrell<EMAIL_ADDRESS>

Can you re-review @tpantelis?


--no-window argument opens editor when running --export

Godot version
4.0.alpha11 (afdae67cc)
System information
Manjaro Linux 21.3.2, Vulkan API 1.2.0, NVIDIA GeForce GTX 1070 (515.57)
Issue description
When I run godot --export "Linux/X11" --no-window, the Godot editor opens for a couple of seconds and then closes. I expect Godot to export without opening the editor when using the --no-window argument.
The docs state Godot will run with an invisible window.
Maybe related to #43752, #43948
Steps to reproduce
run godot --export "Linux/X11" --no-window
Minimal reproduction project
No response

There's no --no-window option anymore, use --headless for this: https://github.com/godotengine/godot/blob/master/main/main.cpp#L333


Support mdata variable for /root/.ssh/authorized_keys file

This script creates a .ssh folder with minimal permissions, if the directory already exists the permissions will be changed to 700. If the mdata variable root_authorized_keys the authorized_keys is cleared and a header is added. I also fix the file permissions to be sure we're using the minimal permissions required for authorized_keys.

I don't know the mechanism SmartDataCenter uses, but @drscream did you investigate if that was appropriate here? If it isn't appropriate, could you explain why?
If the approach already proposed here is preferred, would it make sense to use the same logic / code as https://github.com/joyent/smartos-vmtools/blob/master/src/linux/lib/smartdc/set-root-authorized-keys

I'm sorry I don't know how it works in SDC but I will try to find out. I only noticed that it isn't working if you're using the base or base64 mibe image on SmartOS without SDC.
The code you provided from the smartos-vmtools should work but mdata-get isn't in /lib/smartdc/ on a SmartOS zone. I also like the idea to update the /root/.ssh/authorized_keys file if it already exists which isn't possible by the smartos-vmtools version.

SDC uses SmartLogin, a service that runs in the global zone and communicates with UFDS. SmartLogin authenticates users against keys stored in UFDS without using an authorized_keys file.
OS zones in SDC don't include the root_authorized_keys by default so in theory this change wouldn't affect SDC. Even still, I would feel more comfortable if the script explicitly checked the sdc:datacenter_name metadata value to ensure it's empty. Secondly, if we wanted to do this at all, it should also follow the convention used for KVM zones where overwrite_root_akeys must be set to OVERWRITE.


move dependency java.xml.bind to jakarta.xml.bind

Environment
Liquibase Version: 4.12.0
Description
In order to move into the direction of JPMS it would be a good idea to switch to jakarta libraries since jakarta is the new official home for this javax package. It should be pretty much a drop in replacement with changing the dependencies and imports - assuming there are enough tests.
Actual Behavior
The javax.xml.bind package is used with no module support. This dependency is available at different coordinates and in slightly different configurations, this leads to many dependencies wanting the packages/code but end up using different dependencies.
Expected/Desired Behavior
Liquibase has a dependency on jakarta.xml.bind which in turn provides a module name.

Any update, please? Spring boot 3 is almost released and it's incompatible with liquibase for this particular reason

We are in the process of migrating to Spring Boot 3 and it would be good if Liquibase can provide a release which is going to depend on jakarta.xml.bind and / or remove the dependency.

We are migrating JHipster to spring-boot 3 (https://github.com/jhipster/generator-jhipster/pull/19791 and https://github.com/jhipster/jhipster-lite/issues/3750), so it would be good that liquibase provide support for it.
related with https://github.com/liquibase/liquibase-hibernate/pull/434 also.

I think this is resolved in 4.18

I don't think so @hberrayana. If you see the liquibase-core 4.18 pom.xml on Maven Central you'll see that the javax.xml.bind dependency is still there.
The strangest thing though is that the javax.xml.bind is only needed for the commercial jar. At least if you look at the pom.xml on GitHub.
According to https://github.com/liquibase/liquibase/issues/2629 there are 2 jars now. Perhaps something needs to be done for the final build. @kataggart and @nvoxland can you perhaps have a look at this?

Hi There is a similar problem with the maven liquibase plugin:
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:4.18.0:diff (default-cli) on project ims-backend: Execution default-cli of goal org.liquibase:liquibase-maven-plugin:4.18.0:diff failed: An API incompatibility was encountered while executing org.liquibase:liquibase-maven-plugin:4.18.0:diff: java.lang.NoSuchMethodError: 'javax.persistence.spi.PersistenceUnitInfo org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.obtainDefaultPersistenceUnitInfo()'
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>org.liquibase:liquibase-maven-plugin:4.18.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/C:/Users/XXXX/.m2/repository/org/liquibase/liquibase-maven-plugin/4.18.0/liquibase-maven-plugin-4.18.0.jar
[ERROR] urls[1] = file:/C:/Users/XXXX/.m2/repository/org/liquibase/liquibase-core/4.18.0/liquibase-core-4.18.0.jar
[ERROR] urls[2] = file:/C:/Users/XXXX/.m2/repository/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar
[ERROR] urls[3] = file:/C:/Users/XXXX/.m2/repository/javax/activation/javax.activation-api/1.2.0/javax.activation-api-1.2.0.jar
[ERROR] urls[4] = file:/C:/Users/XXXX/.m2/repository/org/yaml/snakeyaml/1.33/snakeyaml-1.33.jar
[ERROR] urls[5] = file:/C:/Users/XXXX/.m2/repository/com/opencsv/opencsv/5.7.1/opencsv-5.7.1.jar
[ERROR] urls[6] = file:/C:/Users/XXXX/.m2/repository/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar
[ERROR] urls[7] = file:/C:/Users/XXXX/.m2/repository/org/apache/commons/commons-text/1.10.0/commons-text-1.10.0.jar
[ERROR] urls[8] = file:/C:/Users/XXXX/.m2/repository/org/apache/commons/commons-collections4/4.4/commons-collections4-4.4.jar
[ERROR] urls[9] = file:/C:/Users/XXXX/.m2/repository/org/liquibase/liquibase-commercial/4.18.0/liquibase-commercial-4.18.0.jar
[ERROR] urls[10] = file:/C:/Users/XXXX/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR]

I'm using spring boot 3
and
org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager.obtainDefaultPersistenceUnitInfo()
returns now
jakarta.persistence.spi.PersistenceUnitInfo
instead of
javax.persistence.spi.PersistenceUnitInfo

The difficultly in switching is that we need to support older versions of java (down to java 8) and people who are running in environments with javax.bind instead of jakarta.
Some early testing we've been doing with spring 3 seemed to show the existing liquibase code had no problem running in spring 3. What sorts of problems are you hitting?

im meantime i could solve the problem by using liquibase-hibernate6, which was only available for 4.18.0, but spring boot 3 ueses currently 4.17.0

The difficultly in switching is that we need to support older versions of java (down to java 8) and people who are running in environments with javax.bind instead of jakarta.

The solution to this would be to create a multi-release JAR of the liquibase-core dependency. The multi-release JAR should have alternatives for all classes that import javax.xml.bind starting from Java 11. This will give everyone a seamless upgrade path.
Reference:  https://docs.oracle.com/en/java/javase/11/docs/specs/jar/jar.html
See the Log4j2 GitHub for an example of a multi-release library JAR: https://github.com/apache/logging-log4j2

Some early testing we've been doing with spring 3 seemed to show the existing liquibase code had no problem running in spring 3. What sorts of problems are you hitting?

Although Liquibase-core seems to work fine in a JEE10 environment, it forces us to include ancient javax XML packages in the deployables. This is a waste since the Jakarta XML packages are already provided by the JEE10 container.
All major runtime components have moved to jakarta XML: Java 11+, JEE9, JEE10, Spring Boot 3,etc. Liquibase is late to the game by not supporting jakarta XML.

Is there any plan this will be going to fix in some release or as patch version

Wow, this is open now for two years and still considered an (optional?) enhancement.
It seems that liquibase was discontinued. Too bad.

I could not find anything in the docs, but I just stumbled over:
LiquibaseJakartaServletListener
-- Problem solved (for me)

Whow, javax to jakarta still seems to have a hard time. I guess that liquibase will not really move towards the new namespace ...

I would like to contribute here, let me know if that works.

@kunalvarpe maybe it would be best if you just do a fork of this repo and implement the required changes! I will try to use it then!


No face detected in pose image.. I would appreciate any help

 I uninstalled and installed insightface twice, also the custom node but nothing fixed yet, I would appreciate any help

no longer relevant, since the version update

I am still getting this error:
!!! Exception during processing !!!
I cannot do anything about that. just draw your own KPS (those color points) there is workflow for that (draw_kps.json) with an example picture showing how to do it.

We are actually using 3 images as input for insightface. We have a workflow in which we keep changing the "target" image in which faceswap happens, but these 3 images as input remain same.
Strangely it works fine for some target images and while fails on others with the mentioned error.
The error I was getting for "Insightface cannot detect a face in the masked area (+ padding)" was related to this issue.
Kindly let me know if you need more information.

You are right. Thanks @nosiu


Problem when running composer update

Question
Answer

Issue or Enhancement
Issue

Laravel Version
7

Project Version
3.0

When executing the command "composer update" my system broke. showing this error message.
Call to undefined method JeroenNoten\LaravelAdminLte\AdminLte::getBodyClasses() (View: /home/fjas/Projetos/sgedu-2/resources/views/vendor/adminlte/page.blade.php)

how can i solve this problem?

You need to update your views, getBodyClasses() was removed with v3.3.0.

Sorry, what You mean with update your views?

Hi, please give a read to Updating Section. Probably, you have published the main views and now are not compatible with the new package version. Be sure to backup the views you have published (those on resources/views/vendor/adminlte folder) if you have applied changes to these views.

@Shidersz Thanks for the tip, I ran the update procedure, but now I have a ViewException:
Facade\Ignition\Exceptions\ViewException
Target class [JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter] does not exist. (View: /home/fjas/Projetos/sgedu-2/resources/views/vendor/adminlte/partials/navbar/navbar.blade.php)

Review the config/adminlte.php file and remove JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter::class from the list of filters, since that filter no longer exists on the new version. Take a look to release of version 3.4.0. Updating the config, or be aware of the changes it includes (if any) is also part of the update procedure. I hope that helps...

the metod is deprecated, you have to replace "isSearchBar" with "isLegacySearch" in this files:
resources\views\vendor\adminlte\partials\navbar\menu-item.blade.php
resources\views\vendor\adminlte\partials\sidebar\menu-item.blade.php

Review the config/adminlte.php file and remove JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter::class from the list of filters, since that filter no longer exists on the new version. Take a look to release of version 3.4.0. Updating the config, or be aware of the changes it includes (if any) is also part of the update procedure. I hope that helps...

hello, I managed to get rid of the error by removing FillterSubmenu::class but my collapse submenu became not working

@rifkimaulana54 Please provide details of your updating procedure, what's the previous version and to what version are you updating. Also, be sure to read the Updating Guide and to check all the middle releases information between the two versions on Releases Page to verify if any additional task is needed.

Review the config/adminlte.php file and remove JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter::class from the list of filters, since that filter no longer exists on the new version. Take a look to release of version 3.4.0. Updating the config, or be aware of the changes it includes (if any) is also part of the update procedure. I hope that helps...

hello, I managed to get rid of the error by removing FillterSubmenu::class but my collapse submenu became not working

@rifkimaulana54 Please provide details of your updating procedure, what's the previous version and to what version are you updating. Also, be sure to read the Updating Guide and to check all the middle releases information between the two versions on Releases Page to verify if any additional task is needed.

Previously I used v2.*

Review the config/adminlte.php file and remove JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter::class from the list of filters, since that filter no longer exists on the new version. Take a look to release of version 3.4.0. Updating the config, or be aware of the changes it includes (if any) is also part of the update procedure. I hope that helps...

hello, I managed to get rid of the error by removing FillterSubmenu::class but my collapse submenu became not working

@rifkimaulana54 Please provide details of your updating procedure, what's the previous version and to what version are you updating. Also, be sure to read the Updating Guide and to check all the middle releases information between the two versions on Releases Page to verify if any additional task is needed.

Previously I used v2.* and upgraded to v3.9

Review the config/adminlte.php file and remove JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter::class from the list of filters, since that filter no longer exists on the new version. Take a look to release of version 3.4.0. Updating the config, or be aware of the changes it includes (if any) is also part of the update procedure. I hope that helps...

hello, I managed to get rid of the error by removing FillterSubmenu::class but my collapse submenu became not working

@rifkimaulana54 Please provide details of your updating procedure, what's the previous version and to what version are you updating. Also, be sure to read the Updating Guide and to check all the middle releases information between the two versions on Releases Page to verify if any additional task is needed.

Previously I used v2.* and upgraded to v3.9

Wow, that's a huge jump since v2.* was based on AdminLTE v2 and v3.* is based on AdminLTE v3. Also, v2.* versions only supported until Laravel 6 and some things from v3 may not work on Laravel 6. I'm not really sure how to proceed in your case, but for sure you will be facing a lot of issues and conflicts. I would rather start a new project with latest Laravel and AdminLTE in this case and migrate your old admin panel slowly to the new project (but this is only my opinion).

Tinjau config/adminlte.phpfile dan hapus JeroenNoten\LaravelAdminLte\Menu\Filters\SubmenuFilter::classdari daftar filter, karena filter tersebut tidak ada lagi di versi baru. Lihatlah rilis versi 3.4.0 . Memperbarui konfigurasi, atau mengetahui perubahan yang ada di dalamnya (jika ada) juga merupakan bagian dari prosedur pembaruan. Saya harap itu membantu...

halo, saya berhasil menghilangkan kesalahan dengan menghapus FillterSubmenu::class tetapi submenu ciutkan saya tidak berfungsi

@rifkimaulana54Harap berikan rincian prosedur pembaruan Anda, versi apa sebelumnya, dan ke versi apa yang Anda perbarui. Selain itu, pastikan untuk membaca Panduan Pembaruan dan memeriksa semua informasi rilis tengah antara kedua versi di Halaman Rilis untuk memverifikasi apakah ada tugas tambahan yang diperlukan.

Sebelumnya saya menggunakan v2.* dan mengupgrade ke v3.9

Wow, itu lompatan besar sejak v2.*didasarkan pada AdminLTE v2dan v3.*didasarkan pada AdminLTE v3. Selain itu, v2.*versi hanya didukung hingga Laravel 6dan beberapa hal darinya v3mungkin tidak berfungsi Laravel 6. Saya tidak begitu yakin bagaimana melanjutkan kasus Anda, tetapi yang pasti Anda akan menghadapi banyak masalah dan konflik. Saya lebih suka memulai proyek baru dengan yang terbaru Laraveldan AdminLTEdalam hal ini dan memigrasikan panel admin lama Anda secara perlahan ke proyek baru (tapi ini hanya pendapat saya).

Hmm, thank you for your response and suggestions


324 raster metadata refine

Update the raster extended metadata forms based on the file from  https://my.alfresco.com/share/s/DeXkAhEgS8GjrgTWOSpp0w

@hyi - Can you do a review of the modifications Tian has done to hs_geo_raster?
If this looks good, then simple leave a :+1: and I will merge it.

@mjstealey Yes, I reviewed the code and did not spot any issues. +1

@mjstealey Once you merge these two pull requests into develop, I will rebase my irods_file_browser branch with develop and test raster resource workflow as well to make sure things will work. Thanks!


Compression support?

We're getting the following error when pulling data from our compressed topic. Any chance there is a way to specify that we are using snappy compression?
There was an error fetching messages: the compression code is invalid or its codec has not been importedINFO[0012]                                               source=console
There was an error fetching messages: the compression code is invalid or its codec has not been importedINFO[0012]                                               source=console
There was an error fetching messages: the compression code is invalid or its codec has not been importedINFO[0013]                                               source=console
There was an error fetching messages: the compression code is invalid or its codec has not been importedINFO[0014]                                               source=console
There was an error fetching messages: the compression code is invalid or its codec has not been importedINFO[0015]                                               source=console
There was an error fetching messages: the compression code is invalid or its codec has not been importedINFO[0015]                                               source=console
There was an error fetching messages: the compression code is invalid or its codec has not been importedINFO[0015]                                               source=console

@Schachte
Snappy is not supported yet. Would you like to add it?

@Schachte
I've made a PR that adds support for compression to produce and createTopic functions. Please test it and report any issues.

I've tested the feature and merged the PR #18. Feel free to open a new issue if there's any issues.


Added toggle between local and world coordinates

In UNET, NetworkChildTransform defaults to localPosition, while in Mirror it's .position. For any situation where local and world position don't line up (for example, when calibrating an AR scene) this breaks everything.
Added a boolean toggle and a ternary operator to minimize code rewrite. By adding a bool, users can decide whether to cast to local or world coordinates on any NetworkTransform descendant, including NetworkTransform and NetworkTransformChild.

I have updated to reflect formatting changes and use of if statesments instead of lots of ternary operators (also means half as many bool checks).

we need to use local coordinates for the children at all times, it shouldn't be optional.
will modify asap.

we need to use local coordinates for the children at all times, it shouldn't be optional.
will modify asap.

Is there a reason we can't always use local coordinates all the time, period?
This PR was about making locals possible, as they are not now.  If you're ok with them being always local, say so and Shaw can do that end to end.

@MrGadget1024 thanks for the suggestion, great idea!
master uses localPosition and localRotation in all cases now.
@shawmakesmusic please test latest Mirror and let us know if that works for you :)

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


Slug noid

Closes #858

Coverage remained the same at 100.0% when pulling cdde076e25339af4e583157eb3b785bdede311dc on slug-noid into df79daf6aeb2d5d38d12cf4fd48be961e37c17c3 on geo_concerns.

Coverage decreased (-0.03%) to 99.968% when pulling d2616305953a477d946d31accf34d4efd34e5721 on slug-noid into df79daf6aeb2d5d38d12cf4fd48be961e37c17c3 on geo_concerns.

Coverage decreased (-0.03%) to 99.968% when pulling d2616305953a477d946d31accf34d4efd34e5721 on slug-noid into df79daf6aeb2d5d38d12cf4fd48be961e37c17c3 on geo_concerns.

Coverage decreased (-0.03%) to 99.968% when pulling d2616305953a477d946d31accf34d4efd34e5721 on slug-noid into df79daf6aeb2d5d38d12cf4fd48be961e37c17c3 on geo_concerns.

Coverage remained the same at 100.0% when pulling 3cfd11d3ca9e5ba112f7571432288d6a90fa5a33 on slug-noid into df79daf6aeb2d5d38d12cf4fd48be961e37c17c3 on geo_concerns.


Added Docker Version v1

Updated covid19.py to support ENV variables
Updated README.md to reflect Docker version
Added /Docker with Dockerfile and run.py
Updated run.py to use python-crontab
Added requirements.txt for easy pip install. Used pipreqs to generate.

Do not merge this yet. Possible issue with the cron job again.


Run it on Windows

Has anyone tried running the code on windows? Or I have to install a linux system? Thank you very much, please guide me.

@likethesky @Celebio @nairbv @colesbury ,Please

I am able to run inference in Windows easily. My challenge is that I get a CUDA OOM message for more than 100 frames


Images not loading in codelab app. CORS error is thrown.

Browser: Chrome
Browser version: 88.0.4324.146
Operating system: Windows 10 Pro
Operating system version:  19042.789
What steps will reproduce the problem:

Follow the codelab verbatim to step 9 and run the app.

What is the expected result? App should run and display cards with pictures for each restaurant.
What happens instead of that? App loads and cards are displayed, but pictures do not load. Console reports CORS errors.
Please provide any other information below, and attach a screenshot if possible.
Example Error Message:
Access to XMLHttpRequest at 'https://storage.googleapis.com/firestorequickstarts.appspot.com/food_11.png' from origin 'http://localhost:60020' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Oh, Flutter recently changed its web renderer to "auto" from "html", and in desktop browsers "auto" prefers "canvaskit". In canvaskit remote images (from a domain different to the one your website is hosted on) require CORS.
This can be circumvented for now using the html renderer. Please try:
flutter run -d chrome --web-renderer html

(More info about Flutter Web renderers.)
I'll keep this open so we can revisit the instructions and make a note of that small change. Thanks for reporting the issue!

Still failed to load Network Image. I have defined CORS.json as described in this website. This is my config gor CORS.json (link)
The error lines:
Failed to load network image.
Image URL: https://storage.googleapis.com/firestorequickstarts.appspot.com/food_8.png
Trying to load an image from another domain? Find answers at:
https://flutter.dev/docs/development/platform-integration/web-images

@gOzaru that should be the way to go. From what I see from your links, the image still is not being returned with the correct CORS headers.
You can verify this by looking at the "Response Headers" section of the Network panel for the request:

Or (maybe more straightforward), just attempting to fetch the image in the JS console:

Once the images start to come back with the correct Access-Control-Allow-Origin header, images will be fine.

I followed your suggestion and it seems that tutorial's images are in cloud storage where the access to there is denied.
This is the url I use in origin:
https://storage.googleapis.com/firestorequickstarts.appspot.com/
I have been doing trial and error for this tutorial since yesterday and all comes to this conclusion:
The tutorial is not made for social learning purpose as they don't teach us how to fetch images from their cloud storage. They FORGOT THAT. This tutorial is made for themselves. This is wasting my time. I am gonna seek another tutorial. Thank you for your quick support, but this is useless. They should make tutorial about how to fetch images from our own cloud storage where the images must be uploaded there, not from their cloud storage which is denied. This logic of thinking is wrong in teaching tutorial.

@gOzaru you can always try --web-renderer html so you don't encounter the CORS issue with images, as suggested above.

I've tried working through friendlyeats twice in the last two days. They still have this issue even though it was reported more than two months ago.  The commit ID of code is 6f7603c33f2ef0f7e37ff1730991e1982327aa6f; I'm not sure how to identify the instructions webpage (although both have the same date on page 0).   More generally, over the last week, I've tried running at least four different codelab examples and all but one couldn't be completed.  Very frustrating to newbies.  [Especially newbies who thought that Flutter was the way to go to develop a simple app for a friend's school project :-(. ]
Is there a way to sort codelab projects by "last tested date"?
Any suggestions for a more appropriate place to post comments like this?

@ditman said:

PS: Same thing a bunch of steps down, when building for web: flutter build --web-renderer html needs to be added to the build command!

I tried deploying using this build command (looks like your comment omitted the 'web'):
$ flutter build web --web-renderer html
When I deployed the page this way the app page came up as a blank page.  Depending upon which responses I gave to the 'init hosting' questions, I also sometimes saw an opening page that said "Welcome -- Firebase Hosting Setup Complete".  All my build steps are documented in a response to issue https://github.com/FirebaseExtended/codelab-friendlyeats-flutter/issues/9.

this is how it works:
flutter run -d chrome --web-renderer html

@ditman what would be the solution if we need canvaskit?

@omartinma ensure that your image files are returned from the CDN with the appropriate CORS Response Headers for your app, at the bare minimum: Access-Control-Allow-Origin, as described in the error message.
For example, this is how'd you configure a GCP storage bucket to add the CORS response headers to it:
https://cloud.google.com/storage/docs/configuring-cors#gsutil
And this is how you'd configure an S3 bucket:
https://docs.aws.amazon.com/AmazonS3/latest/userguide/enabling-cors-examples.html (I think, never tried this one! :P)

omartinma If you really need the canvaskit, the below solution works for me for the S3 bucket. Please refer to the steps in the below link and also to have it secure check given an example of mine as mentioned below.
Steps to follow: https://stackoverflow.com/a/73807573
A better JSON file to make sure your images are secure and not available publically:
 [
      {
        "AllowedHeaders": ["*"],
        "AllowedMethods": ["GET", "POST"],
        "AllowedOrigins": ["https://foo.bar.org"],
        "ExposeHeaders": [],
        "MaxAgeSeconds": 3000
      }
    ]

Into 'AllowedOrigins' set your hosting URL, and now it will work on that URL only, still, it will not load on your localhost, to make it runnable into your localhost set "*" instead of that URL into 'AllowedOrigins'.

How are you people still finding this repo? The codelab should have been archived a while ago :)

How are you people still finding this repo? The codelab should have been archived a while ago :)

It's one of the first to show up on google when searching for the cors error when using canvaskit

This should be the main tracking issue:

https://github.com/flutter/flutter/issues/149843

The codelab itself would need a big rewrite; right now its code is severely outdated!


Add channel structs

Not ready yet.
Adds channel structures which connect to a BAPS3 server (listd, playd) and hold state. Each channel has a Run() function that should be called as a goroutine

seems broadly legitimate


DOC: Reference guide for version 1.7.3 seems to be missing

The site summarizing the lists of documentations links to the reference guides for the development version (1.9.0.dev0+1221.b9fc49b) and for version 1.7.1.
Is this intentional?

Thank you @christian-cahig. Indeed it's missing. We have a few things we are trying to rework regarding the documentation. Everything is getting migrated slowly to scipy.org. There are also some issues with the 1.7 documentation that should be resolved for 1.8.

@tupui I see. Thank you for this information. For the meantime, I’ll just stick with 1.7.1; it will be sufficient for my use case.

FYI, if 1.7.1 works for you I still suggest you get 1.7.3. We are using semantic versioning so 1.7.x only fix bugs that we really think should go in. But the stack does not change so for you it would be 100% transparent.

@tupui that's great! Thank you very much!


Rename .blueprint extension to .rbl

What
Three letters is common. You can read it as "Rerun Blueprint Layout" or maybe "Rerun BLuprint". Can be pronounced as "rebel"
Checklist

[x] I have read and agree to Contributor Guide and the Code of Conduct
[x] I've included a screenshot or gif (if applicable)
[x] I have tested the web demo (if applicable):

Using newly built examples: app.rerun.io
Using examples from latest main build: app.rerun.io
Using full set of examples from nightly build: app.rerun.io

[x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
[x] If applicable, add a new check to the release checklist!

PR Build Summary
Docs preview
Examples preview
Recent benchmark results
Wasm size tracking

My .blueprint files in that folder sum up to less than one 1MB. Barely worth the effort to clean up


Add Parallel WaveGAN generator

✨ Description
[Please describe the background, purpose, changes made, and how to test this PR]
🚧 Related Issues
[List the issue numbers related to this PR]
👨💻 Changes Proposed

[ ] change1
[ ] ...

🧑🤝🧑 Who Can Review?
[Please use the '@' symbol to mention any community member who is free to review the PR once the tests have passed. Feel free to tag members or contributors who might be interested in your PR.]
🛠 TODO

[ ] task1
[ ] ...

✅ Checklist

[ ]  Code has been reviewed
[ ]  Code complies with the project's code standards and best practices
[ ]  Code has passed all tests
[ ]  Code does not affect the normal use of existing features
[ ]  Code has been commented properly
[ ]  Documentation has been updated (if applicable)
[ ]  Demo/checkpoint has been attached (if applicable)

Please refine and enhance the content related to PR, such as Description, Changes Proposed. And also make sure the code is formatted by 'black' formatter, as described in here.


Why use only a single main.rs file？

I noticed that there are too many modules and code in main.rs. Why not place different modules in separate files? Wouldn’t that improve maintainability? Can you tell me how you considered this?

I just prefer working with one large file. I think having a lot of smaller files makes a program harder to understand. This is just a personal preference, i have no data to back it up.

Thanks for your explanation😀


Support for UDP source address control

-- Modified UDPEndPoint and IPEndPointBasis to allow the source address for an outbound packet to be specified by the sender.  Both classes now feature a new SendMsg() method which takes an IPPacketInfo structure containing the destination information (address and port) and, optionally, a source address.  (The existing SendTo() methods on UDPEndPoint have been retained for API compatibility).
When specified, the source address overrides the normal IP source address selection process performed by the network stack.  On sockets based systems, this feature works by passing a IP_PKTINFO/IPV6_PKTINFO "control message" to the kernel.  On LwIP, source address selection is overridden by temporarily rebinding the local address of the UDP PCB.
-- Adjusted RawEndPoint to work with the above changes to IPEndPointBasis and added a SendMsg() method to keep the interface similar to UDPEndPoint (although source address control is not needed for raw end points).
-- Moved method documentation into .cpp files to reduce clutter in class definitions.

Codecov Report

Merging #381 into master will decrease coverage by <.01%.
The diff coverage is 44.44%.

@@            Coverage Diff             @@
##           master     #381      +/-   ##
==========================================
- Coverage   54.48%   54.48%   -0.01%
==========================================
  Files         341      341
  Lines       58417    58435      +18
==========================================
+ Hits        31829    31837       +8
- Misses      26588    26598      +10

Impacted Files
Coverage Δ

src/inet/UDPEndPoint.cpp
42.93% <42.85%> (+0.31%)
:arrow_up:

src/inet/IPEndPointBasis.cpp
26.72% <45.45%> (+0.06%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d42cdfa...8440c92. Read the comment docs.

What unit / functional tests can / should be added to ensure this behaves as intended and that no future regressions are introduced?

There are no functional tests for UDPEndPoint in the current test set.   We should rectify this, but I don't have the bandwidth to take this on in this context.  This feature will be used, however, in an upcoming change to Weave for which I do plan to add tests.


Cache architecture of the  CVA5 processor?

Hello,
We are working on integrating two cores of your processor into one multiprocessor system.
We have some questions.
Is your core include caches that are write-through or write-back?

The data cache is write-through.  For multi-core coherency support, it has support for external invalidations if the config option: USE_EXTERNAL_INVALIDATIONS is enabled for the data cache.  The interface for which (l1_arbiter_return_interface) is defined in: external_intervaces.sv

Thank you for your response
On Thu, Mar 9, 2023 at 10:09 PM Eric Matthews @.***>
wrote:

The data cache is write-through. For multi-core coherency support, it has
support for external invalidations if the config option:
USE_EXTERNAL_INVALIDATIONS is enabled for the data cache. The interface for
which (l1_arbiter_return_interface) is defined in: external_intervaces.sv
—
Reply to this email directly, view it on GitHub
https://github.com/openhwgroup/cva5/issues/10#issuecomment-1462702872,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACBKJJOHNALJMNKRDX6KCELW3I2I3ANCNFSM6AAAAAAVNDUQ2E
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi @Mohamed1984.  Does this answer your question?  If so, please close the issue.  Thanks!


re-organizes files

Describe your changes
The file organization got messy so I moved things around and remained a few things, no other changes.
Issue number
Closes #X
Checklist before requesting a review

[ ] Performed a self-review of my code
[ ] Formatted my code with pkgmt format
[ ] Added tests (when necessary).
[ ] Added docstring documentation and update the changelog (when needed)

@tonykploomber @neelasha23 please review

@neelasha23 good catch, I'll add this in my next PR


Execution Environment - whatprovides

It would be very useful to find what execution environment provides given collections
For example
ansible-navigator ee whatprovides community.vmware

Should be covered by #176

Please see #252

try our :ee-details and let us know if you see anything else that could/should be added to it


Constant frame flickering after window is maximized/minimized

Godot 2.1.1, Windows 10, 64 bits
nVidia 940M
When maximize or minimize the game window with a double-click or drag to top, 90% of the time the game starts to violently jitter, as if double-buffering was not working correctly. With a moving camera the effect becomes almost epileptic.
The only way to get rid of it is to resize the window multiple times until it eventually goes away next time it is maximized. It happens with any Godot game and is noticeable when anything moves on screen.
It's been a long time around, I mentionned the problem in another issue https://github.com/godotengine/godot/issues/2043#issuecomment-254009898 but I felt it was a different matter than the one discussed in the beginning, so I made a new issue.
Here is a video showing the jittering, here happening on minimize:
http://zylannprods.fr/lab/godot/videos/stuttering_motion_example.mp4
I am surprised it wasn't mentionned before, maybe I'm the only guy who makes a resizeable game :p

(Added "needs testing" since I don't know if it happens on 2.2-legacy and 3.0-alpha)

Avast finally let me run 2.1.2, and the issue is still present.

I didn't see this bug recently (but I also didn't work in Godot 2 recently). I don't think I ever saw this in Godot 3.

Closing as fixed then.


How to handle received information on flow messages?

Would you please add an example on how to handle the responses for a flow message in the WhatsApp Notification Controller?
I created my own flow on the whatsapp developers site but I am not sure in how to handle the responses that the users send when they fill the flow

Hi, I would add an example to handle a flow message received responses to the controller still looking for some time to review the flow message webhook documentation.

Ok, thanks!
Fer Galván
Intelligent Chatbots
El 13 ago 2024, a la(s) 6:27 a.m., Gabriel Odero @.***> escribió:

Hi, I would add an example to handle a flow message received responses to the controller still looking for some time to review the flow message webhook documentation.
—
Reply to this email directly, view it on GitHubhttps://github.com/gabrieldwight/Whatsapp-Business-Cloud-Api-Net/issues/99#issuecomment-2286132757, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEV6MGBDCBIR5CHY72QRIUTZRH3TFAVCNFSM6AAAAABMM76GVGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBWGEZTENZVG4.
You are receiving this because you authored the thread.Message ID: @.***>


How to set second proxy in v3.0?

问题描述(必要)
In v2.54, we could set a second proxy.
But I don't find second proxy setting in v3.0.
How to set it?
版本号(必要) 3.0
操作系统(必要) Win 7

Because 3 is just beta, we haven't added this function yet. You can wait for the official version to go online.

Already supported set second proxy in V3.03+.


SAA-1807 refactor packages - starting point

Codecov Report
Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 84.15%. Comparing base (772b5fd) to head (293e407).

Files
Patch %
Lines

...iesmanagementapi/service/MigrateActivityService.kt
0.00%
0 Missing and 1 partial :warning:

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #939   +/-   ##
=========================================
  Coverage     84.14%   84.15%
  Complexity     3649     3649
=========================================
  Files           377      377
  Lines         12075    12078    +3
  Branches       1057     1057
=========================================
+ Hits          10161    10164    +3
  Misses         1435     1435
  Partials        479      479

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Use executor id as int type in the YARN scheduler

These fixes the YARN scheduler and is related to container id type conversion, see #1295 and #1329.

👍

👍


broken link (svelte)

https://github.com/PuruVJ/neodrag/blob/main/tree/main/packages/svelte#readme

Can you tell where you found this?

hey there sorry about that!, it's here: https://github.com/PuruVJ/neodrag
all 4 of these links are 404's

Fixed


Draft: Remove deprecated jump threshold from Cartesian plan

Since https://github.com/moveit/moveit2/pull/2916, we deprecate jump_threshold.
This will eventually start giving us warnings. This PR is in draft until then. Ideally, we don't want to use deprecated code in the workshop.

This function won't be deprecated in the workshop Docker image. Closing.


Flag to write to single file

Similar to #4, embracing cloud-native and better horizontal scaling when processing by splitting the outputs


[FIX] fix for netapp ontap filter for host field

Closes #1725

:tada: This PR is included in version 2.32.7 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Make the shell fixture properly terminate the shell process

Closes #346

Successful PR Checklist:

[ ] Tests

[x] (not applicable?)

[ ] Documentation

[x] (not applicable?)

[x] Had a good time contributing?

This is the build failure with Python 3.6:
=================================== FAILURES ===================================
___________________________________ test_cli ___________________________________

entrypoint = <function entrypoint.<locals>.ep at 0x7fcf7ecb98c8>

    def test_cli(entrypoint):
        result = entrypoint()
>       assert result.output.startswith("Usage:")
E       AssertionError: assert False
E        +  where False = <built-in method startswith of str object at 0x560937e2a330>('Usage:')
E        +    where <built-in method startswith of str object at 0x560937e2a330> = 'Exception ignored in: <bound method BaseEventLoop.__del__ of <_UnixSelectorEventLoop running=False closed=False debug...  Administration shell for procrastinate.\n  worker        Launch a worker, listening on the given queues (or all...\n'.startswith
E        +      where 'Exception ignored in: <bound method BaseEventLoop.__del__ of <_UnixSelectorEventLoop running=False closed=False debug...  Administration shell for procrastinate.\n  worker        Launch a worker, listening on the given queues (or all...\n' = <Result okay>.output

tests/integration/test_cli.py:22: AssertionError

My suspicion is that it's related to the exception filter we added with https://github.com/peopledoc/procrastinate/pull/338.

@ewjoachim I confirm that the build passes with the filterwarnings configuration removed.

and does it pass with you fix, without removing the filters ?

The error messages:
----------------------------- Captured stdout call -----------------------------
Exception ignored in: <bound method BaseEventLoop.__del__ of <_UnixSelectorEventLoop running=False closed=False debug=False>>
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.6.12/x64/lib/python3.6/asyncio/base_events.py", line 531, in __del__
    source=self)
ResourceWarning: unclosed event loop <_UnixSelectorEventLoop running=False closed=False debug=False>
Exception ignored in: <socket.socket fd=10, family=AddressFamily.AF_UNIX, type=2049, proto=0>
ResourceWarning: unclosed <socket.socket fd=10, family=AddressFamily.AF_UNIX, type=2049, proto=0>
Exception ignored in: <socket.socket fd=11, family=AddressFamily.AF_UNIX, type=2049, proto=0>
ResourceWarning: unclosed <socket.socket fd=11, family=AddressFamily.AF_UNIX, type=2049, proto=0>
Usage: cli [OPTIONS] COMMAND [ARGS]...


Build index image with latest NHC + SNR for merged PRs to main

Add build step for building and pushing versioned NHC + SNR + index images.
Similar for NHC: https://github.com/medik8s/node-healthcheck-operator/pull/107
ECOPROJECT-877

/lgtm


src/commands: add migrate apply

Need rebase before merge

atlas migrate lint on sqlite-destructive

Status
Step
Result

                2 new migration files detected

                ERD and visual diff generated

View Visualization

                Analyze<PHONE_NUMBER>2634_init.sql

                Analyze<PHONE_NUMBER>2914.sql
                 Error was found

                destructive changes detected

            Read the full linting report on Atlas Cloud

atlas migrate lint on migrations

Status
Step
Result

                0 new migration files detected

                ERD and visual diff generated

View Visualization

                No issues found

View Report

            Read the full linting report on Atlas Cloud


OpenAI Organization ID not working

Issue
Aider appears to not work when I pass an OpenAI organization ID.
I can confirm that my OpenAI key and Org ID are correct since other AI tools work correctly with it.
I've tried multiple GPT models, but they all give me the same error.
Command:
aider --openai-organization-id {REDACTED} --openai-api-key {REDACTED} --message "what is the capital of France?" --model openai/gpt-4o

Output:
Aider v0.60.0
Main model: openai/gpt-4o with diff edit format
Weak model: gpt-4o-mini
Git repo: .git with 116 files
Repo-map: using 1024 tokens, auto refresh
Use /help <question> for help, run "aider --help" to see cmd line args

Unexpected error: litellm.NotFoundError: OpenAIException - Error code: 404 - {'error': {'message': 'The model `gpt-4o` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code':
'model_not_found'}}
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 907, in completion
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 784, in completion
    return self.streaming(
           ^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 1045, in streaming
    headers, response = self.make_sync_openai_chat_completion_request(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 683, in make_sync_openai_chat_completion_request
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 672, in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_legacy_response.py", line 353, in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_utils/_utils.py", line 274, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/resources/chat/completions.py", line 704, in create
    return self._post(
           ^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_base_client.py", line 1268, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_base_client.py", line 945, in request
    return self._request(
           ^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_base_client.py", line 1049, in _request
    raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model `gpt-4o` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/main.py", line 1419, in completion
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/main.py", line 1392, in completion
    response = openai_chat_completions.completion(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 914, in completion
    raise OpenAIError(
litellm.llms.OpenAI.openai.OpenAIError: Error code: 404 - {'error': {'message': 'The model `gpt-4o` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/aider/coders/base_coder.py", line 1129, in send_message
    yield from self.send(messages, functions=self.functions)
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/aider/coders/base_coder.py", line 1414, in send
    hash_object, completion = send_completion(
                              ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/aider/sendchat.py", line 85, in send_completion
    res = litellm.completion(**kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 1086, in wrapper
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 974, in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/main.py", line 2847, in completion
    raise exception_type(
          ^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 8194, in exception_type
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 6432, in exception_type
    raise NotFoundError(
litellm.exceptions.NotFoundError: litellm.NotFoundError: OpenAIException - Error code: 404 - {'error': {'message': 'The model `gpt-4o` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code':
'model_not_found'}}

Version and model info
Aider version: 0.60.0
Model: GPT-4o
OS version: MacOS 14.6.1
Python version: 3.12
Git version: 2.47.0

Thanks for trying aider and filing this issue.
The error just says your key doesn't have access to gpt-4o. Not sure how you can conclude that the org id is not working?

I can verify it doesn't work because when I call the OpenAPI directly using the same parameters, it works:
curl https://api.openai.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer {REDACTED}" -H "OpenAI-Organization: {REDACTED}" -d '{"model": "gpt-4o-2024-08-06", "messages": [{"role": "user", "content": "What is the capital of France?"}]}'
{
  "id": "chatcmpl-AOq9dztHFEcL8zy7g8OEgtntYxIP2",
  "object": "chat.completion",
  "created":<PHONE_NUMBER>,
  "model": "gpt-4o-2024-08-06",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "The capital of France is Paris.",
        "refusal": null
      },
      "logprobs": null,
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 14,
    "completion_tokens": 7,
    "total_tokens": 21,
    "prompt_tokens_details": {
      "cached_tokens": 0
    },
    "completion_tokens_details": {
      "reasoning_tokens": 0
    }
  },
  "system_fingerprint": "fp_159d8341cc"

That response used gpt-4o-2024-08-06 successfully. If I try with aider with the same model and parameters it breaks:
aider --openai-organization-id {REDACTED} --openai-api-key {REDACTED}  --message "what is the capital of paris?" --model openai/gpt-4o-2024-08-06
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Aider v0.60.0
Main model: openai/gpt-4o-2024-08-06 with diff edit format
Weak model: gpt-4o-mini
Git repo: .git with 116 files
Repo-map: using 1024 tokens, auto refresh
Use /help <question> for help, run "aider --help" to see cmd line args

Unexpected error: litellm.NotFoundError: OpenAIException - Error code: 404 - {'error': {'message': 'The model `gpt-4o-2024-08-06` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code':
'model_not_found'}}
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 907, in completion
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 784, in completion
    return self.streaming(
           ^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 1045, in streaming
    headers, response = self.make_sync_openai_chat_completion_request(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 683, in make_sync_openai_chat_completion_request
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 672, in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_legacy_response.py", line 353, in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_utils/_utils.py", line 274, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/resources/chat/completions.py", line 704, in create
    return self._post(
           ^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_base_client.py", line 1268, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_base_client.py", line 945, in request
    return self._request(
           ^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_base_client.py", line 1049, in _request
    raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model `gpt-4o-2024-08-06` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/main.py", line 1419, in completion
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/main.py", line 1392, in completion
    response = openai_chat_completions.completion(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 914, in completion
    raise OpenAIError(
litellm.llms.OpenAI.openai.OpenAIError: Error code: 404 - {'error': {'message': 'The model `gpt-4o-2024-08-06` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/aider/coders/base_coder.py", line 1129, in send_message
    yield from self.send(messages, functions=self.functions)
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/aider/coders/base_coder.py", line 1414, in send
    hash_object, completion = send_completion(
                              ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/aider/sendchat.py", line 85, in send_completion
    res = litellm.completion(**kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 1086, in wrapper
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 974, in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/main.py", line 2847, in completion
    raise exception_type(
          ^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 8194, in exception_type
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 6432, in exception_type
    raise NotFoundError(
litellm.exceptions.NotFoundError: litellm.NotFoundError: OpenAIException - Error code: 404 - {'error': {'message': 'The model `gpt-4o-2024-08-06` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param':
None, 'code': 'model_not_found'}}

Can you add --verbose and double check which API key aider has in effect? It should be whatever you provided with --openai-api-key, but worth confirming.

I can verify it's the same.
aider --verbose --openai-organization-id {REDACTED} --openai-api-key {REDACTED} --message "what is the capital of paris?" --model openai/gpt-4o-2024-08-06
Config files search order, if no --config:
  - /Users/akelley/Library/Mobile Documents/com~apple~CloudDocs/Repos/SSHerlock/.aider.conf.yml
  - /Users/akelley/.aider.conf.yml
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Too soon to check version: 0.2 hours
Command Line Args:   --verbose --openai-organization-id {REDACTED} --openai-api-key ...LJDu --message what is the capital of paris? --model openai/gpt-4o-2024-08-06
Defaults:
  --model-settings-file:.aider.model.settings.yml
  --model-metadata-file:.aider.model.metadata.json
  --env-file:        /Users/akelley/Library/Mobile Documents/com~apple~CloudDocs/Repos/SSHerlock/.env
  --cache-keepalive-pings:0
  --map-refresh:     auto
  --map-multiplier-no-files:2
  --input-history-file:/Users/akelley/Library/Mobile Documents/com~apple~CloudDocs/Repos/SSHerlock/.aider.input.history
  --chat-history-file:/Users/akelley/Library/Mobile Documents/com~apple~CloudDocs/Repos/SSHerlock/.aider.chat.history.md
  --user-input-color:#00cc00
  --tool-error-color:#FF2222
  --tool-warning-color:#FFA500
  --assistant-output-color:#0088ff
  --code-theme:      default
  --aiderignore:     /Users/akelley/Library/Mobile Documents/com~apple~CloudDocs/Repos/SSHerlock/.aiderignore
  --lint-cmd:        []
  --test-cmd:        []
  --encoding:        utf-8
  --voice-format:    wav
  --voice-language:  en

Option settings:
  - aiderignore: /Users/akelley/Library/Mobile Documents/com~apple~CloudDocs/Repos/SSHerlock/.aiderignore
  - anthropic_api_key: None
  - apply: None
  - assistant_output_color: #0088ff
  - attribute_author: True
  - attribute_commit_message_author: False
  - attribute_commit_message_committer: False
  - attribute_committer: True
  - auto_commits: True
  - auto_lint: True
  - auto_test: False
  - cache_keepalive_pings: 0
  - cache_prompts: False
  - chat_history_file: /Users/akelley/Library/Mobile Documents/com~apple~CloudDocs/Repos/SSHerlock/.aider.chat.history.md
  - chat_language: None
  - check_update: True
  - code_theme: default
  - commit: False
  - commit_prompt: None
  - completion_menu_bg_color: None
  - completion_menu_color: None
  - completion_menu_current_bg_color: None
  - completion_menu_current_color: None
  - config: None
  - dark_mode: False
  - dirty_commits: True
  - dry_run: False
  - edit_format: None
  - editor_edit_format: None
  - editor_model: None
  - encoding: utf-8
  - env_file: /Users/akelley/Library/Mobile Documents/com~apple~CloudDocs/Repos/SSHerlock/.env
  - exit: False
  - file: None
  - files: []
  - git: True
  - gitignore: True
  - gui: False
  - input_history_file: /Users/akelley/Library/Mobile Documents/com~apple~CloudDocs/Repos/SSHerlock/.aider.input.history
  - install_main_branch: False
  - just_check_update: False
  - light_mode: False
  - lint: False
  - lint_cmd: []
  - list_models: None
  - llm_history_file: None
  - map_multiplier_no_files: 2
  - map_refresh: auto
  - map_tokens: None
  - max_chat_history_tokens: None
  - message: what is the capital of paris?
  - message_file: None
  - model: openai/gpt-4o-2024-08-06
  - model_metadata_file: .aider.model.metadata.json
  - model_settings_file: .aider.model.settings.yml
  - openai_api_base: None
  - openai_api_deployment_id: None
  - openai_api_key: ...LJDu
  - openai_api_type: None
  - openai_api_version: None
  - openai_organization_id: {REDACTED}
  - pretty: True
  - read: None
  - restore_chat_history: False
  - show_diffs: False
  - show_model_warnings: True
  - show_prompts: False
  - show_repo_map: False
  - skip_sanity_check_repo: False
  - stream: True
  - subtree_only: False
  - suggest_shell_commands: True
  - test: False
  - test_cmd: []
  - tool_error_color: #FF2222
  - tool_output_color: None
  - tool_warning_color: #FFA500
  - upgrade: False
  - user_input_color: #00cc00
  - verbose: True
  - verify_ssl: True
  - vim: False
  - voice_format: wav
  - voice_language: en
  - weak_model: None
  - yes_always: None

Checking imports for version 0.60.0 and executable /opt/homebrew/Cellar/aider/0.60.0/libexec/bin/python
Installs file: /Users/akelley/.aider/installs.json
Installs file exists and loaded
Not first run, loading imports in background thread
No model settings files loaded
Searched for model settings files:
  - /Users/akelley/.aider.model.settings.yml
  - /Users/akelley/Library/Mobile Documents/com~apple~CloudDocs/Repos/SSHerlock/.aider.model.settings.yml
Loaded model metadata from:
  - /opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/aider/resources/model-metadata.json
Model info:
{
    "key": "gpt-4o-2024-08-06",
    "max_tokens": 16384,
    "max_input_tokens": 128000,
    "max_output_tokens": 16384,
    "input_cost_per_token": 2.5e-06,
    "cache_creation_input_token_cost": null,
    "cache_read_input_token_cost": 1.25e-06,
    "input_cost_per_character": null,
    "input_cost_per_token_above_128k_tokens": null,
    "output_cost_per_token": 1e-05,
    "output_cost_per_character": null,
    "output_cost_per_token_above_128k_tokens": null,
    "output_cost_per_character_above_128k_tokens": null,
    "output_vector_size": null,
    "litellm_provider": "openai",
    "mode": "chat",
    "supported_openai_params": [
        "frequency_penalty",
        "logit_bias",
        "logprobs",
        "top_logprobs",
        "max_tokens",
        "max_completion_tokens",
        "n",
        "presence_penalty",
        "seed",
        "stop",
        "stream",
        "stream_options",
        "temperature",
        "top_p",
        "tools",
        "tool_choice",
        "function_call",
        "functions",
        "max_retries",
        "extra_headers",
        "parallel_tool_calls",
        "response_format"
    ],
    "supports_system_messages": null,
    "supports_response_schema": null,
    "supports_vision": true,
    "supports_function_calling": true,
    "supports_assistant_prefill": false
}
RepoMap initialized with map_mul_no_files: 2
Aider v0.60.0
Main model: openai/gpt-4o-2024-08-06 with diff edit format
Weak model: gpt-4o-mini
Git repo: .git with 116 files
Repo-map: using 1024 tokens, auto refresh
Use /help <question> for help, run "aider --help" to see cmd line args

Repo-map: 1.7 k-tokens
Repo-map: 1.7 k-tokens

SYSTEM Act as an expert software developer.
SYSTEM Always use best practices when coding.
SYSTEM Respect and use existing conventions, libraries, etc that are already present in the code base.
SYSTEM You are diligent and tireless!

SYSTEM You always COMPLETELY IMPLEMENT the needed code!
SYSTEM
SYSTEM Take requests for changes to the supplied code.
SYSTEM If the request is ambiguous, ask questions.
SYSTEM
SYSTEM Always reply to the user in the same language they are using.
SYSTEM
SYSTEM Once you understand the request you MUST:
SYSTEM
SYSTEM 1. Decide if you need to propose *SEARCH/REPLACE* edits to any files that haven't been added to the chat. You can create new files without asking!
SYSTEM
SYSTEM But if you need to propose edits to existing files not already added to the chat, you *MUST* tell the user their full path names and ask them to *add the files to the chat*.
SYSTEM End your reply and wait for their approval.
SYSTEM You can keep asking if you then decide you need to edit more files.
SYSTEM
SYSTEM 2. Think step-by-step and explain the needed changes in a few short sentences.
SYSTEM
SYSTEM 3. Describe each change with a *SEARCH/REPLACE block* per the examples below.
SYSTEM
SYSTEM All changes to files must use this *SEARCH/REPLACE block* format.
SYSTEM ONLY EVER RETURN CODE IN A *SEARCH/REPLACE BLOCK*!
SYSTEM
SYSTEM 4. *Concisely* suggest any shell commands the user might want to run in ```bash blocks.
SYSTEM
SYSTEM Just suggest shell commands this way, not example code.
SYSTEM Only suggest complete shell commands that are ready to execute, without placeholders.
SYSTEM Only suggest at most a few shell commands at a time, not more than 1-3.
SYSTEM
SYSTEM Use the appropriate shell based on the user's system info:
SYSTEM - Platform: macOS-14.6.1-arm64-arm-64bit
SYSTEM - Shell: SHELL=/bin/zsh
SYSTEM - Language: en_US
SYSTEM - Current date: 2024-11-01
SYSTEM - The user is operating inside a git repository
SYSTEM
SYSTEM Examples of when to suggest shell commands:
SYSTEM
SYSTEM - If you changed a self-contained html file, suggest an OS-appropriate command to open a browser to view it to see the updated content.
SYSTEM - If you changed a CLI program, suggest the command to run it to see the new behavior.
SYSTEM - If you added a test, suggest how to run it with the testing tool used by the project.
SYSTEM - Suggest OS-appropriate commands to delete or rename files/directories, or other file system operations.
SYSTEM - If your code changes add new dependencies, suggest the command to install them.
SYSTEM - Etc.
SYSTEM
SYSTEM
SYSTEM # *SEARCH/REPLACE block* Rules:
SYSTEM
SYSTEM Every *SEARCH/REPLACE block* must use this format:
SYSTEM 1. The *FULL* file path alone on a line, verbatim. No bold asterisks, no quotes around it, no escaping of characters, etc.
SYSTEM 2. The opening fence and code language, eg: ```python
SYSTEM 3. The start of search block: <<<<<<< SEARCH
SYSTEM 4. A contiguous chunk of lines to search for in the existing source code
SYSTEM 5. The dividing line: =======
SYSTEM 6. The lines to replace into the source code
SYSTEM 7. The end of the replace block: >>>>>>> REPLACE
SYSTEM 8. The closing fence: ```
SYSTEM
SYSTEM Use the *FULL* file path, as shown to you by the user.
SYSTEM
SYSTEM Every *SEARCH* section must *EXACTLY MATCH* the existing file content, character for character, including all comments, docstrings, etc.
SYSTEM If the file contains code or other data wrapped/escaped in json/xml/quotes or other containers, you need to propose edits to the literal contents of the file, including the container markup.
SYSTEM
SYSTEM *SEARCH/REPLACE* blocks will *only* replace the first match occurrence.
SYSTEM Including multiple unique *SEARCH/REPLACE* blocks if needed.
SYSTEM Include enough lines in each SEARCH section to uniquely match each set of lines that need to change.
SYSTEM
SYSTEM Keep *SEARCH/REPLACE* blocks concise.
SYSTEM Break large *SEARCH/REPLACE* blocks into a series of smaller blocks that each change a small portion of the file.
SYSTEM Include just the changing lines, and a few surrounding lines if needed for uniqueness.
SYSTEM Do not include long runs of unchanging lines in *SEARCH/REPLACE* blocks.
SYSTEM
SYSTEM Only create *SEARCH/REPLACE* blocks for files that the user has added to the chat!
SYSTEM
SYSTEM To move code within a file, use 2 *SEARCH/REPLACE* blocks: 1 to delete it from its current location, 1 to insert it in the new location.
SYSTEM
SYSTEM Pay attention to which filenames the user wants you to edit, especially if they are asking you to create a new file.
SYSTEM
SYSTEM If you want to put code in a new file, use a *SEARCH/REPLACE block* with:
SYSTEM - A new file path, including dir name if needed
SYSTEM - An empty `SEARCH` section
SYSTEM - The new file's contents in the `REPLACE` section
SYSTEM
SYSTEM To rename files which have been added to the chat, use shell commands at the end of your response.
SYSTEM
SYSTEM You are diligent and tireless!

SYSTEM You always COMPLETELY IMPLEMENT the needed code!
SYSTEM
SYSTEM ONLY EVER RETURN CODE IN A *SEARCH/REPLACE BLOCK*!
SYSTEM
SYSTEM Examples of when to suggest shell commands:
SYSTEM
SYSTEM - If you changed a self-contained html file, suggest an OS-appropriate command to open a browser to view it to see the updated content.
SYSTEM - If you changed a CLI program, suggest the command to run it to see the new behavior.
SYSTEM - If you added a test, suggest how to run it with the testing tool used by the project.
SYSTEM - Suggest OS-appropriate commands to delete or rename files/directories, or other file system operations.
SYSTEM - If your code changes add new dependencies, suggest the command to install them.
SYSTEM - Etc.
SYSTEM

USER Change get_factorial() to use math.factorial

ASSISTANT To make this change we need to modify `mathweb/flask/app.py` to:
ASSISTANT
ASSISTANT 1. Import the math package.
ASSISTANT 2. Remove the existing factorial() function.
ASSISTANT 3. Update get_factorial() to call math.factorial instead.
ASSISTANT
ASSISTANT Here are the *SEARCH/REPLACE* blocks:
ASSISTANT
ASSISTANT mathweb/flask/app.py
ASSISTANT ```python
ASSISTANT <<<<<<< SEARCH
ASSISTANT from flask import Flask
ASSISTANT =======
ASSISTANT import math
ASSISTANT from flask import Flask
ASSISTANT >>>>>>> REPLACE
ASSISTANT ```
ASSISTANT
ASSISTANT mathweb/flask/app.py
ASSISTANT ```python
ASSISTANT <<<<<<< SEARCH
ASSISTANT def factorial(n):
ASSISTANT     "compute factorial"
ASSISTANT
ASSISTANT     if n == 0:
ASSISTANT         return 1
ASSISTANT     else:
ASSISTANT         return n * factorial(n-1)
ASSISTANT
ASSISTANT =======
ASSISTANT >>>>>>> REPLACE
ASSISTANT ```
ASSISTANT
ASSISTANT mathweb/flask/app.py
ASSISTANT ```python
ASSISTANT <<<<<<< SEARCH
ASSISTANT     return str(factorial(n))
ASSISTANT =======
ASSISTANT     return str(math.factorial(n))
ASSISTANT >>>>>>> REPLACE
ASSISTANT ```

USER Refactor hello() into its own file.

ASSISTANT To make this change we need to modify `main.py` and make a new file `hello.py`:
ASSISTANT
ASSISTANT 1. Make a new hello.py file with hello() in it.
ASSISTANT 2. Remove hello() from main.py and replace it with an import.
ASSISTANT
ASSISTANT Here are the *SEARCH/REPLACE* blocks:
ASSISTANT
ASSISTANT hello.py
ASSISTANT ```python
ASSISTANT <<<<<<< SEARCH
ASSISTANT =======
ASSISTANT def hello():
ASSISTANT     "print a greeting"
ASSISTANT
ASSISTANT     print("hello")
ASSISTANT >>>>>>> REPLACE
ASSISTANT ```
ASSISTANT
ASSISTANT main.py
ASSISTANT ```python
ASSISTANT <<<<<<< SEARCH
ASSISTANT def hello():
ASSISTANT     "print a greeting"
ASSISTANT
ASSISTANT     print("hello")
ASSISTANT =======
ASSISTANT from hello import hello
ASSISTANT >>>>>>> REPLACE
ASSISTANT ```

USER I switched to a new code base. Please don't consider the above files or try to edit them any longer.

ASSISTANT Ok.

USER Here are summaries of some files present in my git repository.
USER Do not propose changes to these files, treat them as *read-only*.
USER If you need to edit any of these files, ask me to *add them to the chat* first.
USER
USER .gitignore
USER
USER README.md
USER
USER ansible/group_vars/all/bootstrap.yml
USER
USER ansible/group_vars/ubuntu_server/packages_2_micro.yml
USER
USER ansible/roles/ssherlock/meta/main.yml
USER
USER ansible/roles/ubuntu_server/defaults/main/cronjobs.yml
USER
USER ansible/roles/ubuntu_server/defaults/main/distro-ubuntu.yml
USER
USER ansible/roles/ubuntu_server/handlers/main.yml
USER
USER ansible/roles/ubuntu_server/molecule/main/verify.yml
USER
USER ansible/roles/ubuntu_server/tasks/distro-ubuntu.yml
USER
USER ansible/roles/ubuntu_server/tasks/shell.yml
USER
USER ansible/roles/ubuntu_server/tasks/templates.yml
USER
USER ansible/roles/ubuntu_server/templates/etc/locale.conf.j2
USER
USER ansible/roles/ubuntu_server/templates/etc/profile.d/zzz-bash-common.sh.j2
USER
USER ansible/roles/ubuntu_server/templates/etc/ranger/config/commands.py.j2
USER
USER ansible/roles/ubuntu_server/templates/etc/ranger/config/rifle.conf.j2
USER
USER ansible/roles/ubuntu_server/templates/etc/sysctl.d/00-sysctl-disable-ipv6.conf.j2
USER
USER ansible/roles/ubuntu_server/templates/etc/systemd/system/docker.service.d/http-proxy.conf.j2
USER
USER ansible/roles/ubuntu_server/templates/etc/tmux.conf.j2
USER
USER ansible/roles/ubuntu_server/templates/etc/updatedb.conf.j2
USER
USER ansible/roles/ubuntu_server/templates/home/vimrc.j2
USER
USER conf/.yamllint
USER
USER requirements.txt
USER
USER run_linting.sh
USER
USER ssherlock/manage.py:
USER ⋮...
USER │def main():
USER ⋮...
USER
USER ssherlock/ssherlock/wsgi.py
USER
USER ssherlock/ssherlock_server/apps.py:
USER ⋮...
USER │class SsherlockServerConfig(AppConfig):
USER ⋮...
USER
USER ssherlock/ssherlock_server/forms.py:
USER ⋮...
USER │class CredentialForm(ModelForm):
USER ⋮...
USER │class BastionHostForm(ModelForm):
USER ⋮...
USER │class TargetHostForm(ModelForm):
USER ⋮...
USER │class LlmApiForm(ModelForm):
USER ⋮...
USER │class JobForm(ModelForm):
USER ⋮...
USER
USER ssherlock/ssherlock_server/models.py:
USER ⋮...
USER │class Job(models.Model):
USER │    """Defines a job in which the LLM runs against a target server.
USER │
USER │    The LLM must complete a set of instructions before the job is complete.
USER ⋮...
USER │    def dict(self) -> dict[any]:
USER ⋮...
USER
USER ssherlock/ssherlock_server/templates/ssherlock_server/objects/object_list.html
USER
USER ssherlock/ssherlock_server/utils.py:
USER ⋮...
USER │def check_private_key(request):
USER ⋮...
USER
USER ssherlock/ssherlock_server/views.py:
USER ⋮...
USER │def stream_job_log(_, job_id):
USER │    """Stream job log data to the client. This stream is rendered on the view_job view."""
USER ⋮...
USER │    def event_stream():
USER ⋮...
USER │def render_object_list(request, model, column_headers, object_fields, object_name):
USER ⋮...
USER │@require_http_methods(["GET"])
USER │@csrf_exempt
USER │def request_job(request):
USER ⋮...
USER │@require_http_methods(["POST"])
USER │@csrf_exempt
USER │def update_job_status(request, job_id):
USER ⋮...
USER
USER ssherlock/tests/test_ssherlock_server_forms.py
USER
USER ssherlock/tests/test_ssherlock_server_models.py
USER
USER ssherlock/tests/test_ssherlock_server_utils.py
USER
USER ssherlock/tests/test_ssherlock_server_views.py:
USER ⋮...
USER │class TestHandleObject(TestCase):
USER │    """Tests for the handle_object view."""
USER │
USER ⋮...
USER │    def _GET_add_object(self, model_name):
USER ⋮...
USER │    def _GET_edit_object(self, model_name, iid):
USER ⋮...
USER │    def _POST_add_object(self, model_name, new_object_str, data, expected_url):
USER ⋮...
USER │    def _POST_edit_object(self, model_name, iid, edited_object_str, data, expected_url):
USER ⋮...
USER │class TestDeleteObject(TestCase):
USER │    """Tests for the delete_object view."""
USER │
USER ⋮...
USER │    def _test_delete_object(self, model_name, model_instance, expected_url):
USER ⋮...
USER │class TestListViews(TestCase):
USER │    """Tests for the list views."""
USER │
USER ⋮...
USER │    def _test_list_view(self, view_name, expected_objects):
USER ⋮...
USER
USER ssherlock_runner/ssherlock_runner.py:
USER ⋮...
USER │class HttpPostHandler(log.Handler):
USER │    """Custom logging handler to send logs to the SSHerlock server via HTTP POST."""
USER │
USER │    def __init__(self, job_id):
USER ⋮...
USER │def update_job_status(job_id, status):
USER ⋮...
USER │def run_job(job_data):
USER ⋮...
USER │def request_job():
USER ⋮...
USER │class Runner:  # pylint: disable=too-many-arguments
USER │    """Main class for runner configuration."""
USER │
USER │    def __init__(
USER │        self,
USER │        job_id,
USER │        llm_api_base_url,
USER │        initial_prompt,
USER │        target_host_hostname,
USER │        credentials_for_target_hosts_username,
USER │        llm_api_api_key="Bearer no-key",
USER │        model_context_size=0,
USER │        log_level="WARNING",
USER ⋮...
USER │    def initialize(self) -> None:
USER ⋮...
USER │    def query_llm(self, prompt) -> str:
USER ⋮...
USER │    def can_llm_be_reached(self) -> bool:
USER ⋮...
USER │    def can_target_server_be_reached(self) -> bool:
USER ⋮...
USER │    def wait_for_llm_to_become_available(self) -> None:
USER ⋮...
USER │    def summarize_string(self, string: str) -> str:
USER ⋮...
USER │    def context_size_warning_check(self, messages, threshold=0.85) -> bool:
USER ⋮...
USER │    def run_ssh_cmd(self, connection: fabric.Connection, command: str) -> str:
USER ⋮...
USER │    def is_job_canceled(self) -> bool:
USER ⋮...
USER │    def initialize_messages(self) -> list:
USER ⋮...
USER │    def setup_ssh_connection_params(self) -> dict:
USER ⋮...
USER │    def process_interaction_loop(self, messages: list, connect_args: dict) -> None:
USER ⋮...
USER │    def handle_ssh_command(self, ssh: fabric.Connection, llm_reply: str) -> str:
USER ⋮...
USER │    def run(self):
USER ⋮...
USER │def strip_eot_from_string(string: str) -> str:
USER ⋮...
USER │def is_string_too_long(string: str, threshold: int = 1000) -> bool:
USER ⋮...
USER │def count_tokens(messages) -> int:
USER ⋮...
USER │def is_llm_done(llm_reply: str) -> bool:
USER ⋮...
USER │def update_conversation(messages: list, llm_reply: str, ssh_reply: str) -> None:
USER ⋮...
USER │def fetch_job_data(attempt, max_attempts):
USER ⋮...
USER │def execute_job(job_data):
USER ⋮...
USER │def main(max_attempts=None):
USER ⋮...
USER
USER ssherlock_runner/tests/test_ssherlock_runner.py
USER
USER start_ssherlock.sh
USER
USER test_populate_database.py:
USER ⋮...
USER │def populate_database():
USER ⋮...

ASSISTANT Ok, I won't try and edit those files without asking first.

USER Don't try and edit any existing code without asking me to add the files to the chat!
USER Tell me which files in my repo are the most likely to **need changes** to solve the requests I make, and then stop so I can add them to the chat.
USER Only include the files that are most likely to actually need to be edited.
USER Don't include files that might contain relevant context, just files that will need to be changed.

ASSISTANT Ok, based on your requests I will suggest which files need to be edited and then stop and wait for your approval.

USER what is the capital of paris?

SYSTEM # *SEARCH/REPLACE block* Rules:
SYSTEM
SYSTEM Every *SEARCH/REPLACE block* must use this format:
SYSTEM 1. The *FULL* file path alone on a line, verbatim. No bold asterisks, no quotes around it, no escaping of characters, etc.
SYSTEM 2. The opening fence and code language, eg: ```python
SYSTEM 3. The start of search block: <<<<<<< SEARCH
SYSTEM 4. A contiguous chunk of lines to search for in the existing source code
SYSTEM 5. The dividing line: =======
SYSTEM 6. The lines to replace into the source code
SYSTEM 7. The end of the replace block: >>>>>>> REPLACE
SYSTEM 8. The closing fence: ```
SYSTEM
SYSTEM Use the *FULL* file path, as shown to you by the user.
SYSTEM
SYSTEM Every *SEARCH* section must *EXACTLY MATCH* the existing file content, character for character, including all comments, docstrings, etc.
SYSTEM If the file contains code or other data wrapped/escaped in json/xml/quotes or other containers, you need to propose edits to the literal contents of the file, including the container markup.
SYSTEM
SYSTEM *SEARCH/REPLACE* blocks will *only* replace the first match occurrence.
SYSTEM Including multiple unique *SEARCH/REPLACE* blocks if needed.
SYSTEM Include enough lines in each SEARCH section to uniquely match each set of lines that need to change.
SYSTEM
SYSTEM Keep *SEARCH/REPLACE* blocks concise.
SYSTEM Break large *SEARCH/REPLACE* blocks into a series of smaller blocks that each change a small portion of the file.
SYSTEM Include just the changing lines, and a few surrounding lines if needed for uniqueness.
SYSTEM Do not include long runs of unchanging lines in *SEARCH/REPLACE* blocks.
SYSTEM
SYSTEM Only create *SEARCH/REPLACE* blocks for files that the user has added to the chat!
SYSTEM
SYSTEM To move code within a file, use 2 *SEARCH/REPLACE* blocks: 1 to delete it from its current location, 1 to insert it in the new location.
SYSTEM
SYSTEM Pay attention to which filenames the user wants you to edit, especially if they are asking you to create a new file.
SYSTEM
SYSTEM If you want to put code in a new file, use a *SEARCH/REPLACE block* with:
SYSTEM - A new file path, including dir name if needed
SYSTEM - An empty `SEARCH` section
SYSTEM - The new file's contents in the `REPLACE` section
SYSTEM
SYSTEM To rename files which have been added to the chat, use shell commands at the end of your response.
SYSTEM
SYSTEM You are diligent and tireless!

SYSTEM You always COMPLETELY IMPLEMENT the needed code!
SYSTEM
SYSTEM ONLY EVER RETURN CODE IN A *SEARCH/REPLACE BLOCK*!
SYSTEM
SYSTEM Examples of when to suggest shell commands:
SYSTEM
SYSTEM - If you changed a self-contained html file, suggest an OS-appropriate command to open a browser to view it to see the updated content.
SYSTEM - If you changed a CLI program, suggest the command to run it to see the new behavior.
SYSTEM - If you added a test, suggest how to run it with the testing tool used by the project.
SYSTEM - Suggest OS-appropriate commands to delete or rename files/directories, or other file system operations.
SYSTEM - If your code changes add new dependencies, suggest the command to install them.
SYSTEM - Etc.
SYSTEM
Unexpected error: litellm.NotFoundError: OpenAIException - Error code: 404 - {'error': {'message': 'The model `gpt-4o-2024-08-06` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code':
'model_not_found'}}
Traceback (most recent call last):
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 907, in completion
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 784, in completion
    return self.streaming(
           ^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 1045, in streaming
    headers, response = self.make_sync_openai_chat_completion_request(
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 683, in make_sync_openai_chat_completion_request
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 672, in make_sync_openai_chat_completion_request
    raw_response = openai_client.chat.completions.with_raw_response.create(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_legacy_response.py", line 353, in wrapped
    return cast(LegacyAPIResponse[R], func(*args, **kwargs))
                                      ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_utils/_utils.py", line 274, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/resources/chat/completions.py", line 704, in create
    return self._post(
           ^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_base_client.py", line 1268, in post
    return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_base_client.py", line 945, in request
    return self._request(
           ^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/openai/_base_client.py", line 1049, in _request
    raise self._make_status_error_from_response(err.response) from None
openai.NotFoundError: Error code: 404 - {'error': {'message': 'The model `gpt-4o-2024-08-06` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/main.py", line 1419, in completion
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/main.py", line 1392, in completion
    response = openai_chat_completions.completion(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/llms/OpenAI/openai.py", line 914, in completion
    raise OpenAIError(
litellm.llms.OpenAI.openai.OpenAIError: Error code: 404 - {'error': {'message': 'The model `gpt-4o-2024-08-06` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/aider/coders/base_coder.py", line 1129, in send_message
    yield from self.send(messages, functions=self.functions)
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/aider/coders/base_coder.py", line 1414, in send
    hash_object, completion = send_completion(
                              ^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/aider/sendchat.py", line 85, in send_completion
    res = litellm.completion(**kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 1086, in wrapper
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 974, in wrapper
    result = original_function(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/main.py", line 2847, in completion
    raise exception_type(
          ^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 8194, in exception_type
    raise e
  File "/opt/homebrew/Cellar/aider/0.60.0/libexec/lib/python3.12/site-packages/litellm/utils.py", line 6432, in exception_type
    raise NotFoundError(
litellm.exceptions.NotFoundError: litellm.NotFoundError: OpenAIException - Error code: 404 - {'error': {'message': 'The model `gpt-4o-2024-08-06` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param':
None, 'code': 'model_not_found'}}

You are specifying --model openai/gpt-4o-2024-08-06 with aider. Why not just --model gpt-4o-2024-08-06?

I receive the same error regardless or whether I specify --model openai/gpt-4o-2024-08-06 or --model gpt-4o-2024-08-06

litellm.NotFoundError: OpenAIException - Error code: 404 - {'error': {'message': 'The model `gpt-4o-2024-08-06` does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}

This looks like a bug with litellm...
https://github.com/BerriAI/litellm/issues/6736

The change is available in the main branch. You can get it by installing the latest version from github:
aider --install-main-branch

# or...

python -m pip install --upgrade --upgrade-strategy only-if-needed git+https://github.com/Aider-AI/aider.git

If you have a chance to try it, let me know if it works better for you.

Seems to be working now, thanks!


Document port_forward usage with charts that deploy multiple pods

I'm deploying prometheus-community/kube-prometheus-stack with multiple pods and it's not clear how I should use port_forwards to forward ports from specific pods.

@nathanperkins did you ever find a solution to this?

I think this is functionality missing from helm_resource().
Right now, the port_forwards argument on helm_resource() passes directly to k8s_resource()'s port_forwards argument underneath. See the PR that added the port forward functionality: https://github.com/tilt-dev/tilt-extensions/pull/356
Because of this, there is no way to specify which pod should be port forwarded. I think k8s_resource() just picks the first pod from the set, from what I've seen happen.
The best workaround for this missing functionality is to add your own k8s_resource() to forward the port, but use discovery_strategy='selectors-only' and the extra_pod_selectors argument to filter to only the pod you want.
Here's a working example for the Pyroscope operator:
helm_resource('pyroscope',
              chart='grafana/pyroscope',
              release_name='pyroscope',
              namespace="pyroscope",
              flags=[
                  '--create-namespace'
              ])
k8s_resource(workload='pyroscope',
             extra_pod_selectors={'statefulset.kubernetes.io/pod-name': 'pyroscope-0'},
             discovery_strategy='selectors-only',
             port_forwards="4040:4040")

This port-forwards the pyroscope pod, instead picking the default pyroscope-agent pod.
Note that I also tried using k8s_resource() with the objects argument, but that doesn't work because objects doesn't work with k8s_custom_deploy(). See https://github.com/tilt-dev/tilt/issues/5406. extra_pod_selectors is the only way to do this, because it is aware of k8s_custom_deploy(). See https://github.com/tilt-dev/tilt/pull/5774.
Hope that helps anybody else encountering this problem!

The above solution does result in the port being forwarded to the correct pod, but it has a secondary effect of de-associating the other pods from the resource for other functionality. In my case, the other deployments (which sometimes share an image with the main deployment, and are associated as such using image_deps and image_keys) will no longer receive live_updates and are no longer included in the merged log stream for that resource.
I've so far failed to find any solution when working with helm_resource which allows me to get port forwards landed at the correct pod while still keeping other functionality with the other pods. There doesn't seem to be any reasonable way to separate out the deployments into separate resources within the confines of k8s_custom_deploy (tilt-dev/tilt#5406)


blacklist terms in filters

When using a blacklist term alone in the filter field (-professor) it works fine, showing all that doesn't satisfy that criteria. However when paired with whitelist terms if fails.
If you search:   A,B,C it'll give all the elements satisfying A or B or C
if you search:   A,B,-C, currently it'll give all the elements satisfying A or B or (not C), since (not C) usually include almost every elements, it doesn't make sense. It should be (A or B) AND (not C). Have the blacklist term only applied to the white list selection. Don't know how it's implemented, if it make it easier you could pair each positive term with the combination of negative terms, so that A,B,C,-D,-E gives (A and -D and -E) OR (B and -D and -E) OR (C and -D and -E).
This would allow searches like "Zombie,Taura,Mummy,-cat", or in the ship page "Pirate,Federation,Qtarian,-extended,-hybrid,-assault"

Done in v2