Open labbenchstudios opened 4 years ago
I installed gtk4 and got an error "Namespace Gdk not available for version 3.0" when testing sense_emu_gui. I believe gtk 3.0 version is to be present. Then I uninstalled gtk4 and installed gtk+3 and the sense emulator GUI got launched when running the test
Good catch. Just updated: changed 'gtk4' to 'gtk+3'.
Description
Review the README
Estimated effort may vary greatly
Actions
Windows Notes
macOS Notes
pip3 install sense-emu
brew install pygobject3 gtk+3
pip3 install pygobject
sense_emu_gui
Pisense v0.2 Notes
pisense
within the CDA. This may be the case specifically with Pisense 0.2 and Python 3.10.SenseHatEmulatorQuickTest
runs without any issues, you can ignore the following.SenseHatEmulatorQuickTest
:ImageDraw
library in 3.10 has deprecated thetextsize
function, although in my own testing, it appears you can usetextbbox
instead. Since the version ofpisense
I tested with relies ontextsize
, there are at least two potential ways to address this issue.pisense
anim.py
source code module:pisense
moduleanim.py
, you can change line 167 as follows (you'll find this under {your python install location}/lib/python3.10/site-packages/pisense/anim.py):Estimate
Tests
NOTE: Depending on how you install the emulator on your platform (along with GTK), you may need to run the EDA integration tests from the command line vs from within your IDE.
For instance, if you use Bash on Ubuntu on Windows, and used the Ubuntu / Debian instructions for installation, you may have difficulty running the EDA integration tests from within Eclipse, as the libraries won't be installed for the calls to succeed. On Windows 11 with Visual Studio Code (VS Code), assuming WSL v2 is configured properly and VS Code is launched from WSL, you should be able to run VS Code in WSL mode and invoke the test from within WSL directly from the IDE.
Setup
Integration tests (in ./src/test/python/programmingtheiot/part02/integration)
OK