Open jksaras opened 1 month ago
Thanks for the report. Unfortunately it won't be possible to use jiter
until we have proper support for Rust (#1030).
However, you may be able to work around this by using an older version of openai
.
If anyone else has this issue, let us know by clicking the thumbs-up button above.
@mhsmith I encountered the same error when installing openai in android studio. How can I solve it?
classpath 'com.android.tools.build:gradle:4.2.1' classpath 'com.chaquo.python:gradle:9.0.0' id 'com.chaquo.python' version '14.0.2' apply false
error log :
Collecting jiter<1,>=0.4.0
Using cached jiter-0.5.0.tar.gz (158 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'D:\fibotranslate\app\build\python\env\debug\Scripts\python.exe' 'D:\fibotranslate\app\build\python\env\debug\lib\site-packages\pip_vendor\pep517_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\Administ
rator\AppData\Local\Temp\tmp2kiako8b'
cwd: C:\Users\Administrator\AppData\Local\Temp\pip-install-lbu_day2\jiter
Checking for Rust toolchain....
Running maturin pep517 write-dist-info --metadata-directory C:\Users\Administrator\AppData\Local\Temp\pip-modern-metadata-ze36jg06 --interpreter D:\fibotranslate\app\build\python\env\debug\Scripts\python.exe
Traceback (most recent call last):
Like I said, I think older versions of openai don't have this dependency.
we resolved it by using the openai version 1.39.0
Chaquopy version
classpath "com.chaquo.python:gradle:14.0.2"
Relevant parts of your build.gradle file