-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Connection via pycromanager failing #480
Comments
Went ahead and did a fresh reinstall of everything just in case. Still getting the same issue. recOrder gui does seem to connect at least partially to MM as it correctly imports the Config Group name from MM for the Meadowlark controller. |
That's a good sign! Our most recent successful tests have been with MicroManger nightly build 2023-04-26. Are you using this version? Are you using Are there any other potential incompatibilities in this table? |
Only potential incompatibility I see is Windows 11 rather than 10. I am using the Micromanager nightly build recommended, Only thing I'm unsure of is the version of pycromanager. Is there an easy way to tell? I tried |
You can find the pycromanager version with This issue seems related. Are you by chance running in debug mode from an IDE? |
Haha for some reason 'grep' is not recognized on my Anaconda install... I looked in the micromanager folder and found a file called "PycroManagerJava-0.38.10.jar" if this is the version of pycromanager then I don't have the right one, but when I try to install 0.27.2 by using pip Terminal tells me that the requirements are already met and it changes PyQT to the incompatible form again... I'm running Anaconda and using the Anaconda Powershell Prompt with administrator privileges. I don't think I have debug mode enabled on anything unless Anaconda enables it by default. I'd be happy to hop on a zoom call and go through the process with a clean install if you guys have the time to help me figure out where I'm going wrong! |
@dbcortes2042000 can you share the following:
|
1) terminal output: 2) output of Package Version aiobotocore 2.15.0 *3) Debug output on failed connect: DEBUG - Established ZMQ Bridge and found Core and Studio DEBUG - Executing @injected reset_scroll_progress(viewer: napari.viewer.Viewer) with args: (Viewer(camera=Camera(center=(0.0, 0.0, 0.0), zoom=1.0, angles=(0.0, 0.0, 90.0), perspective=0.0, mouse_pan=True, mouse_zoom=True), cursor=Cursor(position=(1.0, 1.0), scaled=True, style=<CursorStyle.STANDARD: 'standard'>, size=1.0), dims=Dims(ndim=2, ndisplay=2, order=(0, 1), axis_labels=('0', '1'), rollable=(True, True), range=(RangeTuple(start=0.0, stop=2.0, step=1.0), RangeTuple(start=0.0, stop=2.0, step=1.0)), margin_left=(0.0, 0.0), margin_right=(0.0, 0.0), point=(0.0, 0.0), last_used=0), grid=GridCanvas(stride=1, shape=(-1, -1), enabled=False), layers=[], help='', status='Ready', tooltip=Tooltip(visible=False, text=''), theme='dark', title='napari', mouse_over_canvas=False, mouse_move_callbacks=[], mouse_drag_callbacks=[], mouse_double_click_callbacks=[], mouse_wheel_callbacks=[<function dims_scroll at 0x0000023A82C30E50>], _persisted_mouse_event={}, _mouse_drag_gen={}, _mouse_wheel_gen={}, _keymap={}),), kwargs: {} |
Thanks @dbcortes2042000, this is helpful. I think this narrows the failure to this section. I see two possible failure modes:
If (temporarily) renaming your MicroManager "Channel" fixes the issue, then this is a bug. |
@talonchandler it appears my issue was with the naming of the Meadowlark group. I did not realize it needed to be named "Channel" specifically! Changing the name has allowed recOrder to connect succesfully. Hopefully I won't have any more issues! Thanks so much! |
That's great @dbcortes2042000, thanks for your help with debugging. This is certainly a bug, and I've just opened a PR that I expect to fix it. I will test and merge it when I get a chance. |
Running on Windows 11 with Anaconda, had to install with modified napari:
pip install recOrder-napari[acq]==0.4.2rc1
recOrder opens just fine now but does not connect to MicroManager which I have running an old Olympus IX81 body along with a TSI Thorlabs CS135MUN camera.
Already checked that I have enabled port 4827 for pycromanager.
I tried changing the order in which I open micromanager and napari w/ recOrder and consistently get the same error:
Exception ignored in: <function _JavaObjectShadow.__del__ at 0x000001AB444B7BE0> Traceback (most recent call last): File "C:\Users\cortesadmin\anaconda3\envs\recOrder\lib\site-packages\pycromanager\zmq_bridge\_bridge.py", line 639, in __del__ self._close() File "C:\Users\cortesadmin\anaconda3\envs\recOrder\lib\site-packages\pycromanager\zmq_bridge\_bridge.py", line 563, in _close self._send(message) File "C:\Users\cortesadmin\anaconda3\envs\recOrder\lib\site-packages\pycromanager\zmq_bridge\_bridge.py", line 577, in _send return self._get_bridge()._send(message) File "C:\Users\cortesadmin\anaconda3\envs\recOrder\lib\site-packages\pycromanager\zmq_bridge\_bridge.py", line 325, in _send return self._main_socket.send(message, timeout=timeout) File "C:\Users\cortesadmin\anaconda3\envs\recOrder\lib\site-packages\pycromanager\zmq_bridge\_bridge.py", line 116, in send raise Exception("Tried to send message through socket {}, which is already closed".format(self._port)) Exception: Tried to send message through socket 4827, which is already closed Exception ignored in: <function _JavaObjectShadow.__del__ at 0x000001AB444B7BE0> Traceback (most recent call last): File "C:\Users\cortesadmin\anaconda3\envs\recOrder\lib\site-packages\pycromanager\zmq_bridge\_bridge.py", line 639, in __del__ self._close() File "C:\Users\cortesadmin\anaconda3\envs\recOrder\lib\site-packages\pycromanager\zmq_bridge\_bridge.py", line 563, in _close self._send(message) File "C:\Users\cortesadmin\anaconda3\envs\recOrder\lib\site-packages\pycromanager\zmq_bridge\_bridge.py", line 577, in _send return self._get_bridge()._send(message) File "C:\Users\cortesadmin\anaconda3\envs\recOrder\lib\site-packages\pycromanager\zmq_bridge\_bridge.py", line 325, in _send return self._main_socket.send(message, timeout=timeout) File "C:\Users\cortesadmin\anaconda3\envs\recOrder\lib\site-packages\pycromanager\zmq_bridge\_bridge.py", line 116, in send raise Exception("Tried to send message through socket {}, which is already closed".format(self._port)) Exception: Tried to send message through socket 4827, which is already closed
The text was updated successfully, but these errors were encountered: