-2

when I click on the program to run it I see the message say : Traceback (most recent call last):

  File "employee manager.py", line 388, in <module>
  File "tkcalendar\dateentry.py", line 128, in __init__
  File "tkcalendar\calendar_.py", line 258, in __init__
  File "babel\dates.py", line 351, in get_day_names
  File "babel\core.py", line 652, in days
  File "babel\core.py", line 363, in _data
  File "babel\localedata.py", line 140, in load
  File "babel\localedata.py", line 146, in load
ModuleNotFoundError: No module named 'babel.numbers'

I need to open the program

1

1 Answer 1

1

A: More information is most likely needed to solve this

Also, it says: ModuleNotFoundError: No module named 'babel.numbers' "numbers" is a subscription of babel. If you want to grab a numbers subscription, try doing: from babel import numbers.

Good Luck! I will try to correspond as needed!

7
  • Assuming they did pip install babel Feb 4 at 0:40
  • true, though "babel.numbers" isn't proper syntax for a module anyhow.
    – Jonathan
    Feb 4 at 0:40
  • @Jonathan what? wdym not proper syntax? how is it not proper? one can surely do import babel.numbers
    – Matiiss
    Feb 4 at 0:46
  • hmmm... I haven't worked with babel personally, but generally, the "." modifier is reserved for functions, such as; class Animal(): def bark(): print(sound) x = Animal() x.bark()
    – Jonathan
    Feb 4 at 0:54
  • In terms of a module, you use: from babel import {sub-module name}
    – Jonathan
    Feb 4 at 0:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.