Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy artifacts into the container before compiling #751

Open
ddieruf opened this issue Dec 21, 2023 · 0 comments
Open

Copy artifacts into the container before compiling #751

ddieruf opened this issue Dec 21, 2023 · 0 comments

Comments

@ddieruf
Copy link
Member

ddieruf commented Dec 21, 2023

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:

  • myCustomProcessor.py
  • requirements.txt
  • smart_logs-0.0.1-py3-none-any.whl

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant