PandasTableを含むTkinterGUIをEXE化しようと思います。
cx_freezeで実行しておりますがうまくいきません。
ビルドしたいコードのライブラリーです
main_of_main.py
import os,sys import tkinter as tk import pandastable from pandastable import Table, TableModel import pandas as pd import sqlite3 import datetime import tkinter.ttk as ttk from tkinter import messagebox
セットアップファイルです
setup.py
import sys from cx_Freeze import setup, Executable base = None if sys.platform == 'win32': base = 'Win32GUI' executables = [ Executable('main_of_main.py', base=base) ] setup(name='simple_Tkinter', version='0.2', description='Sample cx_Freeze Tkinter script', executables=executables )
エラー内容は、
Traceback (most recent call last): File "C:\Users\****\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\cx_Freeze\initscripts\__startup__.py", line 120, in run module_init.run(name + "__main__") File "C:\Users\****\AppData\Local\Programs\Python\Python38-32\Lib\site-packages\cx_Freeze\initscripts\Console.py", line 16, in run exec(code, module_main.__dict__) File "pandas_table_test.py", line 3, in <module> File "c:\users\****\appdata\local\programs\python\python38-32\lib\site-packages\pandastable\__init__.py", line 5, in <module> from .core import * File "c:\users\****\appdata\local\programs\python\python38-32\lib\site-packages\pandastable\core.py", line 42, in <module> from .data import TableModel File "c:\users\****\appdata\local\programs\python\python38-32\lib\site-packages\pandastable\data.py", line 30, in <module> from . import util ImportError: cannot import name 'util' from partially initialized module 'pandastable' (most likely due to a circular import) (C:\Users\****\target\lib\pandastable\__init__.pyc)
0 コメント