Skip to content
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

error on running script to verify install #737

Closed
ThomasDzelzainis opened this issue Jan 24, 2024 · 1 comment
Closed

error on running script to verify install #737

ThomasDzelzainis opened this issue Jan 24, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ThomasDzelzainis
Copy link

Hi,

I am just reporting an error I am getting. I think something similar has been reported before and is just an issue with cleanup, but thought it may be worth reporting anyway in case it helps you track down the source.

I have installed the latest nightly build of micromanager, and at the same time installed pycro-manager using pip install. I am using python 3.12.1 64 bit, and runing the script through visual studio code version 1.85.2

When I run the example script to verify pycro installation, it gives the expected output, and then a traceback for an error. Full output is as follows:

<pycromanager.zmq_bridge.bridge.mmcorej_CMMCore object at 0x000001F2CAC4B260>
Traceback (most recent call last):
File "C:\Users\xwv33915\AppData\Local\Programs\Python\Python312\Lib\site-packages\pycromanager\zmq_bridge\bridge.py", line 655, in del
self._close()
File "C:\Users\xwv33915\AppData\Local\Programs\Python\Python312\Lib\site-packages\pycromanager\zmq_bridge\bridge.py", line 577, in _close
reply_json = self._get_bridge()._receive(timeout=self._timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xwv33915\AppData\Local\Programs\Python\Python312\Lib\site-packages\pycromanager\zmq_bridge\bridge.py", line 340, in _receive
return self._main_socket.receive(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xwv33915\AppData\Local\Programs\Python\Python312\Lib\site-packages\pycromanager\zmq_bridge\bridge.py", line 166, in receive
reply = self._socket.recv_multipart(flags=zmq.NOBLOCK)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\xwv33915\AppData\Local\Programs\Python\Python312\Lib\site-packages\zmq\sugar\socket.py", line 805, in recv_multipart
parts = [self.recv(flags, copy=copy, track=track)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "zmq\backend\cython\socket.pyx", line 805, in zmq.backend.cython.socket.Socket.recv
File "zmq\backend\cython\socket.pyx", line 841, in zmq.backend.cython.socket.Socket.recv
File "zmq\backend\cython\socket.pyx", line 199, in zmq.backend.cython.socket._recv_copy
File "zmq\backend\cython\socket.pyx", line 194, in zmq.backend.cython.socket._recv_copy
File "zmq\backend\cython\checkrc.pxd", line 21, in zmq.backend.cython.checkrc._check_rc
ImportError: sys.meta_path is None, Python is likely shutting down
Exception in destructor for <pycromanager.zmq_bridge.bridge.mmcorej_CMMCore object at 0x000001F2CAC4B260> on thread MainThread

Anyway, thanks for developing pycro-manager, I think it is going to be very useful for my work!

Cheers,

Tom.

@ThomasDzelzainis ThomasDzelzainis added the bug Something isn't working label Jan 24, 2024
@henrypinkard
Copy link
Member

Thanks for the reporting the error -- I think I finally found the fix in #740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants