AOtools / soapy

A Python Adaptive Optics Simulation
GNU General Public License v3.0
85 stars 32 forks source link

GUI not working on python 3.8.3 #116

Closed geruLt closed 3 years ago

geruLt commented 3 years ago

Hello, tried to use the but got an error about time.clock(), it doesn't exist for python 3.8 so changed it with time.perf_counter(), then got another error:

Loading configuration file... Pixel Scale: 12.50 pxls/m subScreenSize: 102 simulation pixels Loading configuration file... success! Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 528, in get value = obj._trait_values[self.name] KeyError: 'iopub_socket'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 528, in get value = obj._trait_values[self.name] KeyError: 'iopub_thread'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Scripts\soapy", line 4, in import('pkg_resources').run_script('soapy===7668de37c3f59274dd4af6cdb3043ccc540117cd', 'soapy') File "C:\ProgramData\Anaconda3\lib\site-packages\pkg_resources__init.py", line 650, in run_script self.require(requires)[0].run_script(script_name, ns) File "C:\ProgramData\Anaconda3\lib\site-packages\pkg_resources__init__.py", line 1446, in run_script exec(code, namespace, namespace) File "c:\programdata\anaconda3\lib\site-packages\soapy-7668de37c3f59274dd4af6cdb3043ccc540117cd-py3.8.egg\EGG-INFO\scripts\soapy", line 120, in simGUI = gui.start_gui(sim, useOpenGL=args.gl, verbosity=verbosity) File "C:\ProgramData\Anaconda3\lib\site-packages\soapy-7668de37c3f59274dd4af6cdb3043ccc540117cd-py3.8.egg\soapy\gui\gui.py", line 836, in start_gui gui = GUI(simulation, useOpenGL=useOpenGL, verbosity=verbosity) File "C:\ProgramData\Anaconda3\lib\site-packages\soapy-7668de37c3f59274dd4af6cdb3043ccc540117cd-py3.8.egg\soapy\gui\gui.py", line 174, in init self.console = IPythonConsole(self.ui.consoleLayout, self.sim, self) File "C:\ProgramData\Anaconda3\lib\site-packages\soapy-7668de37c3f59274dd4af6cdb3043ccc540117cd-py3.8.egg\soapy\gui\gui.py", line 743, in init self.kernel_manager.start_kernel() File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\inprocess\manager.py", line 46, in start_kernel self.kernel = InProcessKernel(parent=self, session=self.session) File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\inprocess\ipkernel.py", line 72, in init super(InProcessKernel, self).init(**traits) File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\ipkernel.py", line 71, in init self.shell.displayhook.pub_socket = self.iopub_socket File "C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 556, in get return self.get(obj, cls) File "C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 535, in get value = self._validate(obj, dynamic_default()) File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\inprocess\ipkernel.py", line 67, in _default_iopub_socket return self.iopub_thread.background_socket File "C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 556, in get return self.get(obj, cls) File "C:\ProgramData\Anaconda3\lib\site-packages\traitlets\traitlets.py", line 535, in get value = self._validate(obj, dynamic_default()) File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\inprocess\ipkernel.py", line 59, in _default_iopub_thread thread = IOPubThread(self._underlying_iopub_socket) File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\iostream.py", line 71, in init self._setup_event_pipe() File "C:\ProgramData\Anaconda3\lib\site-packages\ipykernel\iostream.py", line 90, in _setup_event_pipe self._event_puller = ZMQStream(pipe_in, self.io_loop) File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 127, in init__ self._init_io_state() File "C:\ProgramData\Anaconda3\lib\site-packages\zmq\eventloop\zmqstream.py", line 546, in _init_io_state self.io_loop.add_handler(self.socket, self._handle_events, self.io_loop.READ) File "C:\ProgramData\Anaconda3\lib\site-packages\tornado\platform\asyncio.py", line 100, in add_handler self.asyncio_loop.add_reader(fd, self._handle_events, fd, IOLoop.READ) File "C:\ProgramData\Anaconda3\lib\asyncio\events.py", line 501, in add_reader raise NotImplementedError NotImplementedError Error in atexit._run_exitfuncs: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\soapy-7668de37c3f59274dd4af6cdb3043ccc540117cd-py3.8.egg\soapy\pyqtgraph__init__.py", line 312, in cleanup if isinstance(o, QtGui.QGraphicsItem) and isQObjectAlive(o) and o.scene() is None: ReferenceError: weakly-referenced object no longer exists

Edit: Just realized its ''Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, and pypy'' will create another environment and try again.