This message was deleted.
# announcements
s
This message was deleted.
c
could you try add
@env(pip_dependencies=['statsmodels'], auto_pip_dependencies=True)
?
BentoML can not figure out dependencies that are only used in the pickeled object
n
sure
will try it
I got this error @Chaoyu
Warning**
c
That is ok
Things working now?
n
Nope @Chaoyu ..I had to add statsmodels in my requirements.txt manually after the file got generated
@env(auto_pip_dependencies=["statsmodels == 0.10.1","joblib","pickle","numpy"]
For some strange reason when I do this it works
c
auto_pip_dependencies is suppose to be a boolean value
What version of bentoml are you using?
n
0.8.5 @Chaoyu
yes exactly...
Also is there a way to add statsmodels to the requirements.txt from the code?
c
pip_dependencies=[]
this should add it to the requirements.txt
what’s the error when you do
@env(pip_dependencies=['statsmodels'], auto_pip_dependencies=True)
?
n
Hey @Chaoyu, Sorry for the late reply as I wasn't working over the weekend
I'm attaching the code and error in this picture
It works fine when I add statsmodels==0.10.1 in req.txt
c
I see, try changing the code to
pip_dependencies=['statsmodels==0.10.1']
?
The next release of bentoml will do a better job at parsing the pip package version requirement and handle this case
but in current release, the extra space will result in that error I believe
n
@Chaoyu Sure..wil try it out and come back to you
thanks
@Chaoyu still facing the same issue unfortunately
c
For the screenshot you shared
could you verify the content of
requirement.txt
?
Have you tried removing it from conda_dpendencies?
n
@Chaoyu requirements.txt doesn't get updated still..will try removing it from conda_dependencies
tried removing it from conda_dependencies..Still the issue unfortunately
The good news is now it runs through CI/CD
c
@Naren Nadig great to hear. I can not reproduce the dependency issue on my end tho. If you specify
@env(pip_dependencies=['statsmodels==0.10.1'])
, then the
requirement.txt
file is expected to have the ``statsmodels==0.10.1`` line.
could you create a simple BentoService class in your env and help me to verify this?
n
Sure ....
it worked!! I removed the auto_pip_dependencies=True part and now it works really well..probably it was overriding it....
@Chaoyu Can I contribute a simple example to the bentoML docs ?? so that next time someone wants to deploy a time-series statistical model they can just run a notebook I create?
c
yes definitely! Thank you! I should have fixed the issue with overriding, the fix will be out in the next release
n
thanks @Chaoyu..Will raise a PR tomorrow
🙂
Any procedure to contribute?? Like where to upload the notebook
Do I just upload my code HERE and upload my notebook on a new branch and add it to the readme.md ??
c
Yes, that’s it
you can create a new folder for statsmodel
if you can take a look at other example notebooks and follow the same format that’d be great
and you can also add it to the readme in the main repo, after the example notebook is added
n
Sure...will do it tomorrow
c
Thanks Naren!
n
@Chaoyu np 🙂 ..I can follow the irisclassifier document kinda sequence right?
I can create a new section right,named statsmodels? @Chaoyu
c
Yea, that’d be great
you can take a look at other gallery examples
and copy the common parts
n
okayyy
cc @Soumo Chakraborty
Hey @Chaoyu..Are you planning to add it in the bentoml docs as well?
c
@Naren Nadig I thought you already did?
btw, how’s your deployment with BentoML going? Have you pushed everything to running in production yet?
n
@Chaoyu Sorry, I just did..created a new PR..Sorry for the trouble
@Chaoyu me and my manager are currently comparing the options at hand..The current project is just an incubation one ...Maybe by October second week we'll have an answer
c
Thanks @Naren Nadig, let me know if there’s any thing we could help
n
@Chaoyu sure