Repository: psychopy/psychopy

Issue:
[Bug]: default_eyetracker.yaml file for Gazepoint eyetracker is not found
### PsychoPy Version

2023.2.3.

### What OS are your PsychoPy running on?

Windows 10

### Bug Description

default_eyetracker.yaml file for Gazepoint eyetracker is missing from \envs\experimental\lib\site-packages\psychopy\iohub\devices\eyetracker\hw\gazepoint\gp3\ 

This causes calibration to crash.  

### Expected Behaviour

File should be present in the directory. 

### Steps to Reproduce

Run the calibration code with the current version of psychopy and the last version of https://github.com/psychopy/psychopy-eyetracker-gazepoint. 
...


### Additional context

_No response_


Discussion:
I'm fixing this issue for the next release. We don't have a GazePoint tracker on-site. If you like, it would be great to help test out the fix once ready.
Great, sure, no problem.

Thanks.

On Thu, 15 Feb 2024 at 22:18, Matthew D. Cutone ***@***.***>
wrote:

> I'm fixing this issue for the next release. We don't have a GazePoint
> tracker on-site. If you like, it would be great to help test out the fix
> once ready.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/psychopy/psychopy/issues/6207#issuecomment-1947355304>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/APTVVEZNVRUD7EQGWOVLKK3YTZ3RZAVCNFSM6AAAAABCWTLA7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGM2TKMZQGQ>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>

Hi @kjaksic we've been making various fixes to plugins, especially around eyetrackers. We have a new release candidate for psychopy (2024.1.0rc12) and we'd love you to test it out if you can. You may need to update the psychopy-gazepoint plugin as well

windows: https://drive.google.com/file/d/1PjlyCKGLlN4cYSRqSfbXZpPgGilkS-Fg/view?usp=drive_link
macos: https://drive.google.com/file/d/14LgNDrQ9jyz081-asvStHR0dAgdU0izX/view?usp=drive_link

Hi Jon,

I will be out of office for about 10 days. I can test it when I get back,
if that works for you.

čet, 29. velj 2024. u 15:14 Jon Peirce ***@***.***> napisao
je:

> Hi @kjaksic <https://github.com/kjaksic> we've been making various fixes
> to plugins, especially around eyetrackers. We have a new release candidate
> for psychopy (2024.1.0rc12) and we'd love you to test it out if you can.
> You may need to update the psychopy-gazepoint plugin as well
>
> windows:
> https://drive.google.com/file/d/1PjlyCKGLlN4cYSRqSfbXZpPgGilkS-Fg/view?usp=drive_link
> macos:
> https://drive.google.com/file/d/14LgNDrQ9jyz081-asvStHR0dAgdU0izX/view?usp=drive_link
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/psychopy/psychopy/issues/6207#issuecomment-1971234703>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/APTVVE6XUNOBSHS6PXZGFCDYV43V7AVCNFSM6AAAAABCWTLA7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZRGIZTINZQGM>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>


Resolving patch:
diff --git a/psychopy/iohub/devices/eyetracker/hw/gazepoint/gp3/__init__.py b/psychopy/iohub/devices/eyetracker/hw/gazepoint/gp3/__init__.py
--- a/psychopy/iohub/devices/eyetracker/hw/gazepoint/gp3/__init__.py
+++ b/psychopy/iohub/devices/eyetracker/hw/gazepoint/gp3/__init__.py
@@ -6,7 +6,10 @@
 import psychopy.logging as logging
 
 try:
-    from psychopy_eyetracker_gazepoint.gp3 import *
+    from psychopy_eyetracker_gazepoint.gp3 import (
+        __file__,
+        EyeTracker
+    )
 except (ModuleNotFoundError, ImportError, NameError):
     logging.error(
         "The Gazepoint eyetracker requires package " 
diff --git a/psychopy/iohub/devices/eyetracker/hw/tobii/__init__.py b/psychopy/iohub/devices/eyetracker/hw/tobii/__init__.py
--- a/psychopy/iohub/devices/eyetracker/hw/tobii/__init__.py
+++ b/psychopy/iohub/devices/eyetracker/hw/tobii/__init__.py
@@ -7,7 +7,10 @@
 
 yamlFile = None
 try:
-    from psychopy_eyetracker_tobii.tobii import *
+    from psychopy_eyetracker_tobii.tobii import (
+        __file__,
+        EyeTracker
+    )
 except (ModuleNotFoundError, ImportError, NameError):
     logging.error(
         "The Tobii eyetracker requires package 'psychopy-eyetracker-tobii' to "
diff --git a/psychopy/iohub/util/__init__.py b/psychopy/iohub/util/__init__.py
--- a/psychopy/iohub/util/__init__.py
+++ b/psychopy/iohub/util/__init__.py
@@ -168,7 +168,8 @@ def getSupportedConfigSettings(moduleName, deviceClassName=None):
         yamlFile = yamlRoot / pathlib.Path(moduleName.__file__).parent / fileName
         if not yamlFile.exists():
             raise FileNotFoundError(
-                "No config file found in module dir {0}".format(moduleName))
+                "No config file found in module dir for: {0}".format(
+                    moduleName))
         logging.debug(
             "Found ioHub device configuration file: {0}".format(yamlFile))
 


Test patch: