Closed HoomanTahmasebipour closed 2 years ago
Hi @HoomanTahmasebipour
I was not able to reproduce this issue. I've tried 3.7.9, as well as several other versions of 3.7.x, and everything works as expected. For example, on a 3.7.9 container:
root@36f49bb122f9:/# vi menu.py
root@36f49bb122f9:/# python --version
Python 3.7.9
root@36f49bb122f9:/# python menu.py
┌─────────────────────────────────────────────────────────────────────────┐
│ │
│ Root Menu │
│ │
│ This is the Root Menu Subtitle │
│ │
│ │
│ 1 - Item 1 │
│ 2 - Fun item │
│ 3 - Command │
│ 4 - Submenu item │
│ 5 - Another submenu │
│ 6 - Exit │
│ │
│ │
└─────────────────────────────────────────────────────────────────────────┘
>> 6
root@36f49bb122f9:/#
Closing this issue for now, but please feel free to re-open if you're still experiencing issues.
The code snippet I put in the title fails on python version 3.7.9, but it works in slightly older releases of python (tested on python 3.7.4). For the sake of longevity, I was hoping that this issue could be address so that the package is compatible with the latest python release.
To recreate this issue:
Any help on this issue would be appreciated! I have already ensured that the import path is current in later versions of python, and that the consolemenu package exists and the items directory exists within it.
Thank you in advance!