I’m using PsychoPy 2022.2.4 and Mac OS 11.6.4. (I have also received this error when trying to run this experiment on Mac OS X 10.11 and Mac OS 10.13.)
I’m trying to use pynetstation to connect to my lab’s EGI NetStation computer. That computer is running Net Station 4.4.2 on Mac OS X 10.6. It is connected to a Net Amps 300 amplifier.
I am attempting to implement the same code from the PsychoPy documentation on pynetstation (https://psychopy.org/hardware/egiNetStation.html). When I run the PsychoPy experiment, it times out, and I receive the following messages in the log:
308.0067 INFO Loaded monitor calibration from ['2021_07_08 12:22']
2022-11-15 11:27:52.025 python[1952:22787] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/51/mhhhd0r95wd3k994jbk1mwpc0000gp/T/org.opensciencetools.psychopy.savedState
Traceback (most recent call last):
File "ntplib.pyc", line 318, in request
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/mbv0/Desktop/Research/flanker_eeg/testing_netstation/test1_lastrun.py", line 126, in <module>
eci_client.begin_rec()
File "/Applications/PsychoPy_v2022-2-4.app/Contents/Resources/lib/python3.8/egi_pynetstation/NetStation.py", line 103, in wrapper
func(*args, **kwargs)
File "/Applications/PsychoPy_v2022-2-4.app/Contents/Resources/lib/python3.8/egi_pynetstation/NetStation.py", line 198, in begin_rec
self.ntpsync()
File "/Applications/PsychoPy_v2022-2-4.app/Contents/Resources/lib/python3.8/egi_pynetstation/NetStation.py", line 103, in wrapper
func(*args, **kwargs)
File "/Applications/PsychoPy_v2022-2-4.app/Contents/Resources/lib/python3.8/egi_pynetstation/NetStation.py", line 153, in ntpsync
response = c.request(self._ntp_ip, version=3)
File "ntplib.pyc", line 323, in request
ntplib.NTPException: No response received from 10.10.10.42.
################# Experiment ended with exit code 1 [pid:1952] #################
I also am monitoring the TCP/IP Port log on the Net Station computer. It seems that the connection is established, but something about the NTP lines won’t work. Here is the log from the Net Station computer:
Query: NTEL
Identify:
Attention
OK
Attention
OK
Timeout waiting for response from Attention command.
I’ve tried using some code on an older experiment machine (as I mentioned above), running a much older version of PsychoPy that uses egi.simple (as in this post), and I can establish a connection with Net Station that way, but I am concerned about precise timestamping, since millisecond precision is required for my planned experiments.
My specific questions are:
- Is there a fix for the error I’m receiving when I use egi_pynetstation and PsychoPy 2022.2.4?
- If this version of pynetstation is simply incompatible with Net Station 4.4.2, and I must use older versions of the library/PsychoPy, are there any timing problems I should be on the lookout for?
Thank you very much!