This message was deleted.
# announcements
s
This message was deleted.
c
Thanks for reporting this Brendan, to clarify, did you use the pip_index_url, pip_trusted_host, or pip_extra_index_url option in the
@env
setting?
@Bo I think lambda handles installing pip dependencies differently, could you take a look?
b
I was thinking my
@env
setting is part of the problem, I was using auto_pip_depenencies which led to my module looking something like my_module==0.2.0 instead of being set to the local path of the module
b
Yeah. Lambda is handling dependency differently right now. @Brendan Bruce could you share with me your current setup?
b
Yes what info would be helpful for you?
c
what is my_module?
Is that your own pypi package?
b
Your bento service setup. your previous message is very helpful. Is the
my_module
a private package? Is it available on any pypi registry?
c
If you put your dependencies in a pypi package, then you need to distribute it either to the public pypi.org, or your own private pypi host to make it available in the runtime
b
Yes
my_module
is my own private package. If I make my own pypi host will I be able to import packages from the public pypi?
c
you can use
*pip_extra_index_url*
option to specify your own private pypi host
which contains your own private package
BentoML can not tell if a pypi package installed locally is installed from the public pypi.org or user’s own private pypi host, that’s the reason for the current behavior.
If your package is small, just put it as a file or files next to your bento_service project, and import them directly - then bentoml will be able to package those local python files automatically
b
OK I will try these out, thanks for the fast response and the advice!
Referencing locally worked thank you
c
👍
Happy to help!