Closed rcberg3 closed 10 months ago
I was able to revert LINE 1135 in the CORE.PY back to the previous commit line. And it works.
You can see my comment here. https://github.com/Bee-Mar/mmpm/commit/0228b2f24c6873cd01c4bcce7c08778a573537db?diff=split&w=0#diff-61e91788176d3558cdf2905aa7c4c116179863f8fabb9a00463ac30f021c3254R1135
@zerojarvis I'm currently in the midst of a total rework of the application and have put off fixing bugs to get it out ASAP. If you'd like to make a PR, please feel free. If interested, take a look at the code-cleanup
branch which is vastly different from the current
thank you @zerojarvis - that helped
@zerojarvis @slugmuffin @rcberg3 has been released. This is a complete rework of the application with improvements and stability all-around. Please see How to Migrate to 4.x.x as well the rest of the pages in the Wiki
Describe the Bug
Getting an error when searching or installing mopdules.
Is this an issue with the CLI or GUI? CLI
Is this something that should be put in the Wiki? maybe? seems to be a repeat, see 2 years ago: https://github.com/Bee-Mar/mmpm/issues/68
To Reproduce Steps to reproduce the behavior:
mmpm search mbta
ormmpm install MMM-MBTA
Operating System, Python3 Version, and Web Browser\ (Please complete the following information)
output from
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"output from
python3 --version
Python 3.11.2MMPM Environment Settings
output from
mmpm env
Initializing MagicMirror 3rd party packages database Traceback (most recent call last): File "/home/pi/.local/bin/mmpm", line 8, in
sys.exit(main())
^^^^^^
File "/home/pi/.local/lib/python3.11/site-packages/mmpm/entrypoint.py", line 12, in main
main(args)
File "/home/pi/.local/lib/python3.11/site-packages/mmpm/mmpm.py", line 51, in main
packages: Dict[str, List[MagicMirrorPackage]] = mmpm.core.load_packages(force_refresh=should_refresh)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.local/lib/python3.11/site-packages/mmpm/core.py", line 1054, in load_packages
packages = retrieve_packages()
^^^^^^^^^^^^^^^^^^^
File "/home/pi/.local/lib/python3.11/site-packages/mmpm/core.py", line 1135, in retrieve_packages
categories: list = [category.contents[-1].contents[0] for category in categories_soup][2:]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/pi/.local/lib/python3.11/site-packages/mmpm/core.py", line 1135, in
categories: list = [category.contents[-1].contents[0] for category in categories_soup][2:]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/bs4/element.py", line 980, in getattr
raise AttributeError(
AttributeError: 'NavigableString' object has no attribute 'contents'
Attach the file produced
Download MMPM log files
within the Control Center of the GUI or from themmpm log --zip