Deploy Python Application with pyzbar package to Heroku

Vishnu Nadella

Vishnu Nadella

· 1 min read
Heroku

There is been a time when I and my friend struggled to find a way to deploy a python application to Heroku which has pyzbar package in it (for decoding scanned QR codes in our project).

Endless hours of google search, StackOverflow, and whatnot. After all this, I found a way to deploy them and I would like to share it here since I have seen that so many people around the globe are facing this issue.

So let’s get started.

Update your Aptfile with following

Here comes the uploading part

Download Heroku CLI before proceeding further and then scroll down to get these options:

Before uploading it to Heroku make sure to upload it to GitHub otherwise Heroku will raise an error when executing Heroku create.

The buildpack in the 4th line is very important since it downloads and installs packages required from Aptflie for the Linux kernel.

The friendly reminder, <____> represents do as directed and exclude <>


The End

Hope this article helps you to tackle problems and successfully deploy your application in Heroku. If this doesn't help you then you are most welcome to drop your problem in the comment section since others and I can try to provide suggestions or fix it if this does help then please let us know, it just feels nice.

Thank you for reading!!

Vishnu Nadella

About Vishnu Nadella

GDSC IARE Tech Lead

Fallen in ❤ with Automobiles | Student at IARE | AI Enthusiast | Python Programmer | Automobile enthusiast| 3rd Year CSE Undergrad

© 2024 GDSC IARE Tech Team