You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running the latest versions of pyQuil and the Forest SDK
I checked to make sure that this bug has not already been reported
Issue Description
The QVM starts a server through port 5000, but this resulted in the error USOCKET:ADDRESS-IN-USE-ERROR on my MacBook.
How to Reproduce
Run qvm -S on a Mac with airplay receiver enabled.
Environment Context
Operating System: MacOS Ventura 13.2.1 (22D68)
Python Version (python -V): Python 3.11.4
Quilc Version (quilc --version): 1.23.0 [e6c0939]
QVM Version (qvm --version): 1.17.1 [cf3f91f]
Solution
Running lsof -i -P -n | grep LISTEN shows that there is a ControlCenter process using port 5000. This thread seems to indicate that it is the airplay receiver doing this. In system setting, under "Airdrop & Handoff", you can disable Airplay Receiver. This frees the port and now qvm -S runs as expected.
It might be a good idea to add this to the docs, as Airplay Receiver seems to be enabled by default on MacOS.
The text was updated successfully, but these errors were encountered:
Thanks for the report, @AJnsm. This an issue known by the QVM developers. I've pinned your report so it will be at the top of the pyquil issues list and thus hopefully more discoverable. I'll make a note to see how our documentation should be changed too.
For reference, the way I am obviating to this is by starting the QVM on port 5001 (e.g., docker run --rm -idt -p 5000:5001 rigetti/qvm -), and then setting the env var
Pre-Report Checklist
Issue Description
The QVM starts a server through port 5000, but this resulted in the error
USOCKET:ADDRESS-IN-USE-ERROR
on my MacBook.How to Reproduce
Run
qvm -S
on a Mac with airplay receiver enabled.Environment Context
Operating System: MacOS Ventura 13.2.1 (22D68)
Python Version (
python -V
): Python 3.11.4Quilc Version (
quilc --version
): 1.23.0 [e6c0939]QVM Version (
qvm --version
): 1.17.1 [cf3f91f]Solution
Running
lsof -i -P -n | grep LISTEN
shows that there is aControlCenter
process using port 5000. This thread seems to indicate that it is the airplay receiver doing this. In system setting, under "Airdrop & Handoff", you can disable Airplay Receiver. This frees the port and nowqvm -S
runs as expected.It might be a good idea to add this to the docs, as Airplay Receiver seems to be enabled by default on MacOS.
The text was updated successfully, but these errors were encountered: