pmbarrett314/curses-menu

ModuleNotFoundError in ursesmenu/curses_menu.py:12

Closed this issue · 3 comments

Version

0.6.4

Operating System

Linux

Environment

Python 3.7 and Python 3.10

What happened?

Exception on import of CursesMenu:

from cursesmenu import CursesMenu
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-3117d83f8293> in <module>
----> 1 from cursesmenu import CursesMenu

~/.local/lib/python3.10/site-packages/cursesmenu/__init__.py in <module>
----> 1 from . import items
      2 from .curses_menu import CursesMenu
      3 from .item_group import ItemGroup
      4 
      5 __all__ = ["CursesMenu", "ItemGroup", "items"]

~/.local/lib/python3.10/site-packages/cursesmenu/items/__init__.py in <module>
      1 from .command_item import CommandItem
----> 2 from .exit_item import ExitItem
      3 from .external_item import ExternalItem
      4 from .function_item import FunctionItem
      5 from .menu_item import MenuItem

~/.local/lib/python3.10/site-packages/cursesmenu/items/exit_item.py in <module>
      3 from typing import Optional
      4 
----> 5 from cursesmenu.curses_menu import CursesMenu
      6 from cursesmenu.items.menu_item import MenuItem
      7 

~/.local/lib/python3.10/site-packages/cursesmenu/curses_menu.py in <module>
     10 from typing import TYPE_CHECKING, Any, Callable, DefaultDict, List, Optional, cast
     11 
---> 12 from deprecated import deprecated
     13 
     14 import cursesmenu.utils

ModuleNotFoundError: No module named 'deprecated'

You are probably just missing the Deprecated library (https://github.com/tantale/deprecated)

I seem to have left Deprecated out of the install dependencies, I'll have to fix that.