# Python link evaporates after upgrading to Monterey

**URL:** <https://mworks.discourse.group/t/python-link-evaporates-after-upgrading-to-monterey/927>\
**Category:** Support\
**Created:** [November 12, 2023, 5:35pm UTC](https://mworks.discourse.group/t/python-link-evaporates-after-upgrading-to-monterey/927 "2023-11-12T17:35:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![meyert11](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/meyert11/32/607_2.png) [@meyert11](https://mworks.discourse.group/u/meyert11)\
**Post date:** [November 12, 2023, 5:35pm UTC](https://mworks.discourse.group/t/python-link-evaporates-after-upgrading-to-monterey/927/1 "2023-11-12T17:35:33Z")

</div>

Hey Chris,

I’ve avoided upgrading to Monterey as long as my IT department would allow, but Friday I had to do it on one of our Mworks macs and it seems to have caused an issue when we try to run a Python script to push a stimulus list into mworks. It errors when trying to initialize the IPCClientConduit server. At first I figured it was a broken link, but the link to Mworks/Scripts folder is included locally in the file, so now I’m a bit dumbfounded. Any idea what might be happening?

to help, the exact error is  
client = IPCClientConduit(‘server\_conduit’)  
RuntimeError: No such file or directory

update - after trying to initialize mworks (I haven’t opened eyelink so it was fated to fail, I’m doing this remotely) I was able to get to the next step:  
Sending stimulus list 10Nov23  
Traceback (most recent call last):  
File “sendStimList.py”, line 53, in   
client.send\_data(client.reverse\_codec[‘useImportedList’], 1) # flag to use the list being sent!  
RuntimeError: Timeout while waiting for remote codec

which means that it was able to connect to the server, but then hickuped on the client.reverse\_codec class. Tomorrow morning I’ll try to run it after the experiment successfully loads into mworks and see if it can establish and send the file, fingers crossed!

[sendStimList.py](https://mworks.discourse.group/uploads/short-url/gxO8XrJPwiRPdjSVujHmWYcahWt.py) (1.8 KB)

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [November 13, 2023, 2:41pm UTC](https://mworks.discourse.group/t/python-link-evaporates-after-upgrading-to-monterey/927/2 "2023-11-13T14:41:23Z")

</div>

Hi Travis,

> Tomorrow morning I’ll try to run it after the experiment successfully loads into mworks and see if it can establish and send the file

If the experiment isn’t loaded, your Python script is definitely going to fail one way or another. In order to exchange data with MWServer, `IPCClientConduit` requires a [server-side conduit](https://mworks.github.io/documentation/latest/components/server_side_event_conduit.html) in your experiment. If the experiment isn’t loaded, then no server-side conduit is available, and `IPCClientConduit`’s attempts to communicate with it will fail.

I suspect that things will work once you load your experiment successfully, but if not, please let me know!

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![meyert11](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/meyert11/32/607_2.png) [@meyert11](https://mworks.discourse.group/u/meyert11)\
**Post date:** [November 13, 2023, 3:14pm UTC](https://mworks.discourse.group/t/python-link-evaporates-after-upgrading-to-monterey/927/3 "2023-11-13T15:14:13Z")

</div>

Hi Chris,

You’re right! I could’ve swore I was able to run this script without mworks running, but the server must’ve always been running in the background, because I was able to load the stimlist once the experiment loaded! Woohoo

Thanks!

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [November 27, 2023, 2:20pm UTC](https://mworks.discourse.group/t/python-link-evaporates-after-upgrading-to-monterey/927/4 "2023-11-27T14:20:55Z")

</div>


