Technical Topics
Python-Only Builds
9min
brightsign provides "python only" builds that can installed on players as an addition to our base operating system python packages are installed on the developer’s machine, published to the player, and executed by the python application installed by the python only build download python only builds currently, only select series 4 players have python only builds series 2 and 3 players are not compatible with python series 5 players will be compatible with python in the near future the following players have brightsign python only builds note that you must download and install both brightsignos and the python production build xd4 / xt4 (malibu) brightsignos (malibu 8 5 35 update bsfw) python build (malibu 8 5 35 brightsign python only update bsfw) ls4 / hd4 (pagani) brightsignos (pagani 8 5 35 update bsfw) python build (pagani 8 5 35 brightsign python only update bsfw) install python only builds the base os version and the python only version should be kept in sync to install copy brightsignos to the root of the microsd card, then reboot your player copy the python update to the root of the microsd card, then reboot your player install third party python libraries to show you how to install third party python only libraries on a brightsign player, we have included the following package and instructions that include a specific module (“requests”) to use this example download the zip file below open the pkgex directory the simple pkgex py script executes a user loaded package ( request ) copy the / directory, which contains /autorun brs and /pkgex , to your microsd card run /pkgex/pkgex py using ropython (the autorun brs included in this example will execute this) https //archbee doc uploads s3 amazonaws com/tyaqenq txckpox4eakhe xpdjmxl vd16yxps vqsw 20250418 222659 zip we recommend pip to download any third party modules, but other methods can be used instead included modules must not contain binaries to ensure that your module does not contain binaries, use the pip download command with the no binary flag see https //pip pypa io/en/stable/cli/pip download/ https //pip pypa io/en/stable/cli/pip download/ for more information example this brs example uses the ropython object within brightscript to execute a python script brighscript sub main() p = createobject("ropython") mp = createobject("romessageport") p setport(mp) res = p asyncexecute("pkgex/pkgex py") print "p asyncexecute() results, ";res ' if res is false then print p getfailurereason() will provide more info if res = false then failurereason = p getfailurereason() print "python execute failure reason";failurereason end if 	while true 	 msg = wait(1000, mp) 	end while end sub notes brightsign runs python with a e flag in this example the modules are in the same directory as the script if your modules are not in the same working directory as your script, add your directories as entries to sys path (the list of directories that are examined for python packages) for example sys path append('/path to my directory') a number of modules come with our python (mostly built ins) you can see this list by opening the python interpreter and typing help("modules")