This message was deleted.
# ask-for-help
s
This message was deleted.
n
when trying with bentoml 1.0.16 I get the following issue:
Copy code
bentoml.export_bento('test_service:latest',
                     'test_bucket',
                     protocol='s3', subpath='bentos',
                     user='test_user', passwd='test_pw')
fs.opener.errors.OpenerError: invalid bucket name in '<s3://test_user>:test_pw'
For some reason it seems like the bucket and the subpath get removed from the url and instead only the user and passwd stays
a
can you try
pip install 'bentoml[aws]'
?
👍 1
I can’t reproduce the bug
n
pip install 'bentoml[aws]'
worked thanks
but still get the same issue unfortunately
c
Copy code
bentoml.export_bento('test_service:latest',
                     '<s3://test_bucket>',
                     protocol='s3', subpath='bentos',
                     user='test_user', passwd='test_pw')
you will need to specify a
s3://
path
could you try this 👆
n
then I am getting this:
return bento.export(
File "/home/nico_linux/miniforge3/envs/parrot-main/lib/python3.9/site-packages/bentoml/_internal/exportable.py", line 203, in export
raise ValueError(
ValueError: An FS URL was passed as the output path; all additional information should be passed as part of the URL.
c
could you share your full code sample?
n
That is it, only
import bentoml
was missing
which fs-s3fs version shall be used? maybe that is causing the error
@Chaoyu @Aaron Pham can you please reopen the issue
c
The best way to specify username and password is through environment variables
n
okay, I do not find that in the documentation. Which env variables would that be?
a
the AWS envvar