cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying a web application using Flask

former_member611390
Discoverer
0 Kudos

Hello,

I am trying to deploy a web application, which is written in python using Flask. I receive errors because of importing of some libraries. I don't know how to fix it. Any advice and suggestions will be greatly appreciated.

ImportError: No module named 'tqdm'

ImportError: No module named 'sklearn'

Accepted Solutions (1)

Accepted Solutions (1)

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Afrouz,

I've faced some similar issues with module dependencies in python buildpack.

Apparently the buildpack doesn't install dependencies first so you will need to opt between using minicoda deployment (there is this option for python buildpack) or you will require some minor modifications.

I've written three blogs on this specific topic:

https://blogs.sap.com/2019/02/15/python-with-packages-that-depend-on-numpy-part-i/

Part II link is available on the above blog.

https://blogs.sap.com/2019/02/27/creating-custom-buildpacks/

Please check if this solved your issue. If not, let me know and I'll try to reproduce the issue here to see how to fix it.

Best regards,
Ivan

Answers (1)

Answers (1)

former_member611390
Discoverer
0 Kudos

Hi Ivan,

it solved my issue, thank you so much

Best regards,

Afrouz