Skip to content

Instantly share code, notes, and snippets.

View kolipakakondal's full-sized avatar
🎯
Focusing

Kondal Kolipaka kolipakakondal

🎯
Focusing
View GitHub Profile
@kolipakakondal
kolipakakondal / gist:a66bb5521128dd664b03769fe6d22ac5
Created March 30, 2023 07:43
embeddings Too Many Requests
url: 'https://api.openai.com/v1/embeddings'
},
request: Request {
[Symbol(realm)]: { settingsObject: [Object] },
[Symbol(state)]: {
method: 'POST',
localURLsOnly: false,
unsafeRequest: false,
body: [Object],
client: [Object],
@kolipakakondal
kolipakakondal / gist:4b17ce75233461cd1774597432b67bb5
Created January 31, 2023 11:28
Unable to switch to Chinese in Ubuntu environment
java.io.FileNotFoundException: /home/kondal/Espressif-IDE/Espressif-ide.ini (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:219)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157)
at org.apache.commons.io.FileUtils.openInputStream(FileUtils.java:2387)
at org.apache.commons.io.FileUtils.readLines(FileUtils.java:2560)
at com.espressif.idf.core.util.EclipseIniUtil.loadEclipseIniFileContents(EclipseIniUtil.java:99)
at com.espressif.idf.core.util.EclipseIniUtil.<init>(EclipseIniUtil.java:47)
at com.espressif.idf.ui.menuitem.LanguageDynamicMenuItem.<init>(LanguageDynamicMenuItem.java:40)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Successfully installed websocket-client-1.5.0
Copying OpenOCD Rules
Copying File: /home/kondal/.espressif/tools/openocd-esp32/v0.11.0-esp32-20221026/openocd-esp32/bin/../share/openocd/contrib/60-openocd.rules to destination: /etc/udev/rules.d/60-openocd.rules
Unable to copy rules for OpenOCD to system directory, try running the eclipse with sudo command
@kolipakakondal
kolipakakondal / gist:23f634b8100b22321c19b66defefebf7
Created October 6, 2020 06:47
Kext com.FTDI.driver.FTDIUSBSerialDriver class FTDIUSBSerialDriver has 2 instance
(base) Kondals-MacBook-Pro-2:eclipse-plugins kondal$ sudo kextunload -b com.FTDI.driver.FTDIUSBSerialDriver
Password:
(kernel) Kext com.FTDI.driver.FTDIUSBSerialDriver not found for unload request.
Failed to unload com.FTDI.driver.FTDIUSBSerialDriver - (libkern/kext) not found.
(base) Kondals-MacBook-Pro-2:eclipse-plugins kondal$ sudo kextload -b com.FTDI.driver.FTDIUSBSerialDriver
(base) Kondals-MacBook-Pro-2:eclipse-plugins kondal$ sudo kextunload -b com.FTDI.driver.FTDIUSBSerialDriver
Password:
(kernel) Can't unload kext com.FTDI.driver.FTDIUSBSerialDriver; classes have instances:
(kernel) Kext com.FTDI.driver.FTDIUSBSerialDriver class FTDIUSBSerialDriver has 2 instances.
Failed to unload com.FTDI.driver.FTDIUSBSerialDriver - (libkern/kext) kext is in use or retained (cannot unload).
@kolipakakondal
kolipakakondal / gist:f0fd6265733ae61857c412d6a4ef64c6
Created April 24, 2020 05:25
CMake Error: The current CMakeCache.txt directory
Building in: /Users/kondal/esp/esp-idf/go2/build
cmake --build . -- -v
CMake Error: The current CMakeCache.txt directory /Users/kondal/esp/esp-idf/go2/build/CMakeCache.txt is different than the directory /Users/kondal/runtime-EclipseApplication95/go2/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
[0/1] /Users/kondal/.espressif/tools/cmake/3.16.4/CMake.app/Contents/bin/cmake -S/Users/kondal/runtime-EclipseApplication95/go2 -B/Users/kondal/runtime-EclipseApplication95/go2/build
CMake Error: The source directory "/Users/kondal/runtime-EclipseApplication95/go2" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
FAILED: build.ninja
/Users/kondal/.espressif/tools/cmake/3.16.4/CMake.app/Contents/bin/cmake -S/Users/kondal/runtime-EclipseApplication95/go2 -B/Users/kondal/runtime-EclipseApplication95/go2/build
ninja: error: rebuilding 'build.ninja': subcommand failed
Build complete (0
@kolipakakondal
kolipakakondal / gist:be438b19106780011bffea617daba94f
Created April 6, 2020 06:58
The following Python requirements are not satisfied
bash-3.2$ /Users/kondal/.espressif/python_env/idf3.3_py2.7_env/bin/python /Users/kondal/esp/esp-idf/tools/idf.py confserver
Setting IDF_PATH environment variable: /Users/kondal/esp/esp-idf
The following Python requirements are not satisfied:
click>=5.0
pyelftools>=0.22
Please follow the instructions found in the "Set up the tools" section of ESP-IDF Getting Started Guide
ESP-IDF v4.2-dev-1034-ge599b794b
bash-3.2$
@kolipakakondal
kolipakakondal / gist:13c21fd084825871fe50305f4e624cc2
Created March 5, 2020 14:30
project build is getting into infinite loop
Building in: /Users/kondal/runtime-EclipseApplication95/hello/build
cmake --build . -- -v
CMake Error: The current CMakeCache.txt directory /Users/kondal/runtime-EclipseApplication95/hello/build/CMakeCache.txt is different than the directory /Users/kondal/esp/esp-idf/examples/get-started/hello_world/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
[0/1] /Users/kondal/.espressif/tools/cmake/3.13.4/CMake.app/Contents/bin/cmake -S/Users/kondal/esp/esp-idf/examples/get-started/hello_world -B/Users/kondal/esp/esp-idf/examples/get-started/hello_world/build
-- Unexpected file in components directory: /Users/kondal/esp/esp-idf/components/.DS_Store
-- Building ESP-IDF components for target esp32s2
-- Checking Python dependencies...
Python requirements from /Users/kondal/esp/esp-idf/requirements.txt are satisfied.
-- Adding linker script /Users/kondal/esp/esp-idf/components/esp_rom/esp32s2/ld/esp32s2.rom.ld
-- Adding lin
C:\Users\VENKAT~1\ESPRES~1\tools\XTENSA~1\ESP-20~1.0\XTENSA~1\bin\XT8994~1.EXE -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -IE:/kondal/esp-idf/components/esp_common/include -IE:/kondal/esp-idf/components/newlib/platform_include -IE:/kondal/esp-idf/components/freertos/include -IE:/kondal/esp-idf/components/heap/include -IE:/kondal/esp-idf/components/log/include -IE:/kondal/esp-idf/components/lwip/include/apps -IE:/kondal/esp-idf/components/lwip/include/apps/sntp -IE:/kondal/esp-idf/components/lwip/lwip/src/include -IE:/kondal/esp-idf/components/lwip/port/esp32/include -IE:/kondal/esp-idf/components/lwip/port/esp32/include/arch -IE:/kondal/esp-idf/components/soc/esp32/include -IE:/kondal/esp-idf/components/soc/include -IE:/kondal/esp-idf/components/esp_rom/include -IE:/kondal/esp-idf/components/xtensa/include -IE:/kondal/esp-idf/components/xtensa/esp32/include -IE:/kondal/esp-idf/components/esp32/include -IE:/kondal/esp-idf/components/driver/include -IE:/kondal/esp-idf/components/dri
C:\Users\VENKAT~1\ESPRES~1\tools\XTENSA~1\ESP-20~1.0\XTENSA~1\bin\XT8994~1.EXE -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\" -Iconfig -IE:/kondal/esp-idf/components/esp_common/include -IE:/kondal/esp-idf/components/newlib/platform_include -IE:/kondal/esp-idf/components/freertos/include -IE:/kondal/esp-idf/components/heap/include -IE:/kondal/esp-idf/components/log/include -IE:/kondal/esp-idf/components/lwip/include/apps -IE:/kondal/esp-idf/components/lwip/include/apps/sntp -IE:/kondal/esp-idf/components/lwip/lwip/src/include -IE:/kondal/esp-idf/components/lwip/port/esp32/include -IE:/kondal/esp-idf/components/lwip/port/esp32/include/arch -IE:/kondal/esp-idf/components/soc/esp32/include -IE:/kondal/esp-idf/components/soc/include -IE:/kondal/esp-idf/components/esp_rom/include -IE:/kondal/esp-idf/components/xtensa/include -IE:/kondal/esp-idf/components/xtensa/esp32/include -IE:/kondal/esp-idf/components/esp32/include -IE:/kondal/esp-idf/components/driver/include -IE:/kondal/esp-idf/components/dri
@kolipakakondal
kolipakakondal / gist:df3935247265b1a5ff0b8dfc55de61c4
Created January 21, 2020 10:59
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)
https://stackoverflow.com/a/41692664/1812235 this is what it helped me! We need to run "Install Certificates.command" from /Applications/Python 3.6/. This is applicable even for Python 2.6 as well.
/Applications/Python 3.6/Install Certificates.command