Raspberry Pi

How to Install BeeWare on Raspberry Pi

BeeWare is an open-source tool used for creating different GUI applications. It includes a suite of tools and libraries that helps users create applications that runs on multiple platforms including Windows, IOS, macOS and Linux. You can also use BeeWare to develop web-based applications.

Follow this article’s guidelines to install BeeWare on a Raspberry Pi system.

How to Install BeeWare on Raspberry Pi

Pay attention to the following steps to install BeeWare on a Raspberry Pi.

Step 1: You must install a few dependencies on your Raspberry Pi system, since it will help smoothly perform the process of developing applications through BeeWare.

$ sudo apt-get install git python3-dev python3-venv python3-gi python3-gi-cairo libgirepository1.0-dev libcairo2-dev libpango1.0-dev libwebkit2gtk-4.0-37 gir1.2-webkit2-4.0

Step 2: Ensure pip is installed on your Raspberry Pi system and if it’s not available, you can install it from here.

Step 3: Now install BeeWare on Raspberry Pi system through the following command:

$ pip3 install beeware

Use BeeWare for Creating an application

Let’s use BeeWare to create a Hello Word interface. For this, follow the below-given steps:

Step 1: First create a directory using the following command as here we will perform the required BeeWare setup process.

$ mkdir beware

Step 2: Then use the following command to navigate to the BeeWare directory.

$ cd beeware

Step 3: Now create a virtual environment for BeeWare through the following command:

$ python3 -m venv beeware-venv

Step 4: Then activate the BeeWare environment through the following command:

$ source beeware-venv/bin/activate

Step 5: For creating an application through BeeWare, you should also need the Briefcase tool, which is BeeWare dependent tool that helps you in developing different GUI applications. To install Briefcase, follow the below-given steps:

$ python -m pip install briefcase

Step 6: The next step is to build an application called Hello World using the briefcase new command.

$ briefcase new

Briefcase will need some information from you regarding your new application. Follow the below-given instructions:

Step 7: Accept the default setting for formal name: Hello World.

Text Description automatically generated

Step 8: Accept the default value of helloworld for the app name.

Text Description automatically generated with medium confidence

Step 9: Go with the default bundle identifier.

Text Description automatically generated

Step 10: Accept the default value of “Hello World” for the project name.

Text Description automatically generated

Step 11: Go with the default “Description” or, provide your own description.

Step 12: Enter your name as the author here.

Text Description automatically generated

Step 13: Enter your email address as the author. You can go with the default one.

Text Description automatically generated

Step 14: Enter the default Application URL here.

Text Description automatically generated

Step 15: Use the default License value, which in this instance is 1.

Text Description automatically generated

Step 16: Go with the default GUI tool kit.

Text Description automatically generated

Step 17: Once the above steps are done, enter the helloworld directory using the following command:

$ cd helloworld

Then launch the application using the following command:

$ briefcase dev

Text Description automatically generated

This launches the Hello World program on your Raspberry Pi desktop.

Graphical user interface, application Description automatically generated

In this way, you can create any application you want through BeeWare and Briefcase.

Conclusion

BeewWare is a wonderful choice for developers who love to create different GUI or web-based applications. BeeWare can easily be installed on Raspberry Pi system from the “pip” command. After the installation, follow the above-given guidelines to create a simple GUI application, which requires both BeeWare and Briefcase tools.

About the author

Hiba Shafqat

I am a Computer Science student and a committed technical writer by choice. It is a great pleasure to share my knowledge with the world in which I have academic expertise.