question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BUG: or (my) inability... Initializing MagicMirror 3rd party packages database Traceback (most recent call last):

See original GitHub issue

I have reinstalled raspbian and magicmirror 5 times now. The mirror runs without problems. the installation of mmpm also works so far without error messages. however, if I call any mmpm command after the installation, such as mmpm open --env, I get this error message:

pi@raspberrypi:~/MagicMirror $ mmpm open --env

  • Initializing MagicMirror 3rd party packages database Traceback (most recent call last): File “/home/pi/.local/bin/mmpm”, line 10, in <module> sys.exit(main()) File “/home/pi/.local/lib/python3.7/site-packages/mmpm/main.py”, line 12, in main main(args) File “/home/pi/.local/lib/python3.7/site-packages/mmpm/mmpm.py”, line 48, in main packages: Dict[str, List[MagicMirrorPackage]] = mmpm.core.load_packages(force_refresh=should_refresh) File “/home/pi/.local/lib/python3.7/site-packages/mmpm/core.py”, line 1112, in load_packages packages = retrieve_packages() File “/home/pi/.local/lib/python3.7/site-packages/mmpm/core.py”, line 1214, in retrieve_packages current_tag = td_soup[idx].contents[0].contents[0] File “/usr/lib/python3/dist-packages/bs4/element.py”, line 742, in getattr self.class.name, attr)) AttributeError: ‘NavigableString’ object has no attribute ‘contents’

just mmpm works: pi@raspberrypi:~/MagicMirror $ mmpm usage: mmpm <subcommand> [option(s)]

The MagicMirror Package Manager CLI simplifies the installation, removal, and general maintenance of MagicMirror packages

optional arguments: -h, --help show this help message and exit -v, --version display MMPM version number –guided-setup run the guided setup/installation of the GUI, environment variables, and other features –migrate migrate legacy file names and database keys. Only required once if prior version of MMPM is < 1.25

MMPM subcommands: use mmpm <subcommand> --help to see more details

{search,install,remove,update,upgrade,db,list,open,show,add-ext-pkg,log,mm-ctl,env} search search for MagicMirror packages install install MagicMirror packages remove remove locally installed packages update check for updates for installed packages, MMPM, and MagicMirror upgrade upgrade packages, MMPM, and/or MagicMirror, if available db refresh or display basic details about the database list list items such as installed packages, packages available, available upgrades, etc open quickly open config files, documentation, wikis, and MagicMirror itself show show details about one or more packages add-ext-pkg manually add MagicMirror packages to your local database log display, tail, or zip the MMPM log files mm-ctl commands to control the MagicMirror env display the MMPM environment variables and their value(s)

Visit https://github.com/Bee-Mar/mmpm/wiki for more details

also the --help for the commands: for e.g. pi@raspberrypi:~/MagicMirror $ mmpm open --help usage: mmpm open [–config] [–css] [–gui] [–mm-wiki] [–mmpm-wiki]

optional arguments: -h, --help show this help message and exit –config open MagicMirror config/config.js file in your $EDITOR –css open MagicMirror css/custom.css file (if it exists) in your $EDITOR –gui open the MMPM GUI in your default browser –magicmirror open MagicMirror in your default browser (uses the MMPM_MAGICMIRROR_URI address) –mm-wiki open the MagicMirror GitHub wiki in your default browser –mm-docs open the MagicMirror documentation in your default browser –mmpm-wiki open the MMPM GitHub wiki in your default browser –env open the MMPM run-time environment variables JSON configuration file in your $EDITOR

But as another example the call of: pi@raspberrypi:~/MagicMirror $ mmpm update

  • Initializing MagicMirror 3rd party packages database Traceback (most recent call last): File “/home/pi/.local/bin/mmpm”, line 10, in <module> sys.exit(main()) File “/home/pi/.local/lib/python3.7/site-packages/mmpm/main.py”, line 12, in main main(args) File “/home/pi/.local/lib/python3.7/site-packages/mmpm/mmpm.py”, line 48, in main packages: Dict[str, List[MagicMirrorPackage]] = mmpm.core.load_packages(force_refresh=should_refresh) File “/home/pi/.local/lib/python3.7/site-packages/mmpm/core.py”, line 1112, in load_packages packages = retrieve_packages() File “/home/pi/.local/lib/python3.7/site-packages/mmpm/core.py”, line 1214, in retrieve_packages current_tag = td_soup[idx].contents[0].contents[0] File “/usr/lib/python3/dist-packages/bs4/element.py”, line 742, in getattr self.class.name, attr)) AttributeError: ‘NavigableString’ object has no attribute ‘contents’

Please help, I seem to be overlooking something, but I have no idea what.

Cheers Keep on going ! When it’s running it’s a great tool!! J.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Bee-Marcommented, Mar 6, 2021

@lordscarlet @Gustavomonteiro66 @erikvoznak @interessted give it a shot now. There was a rogue new line in the description of a module on the 3rd party modules page

1reaction
Bee-Marcommented, Mar 6, 2021

@erikvoznak @lordscarlet @Gustavomonteiro66 getting on this right now. The fix should be quick

Read more comments on GitHub >

github_iconTop Results From Across the Web

This Normal? · Issue #55 · Bee-Mar/mmpm - GitHub
Just ran it same error returns ... Initializing MagicMirror 3rd party packages database ✓ ... Traceback (most recent call last):
Read more >
BUG - after 3/4 days - MagicMirror Forum
I installed magicMirror in my Raspberry pi 3 and i have successfully added my module. now, the software stop working after three/four days ......
Read more >
Untitled
Web.xml redirect url-pattern, 11 the quay reviews. ... kilos a metros cubicos, Cth software, Gsxr 1000 k9 wallpapers, Dayl stayne, Vertu phone 2014, ......
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
issue with udev ("the udev init script is written for baselayout 2, please do not use this script with baselayout 1")" status:RESOLVED resolution:OBSOLETE ......
Read more >
Raspberry Pi Face Recognition - PyImageSearch
Load the facial encodings data (Line 22). Instantiate our face detector using the Haar cascade method (Line 23). Initialize our VideoStream — we ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found