j4321 / tkcalendar

Calendar widget for Tkinter
https://pypi.python.org/pypi/tkcalendar
GNU General Public License v3.0
97 stars 33 forks source link

tkcalendar module not found #75

Open pixpic opened 3 years ago

pixpic commented 3 years ago

So I have notice people already touching on this subject. Happily I followed the instructions by them but I seem to get nowhere in my position,

from tkinter import *
import sqlite3
from tkcalendar import *
import datetime
import babel.numbers

I added the babel.numbers import from what I read in other post.

import calendar
from babel.dates import format_date, parse_date, get_day_names, get_month_names
from babel.numbers import *

I also added the last two line to my calendar.py and I even added --hidden-import babel.numbers while running pyinstaller but I still can run my .exe file because tkcalendar not found.

             hiddenimports=['babel.numbers'],

Please Help

photodude commented 1 year ago

I think you need to do from tkcalendar import Calendar assuming you have installed tkcalendar via conda or PIP --hidden-import "babel.numbers" while running pyinstaller should be sufficient, no need to add an additional imports to your script