adamerose / PandasGUI

A GUI for Pandas DataFrames
MIT No Attribution
3.15k stars 226 forks source link

Fatal Python error: PyEval_RestoreThread - moving Tkinter window with PandasGUI open #215

Open lachesis17 opened 1 year ago

lachesis17 commented 1 year ago

Trying to move a Tkinter window at any time gives me this error across multiple systems.

Environment Windows 10 64-bit Python 3.10 64-bit pandasgui-0.2.13

Error:

PandasGUI INFO � pandasgui.gui � Opening PandasGUI
Fatal Python error: PyEval_RestoreThread: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)
Python runtime state: initialized

Current thread 0x000038c4 (most recent call first):
  File "C:\Python\lib\site-packages\pandasgui\gui.py", line 106 in __init__
  File "C:\Python\lib\site-packages\pandasgui\gui.py", line 468 in show
  File "C:\Desktop\file.py", line 398 in start_pandasgui
  File "C:\Python\lib\site-packages\customtkinter\widgets\ctk_button.py", line 372 in clicked
  File "C:\Python\lib\tkinter\__init__.py", line 1921 in __call__
  File "C:\Python\lib\tkinter\__init__.py", line 1458 in mainloop
  File "C:\Python\lib\site-packages\customtkinter\windows\ctk_tk.py", line 106 in mainloop
  File "C:\Desktop\file.py", line 1535 in <module>

Extension modules: win32api, _win32sysloader, numpy.core._multiarray_umath, numpy.core._multiarray_tests, numpy.linalg._umath_linalg, numpy.fft._pocketfft_internal, numpy.random._common, numpy.random.bit_generator, numpy.random._bounded_integers, numpy.random._mt19937, numpy.random.mtrand, numpy.random._philox, numpy.random._pcg64, numpy.random._sfc64, numpy.random._generator, pandas._libs.tslibs.dtypes, pandas._libs.tslibs.base, pandas._libs.tslibs.np_datetime, pandas._libs.tslibs.nattype, pandas._libs.tslibs.timezones, pandas._libs.tslibs.ccalendar, pandas._libs.tslibs.tzconversion, pandas._libs.tslibs.strptime, pandas._libs.tslibs.fields, pandas._libs.tslibs.timedeltas, pandas._libs.tslibs.timestamps, pandas._libs.properties, pandas._libs.tslibs.offsets, pandas._libs.tslibs.parsing, pandas._libs.tslibs.conversion, pandas._libs.tslibs.period, pandas._libs.tslibs.vectorized, pandas._libs.ops_dispatch, pandas._libs.missing, pandas._libs.hashtable, pandas._libs.algos, pandas._libs.interval, pandas._libs.tslib, pandas._libs.lib, pandas._libs.hashing, pyarrow.lib, pyarrow._hdfsio, pandas._libs.ops, pandas._libs.arrays, pandas._libs.index, pandas._libs.join, pandas._libs.sparse, pyarrow._compute, pandas._libs.reduction, pandas._libs.indexing, pandas._libs.internals, pandas._libs.writers, pandas._libs.window.aggregations, pandas._libs.window.indexers, pandas._libs.reshape, pandas._libs.groupby, pandas._libs.testing, pandas._libs.parsers, pandas._libs.json, PyQt5.QtCore, PyQt5.QtGui, PyQt5.QtWidgets, win32com.shell.shell, PyQt5.QtWebChannel, PyQt5.QtNetwork, PyQt5.QtWebEngineCore, PyQt5.QtPrintSupport, PyQt5.QtWebEngineWidgets, pyodbc, matplotlib._c_internal_utils, PIL._imaging, matplotlib._path, kiwisolver._cext, matplotlib._image (total: 74)