You need to set the `OCPI_LIBRARY_PATH` environment variable manually when
using `ocpirun`. It needs to be a list of paths pointing at the `artifacts`
folders of all the projects you need assets from; in this case you need
core:
`OCPI_LIBRARY_PATH=$OCPI_ROOT_DIR/projects/core/artifacts`
Then add whatever other paths are needed, separating with colons.
`ocpidev run` understands project structure, so does this for you.
On Fri, 19 May 2023, 09:16 , <dwp_at_md1tech.co.uk> wrote:
> Hi Aaron, thanks for your help, this is really useful.
>
> Yes my application uses an OAS. So far I have been using ocpidev run
> application <app> to run my applications.
>
> I am getting an error when I instead try to use ocpirun:
>
> OCPI( 8:532.0158): For instance 0: "file_read", finding and checking
> candidate implementations/workers
> OCPI( 8:532.0158): Error Exception: No acceptable implementations found in
> any libraries for "ocpi.core.file_read". Use log level 8 for more detail.
>
> When I run the same application with ocpidev run it finds it fine:
>
> OCPI( 8:585.0106): For instance 0: "file_read", finding and checking
> candidate implementations/workers
> OCPI( 8:585.0106): Considering implementation "file_read" from artifact
> "../../imports/ocpi.core/exports/artifacts/
> ocpi.core.file_read.rcc.0.ubuntu22_04.so"
> OCPI( 8:585.0106): Accepted implementation before connectivity checks
> with score 1
>
>
> _______________________________________________
> discuss mailing list -- discuss_at_lists.opencpi.org
> To unsubscribe send an email to discuss-leave_at_lists.opencpi.org
>
Received on Fri May 19 2023 - 08:24:44 CDT