AvailabilityChecker: Remove hard requirement on tobii_research#19
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Because of how
AvailibilityChecker.checkPythonEnvironment()was set up, thetobii_researchmodule had to be installed in the selected Python environment even when one wanted to use Mouse emulation.Installing
tobii_researchis more difficult than installingpyautoguibecausetobii_researchrequires specific Python version, namely Python 3.10 (or Python 3.8, but with more work). Switching to non-default version of Python is more work.I have tested that mouse emulation work with these changes, but I was not able to check if tracking with Tobii still works.
Now
tobii_researchmodule does not need to be installed to be able to use mouse emulation.This change removes 'import tobii_research as tr' from checkPythonEnvironment() method, and adjusts checkEyeTracker() and getEyeTrackerName() to work correctly even if tobii_research is not installed.
The problem with requiring tobii_research is that it requires specific Python version to be able to be installed: 3.8 or 3.10: