wunderwuzzi23 / yolo-ai-cmdbot

AI bot that translates your question to a command and executes it yolo style
Other
185 stars 40 forks source link

I really need some assistance please #26

Closed b9Joker108 closed 6 months ago

b9Joker108 commented 8 months ago

Hi I am having issues getting yolo-ai-cmdbot working. I have added: model: gpt-4-1106-preview and API key to yolo.yaml


To .zshrc I added:

# Aliases for yolo.py

alias yolo='/data/data/com.termux/files/home/yolo-ai-cmdbot/yolo.py'

alias computer='/data/data/com.termux/files/home/yolo-ai-cmdbot/yolo.py'

and:

export OPENAI_API_KEY=\


The pastebin linkage follows that reports the output I had from trying to run: pip3 install -r requirements.txt for the third time after each time trying to problem solve in different ways:

https://pastebin.com/feD0fWeQ


NB: python is already the newest version (3.11.6-1). python-pip is already the newest version (23.3.2). Successfully installed PyYAML-6.0.1 libyaml is already the newest version (0.2.5-4). Requirement already satisfied: setuptools in /data/data/com.termux/files/usr/lib/python3.11/site-packages (69.0.3) Operating System: OneUI (5.1.1) Samsung Galaxy Tab S9 Ultra (SM-X910) Android version 13 Termux Variables: TERMUX_API_VERSION=0.50.1 TERMUX_APK_RELEASE=F_DROID TERMUX_APP_PACKAGE_MANAGER=apt TERMUX_APP_PID=11941 TERMUX_IS_DEBUGGABLE_BUILD=0 TERMUX_MAIN_PACKAGE_FORMAT=debian TERMUX_VERSION=0.118.0 TERMUX__USER_ID=0 Packages CPU architecture: aarch64 Subscribed repositories: # sources.list deb https://mirrors.medzik.dev/termux/termux-main stable main # sources.list.d/pointless.list deb https://its-pointless.github.io/files/21 termux extras # x11-repo (sources.list.d/x11.list) deb https://mirrors.medzik.dev/termux/termux-x11 x11 main # tur-repo (sources.list.d/tur.list) deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous Updatable packages: All packages up to date termux-tools version: 1.40.1 Android version: 13 Kernel build information: Linux localhost 5.15.78-android13-8-26966632-abX910XXU1AWHA #1 SMP PREEMPT Fri Aug 11 13:12:49 UTC 2023 aarch64 Android Device manufacturer: samsung Device model: SM-X910 LD Variables: LD_LIBRARY_PATH= LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so Installed termux plugins: com.termux.widget versionCode:13 com.termux.x11 versionCode:14 com.termux.api versionCode:51 com.termux.styling versionCode:31 com.termux.window versionCode:15


I think something is wrong with PyYAML, but I am unsure now what to do!

smerkley commented 8 months ago

There's a problem installing PyYAML with the current version of Cython. There's a workaround here: https://github.com/yaml/pyyaml/issues/736

wunderwuzzi23 commented 6 months ago

I recently upgraded the openai library to 1.0+ also - hope you were able to figure out the dependency issues.

b9Joker108 commented 6 months ago

No, I actually parked it. I would really like to get it working. I am unsure how to progress it at this stage. I could do with your advice.

b9Joker108 commented 6 months ago

I deleted the cloned repository I had, then recloned it, and sourced the installation script and it worked almost immediately. As I already had the computer and yolo aliases and the API key exported in my .zshrc config file, it worked quicksticks. Thank you for the code. Appreciated.