LangStream / langstream

LangStream. Event-Driven Developer Platform for Building and Running LLM AI Apps. Powered by Kubernetes and Kafka.
https://langstream.ai
Apache License 2.0
378 stars 28 forks source link

Copy artifacts into the container before compiling #751

Open ddieruf opened 6 months ago

ddieruf commented 6 months ago

Using the command langstream python load-pip-requirements -app ./application I have local packages (.whl) in the 'python' folder. They need to be in a known location before doing any "pip" work on them. Instead of working directly off the container mounts, copy all needed assets to a known place and then do the work.

Example use case I'm developing a custom python package to be used with LangStream. In the python folder I have:

The contents of requirements.txt is: ./smart_logs-0.0.1-py3-none-any.whl

I am seeing the follow error during the pip install: OSError: [Errno 18] Invalid cross-device link: '/tmp/pip-target-atzg9f4_/lib/python/smart_logs-0.0.1.dist-info' -> '/code/application/python/lib/smart_logs-0.0.1.dist-info'

It appears to be related to this SO thread.