Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/main/java/actions/StartStopTrackingAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ public void actionPerformed(@NotNull AnActionEvent e) {
if (!isTracking) {
if (config.getCheckBoxes().get(1)) {
if (!AvailabilityChecker.checkPythonEnvironment(config.getPythonInterpreter())) {
JOptionPane.showMessageDialog(null, "Python interpreter not found. Please configure the plugin first.");
JOptionPane.showMessageDialog(
null,
"Python interpreter not found, "+
"or Python environment lacks required packages: "+
"tobii_research, screeninfo, pyautogui.\n"+
"Please configure the plugin first, and set up the Python environment."
);
return;
}
if (config.getEyeTrackerDevice() != 0 && !AvailabilityChecker.checkEyeTracker(config.getPythonInterpreter())) {
Expand Down
6 changes: 5 additions & 1 deletion src/main/java/components/ConfigDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,11 @@ protected void textChanged(@NotNull DocumentEvent e) {
eyeTracking.addActionListener(actionEvent -> {
if (!pythonEnvironment) {
eyeTracking.setSelected(false);
new AlertDialog("Python environment not configured.", AllIcons.General.BalloonWarning).show();
new AlertDialog(
"Python environment not configured, or not set up properly.\n"+
"Required packages to be installed are: tobii_research, screeninfo, pyautogui.",
AllIcons.General.BalloonWarning
).show();
return;
}
if (!eyeTracking.isSelected()) {
Expand Down