CodeWithKyrian / transformers-php

Transformers PHP is a toolkit for PHP developers to add machine learning magic to their projects easily.
https://codewithkyrian.github.io/transformers-php/
Apache License 2.0
291 stars 16 forks source link

Unable to load shared object file #8

Closed Awais-cb closed 4 months ago

Awais-cb commented 4 months ago

System Info

Linux ubuntu 20.04

PHP Version

8.3

Environment/Platform

Description

Type:        FFI\Exception
Message:     Failed loading '/var/www/html/od-web/vendor/ankane/onnxruntime/src/../lib/onnxruntime-linux-x64-1.17.0/lib/libonnxruntime.so.1.17.0' (/var/www/html/od-web/vendor/ankane/onnxruntime/src/../lib/onnxruntime-linux-x64-1.17.0/lib/libonnxruntime.so.1.17.0: cannot open shared object file: No such file or directory)
Filename:    /var/www/html/od-web/vendor/ankane/onnxruntime/src/FFI.php
Line Number: 16

Reproduction

but later when i tried to use this code i got the exception mentioned above

Awais-cb commented 4 months ago

Sorry i didn't setup the cache path thanks for this exciting package

CodeWithKyrian commented 4 months ago

Oh that's cool. You're welcome