Python Forum
Strange issue with tkcalendar
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Strange issue with tkcalendar
#1
Hi all,

Like it says in the subject i have a strange issue with tkcalendar.

I have this line of code on script 1.py:

result = subprocess.run(['python', '2.py'], capture_output=True, text=True)
which calls script 2.py

i get an error message on the script 2.py when i do debug :

Error:
(<class 'ModuleNotFoundError'>, ModuleNotFoundError("No module named 'tkcalendar'"), <traceback object at 0x000001CD2AFA7500>)
even though i have installed tkcalendar and i have the code on the script:
from tkcalendar import Calendar
Now for the strange thing. When i run the first script that calls the second one nothing happens and script 2 doesn't run.
When i run script 2 by itself, it runs perfectly.

The strangest thing is that i ran the same scripts on my work computer and they work fine.

I'm working with pycharm

So... any help will be appreciated.
Reply


Messages In This Thread
Strange issue with tkcalendar - by dady - Apr-04-2023, 07:46 PM
RE: Strange issue with tkcalendar - by dady - Apr-04-2023, 08:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10 Edward_ 4 850 Apr-06-2025, 07:56 PM
Last Post: Edward_
  Strange issue Irhcsa 1 2,482 Oct-03-2018, 08:17 PM
Last Post: nilamo
  strange python3 issue tony1812 1 2,812 Sep-06-2018, 01:47 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020