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: mmpm upgrade fails with "FileNotFoundError: [Errno 2] No such file or directory: ''"

See original GitHub issue

mmpm upgrade fails with “FileNotFoundError: [Errno 2] No such file or directory: ‘’”

Is this an issue with the CLI or GUI?

cli issue

Is this something that should be put in the Wiki?

YES

A clear and concise description of what the bug is.

mmpm update runs well:

mmpm update Checking MMM-Button [package] for updates ✓ Checking MMM-Buttons [package] for updates ✓ Checking MMM-connection-status [package] for updates ✓ Checking MMM-network-signal [package] for updates ✓ Checking MMM-OnScreenMenu [package] for updates ✓ Checking MMM-pages [package] for updates ✓ Checking MMM-page-indicator [package] for updates ✓ Checking MMM-Page-Selector [package] for updates ✓ Checking MMM-Remote-Control-Repository [package] for updates ✓ Checking MMM-Remote-Control [package] for updates ✓ Checking MMM-GoogleMapsTraffic [package] for updates ✓ Checking MMM-imhdsk [package] for updates ✓ Checking MMM-LocalTemperature [package] for updates ✓ Checking MMM-OpenWeatherMapForecast [package] for updates ✓ Checking MMM-weatherforecast [package] for updates ✓ Checking MMM-soccer [package] for updates ✓ Checking MMM-SystemStats [package] for updates ✓ Checking MMM-APOD [package] for updates ✓ Checking MMM-BackgroundSlideshow [package] for updates ✓ Checking MMM-GooglePhotos [package] for updates ✓ Checking MMM-ImageSlideshow [package] for updates ✓ Checking MMM-Meniny [package] for updates ✓ Checking MMM-NowPlayingOnSpotify [package] for updates ✓ Checking MagicMirror [application] for updates ✓ Checking MMPM [application] for updates ✓ 1 upgrade is available. Run mmpm list --upgradable for details

mmpm upgrade fails with:

Upgrade MMM-Remote-Control (https://github.com/Jopyth/MMM-Remote-Control) now? [yes/y] or [no/n]: y 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 149, in main mmpm.core.upgrade_available_packages_and_applications(args.assume_yes, additional_args) File “/home/pi/.local/lib/python3.7/site-packages/mmpm/core.py”, line 222, in upgrade_available_packages_and_applications error = upgrade_package(pkg) File “/home/pi/.local/lib/python3.7/site-packages/mmpm/core.py”, line 126, in upgrade_package os.chdir(package.directory) FileNotFoundError: [Errno 2] No such file or directory: ‘’

in the logs;

2021-04-06 10:38:53,289.289 INFO core - check_for_mmpm_updates: Checking for newer version of MMPM. Current version: 2.09 Checking for newer version of MMPM. Current version: 2.09 2021-04-06 10:38:53,289.289 INFO utils - run_cmd: Executing process curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py in foreground Executing process curl https://raw.githubusercontent.com/Bee-Mar/mmpm/master/mmpm/mmpm.py in foreground 2021-04-06 10:38:53,804.804 INFO core - check_for_mmpm_updates: No newer version of MMPM found > 2.09 available. The current version is the latest No newer version of MMPM found > 2.09 available. The current version is the latest 2021-04-06 10:38:59,430.430 INFO core - load_packages: Backing up database file as /home/pi/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak Backing up database file as /home/pi/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak 2021-04-06 10:38:59,433.433 INFO core - load_packages: Back up of database complete Back up of database complete 2021-04-06 10:39:19,000.000 INFO core - load_packages: Backing up database file as /home/pi/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak Backing up database file as /home/pi/.config/mmpm/MagicMirror-3rd-party-packages-db.json.bak 2021-04-06 10:39:19,003.003 INFO core - load_packages: Back up of database complete Back up of database complete 2021-04-06 10:39:19,015.015 ERROR utils - error_msg: Gunicorn access log file not found Gunicorn access log file not found 2021-04-06 10:39:19,016.016 ERROR utils - error_msg: Gunicorn error log file not found Gunicorn error log file not found

Expected behavior A clear and concise description of what you expected to happen.

upgrade of packages or magicmirror.

Operating System, Python3 Version, and Web Browser
(Please complete the following information)

PRETTY_NAME=“Raspbian GNU/Linux 10 (buster)” NAME=“Raspbian GNU/Linux” VERSION_ID=“10” VERSION=“10 (buster)” VERSION_CODENAME=buster ID=raspbian ID_LIKE=debian HOME_URL=“http://www.raspbian.org/” SUPPORT_URL=“http://www.raspbian.org/RaspbianForums” BUG_REPORT_URL=“http://www.raspbian.org/RaspbianBugs

python3 --version Python 3.7.3

MMPM Environment Settings

{ “MMPM_MAGICMIRROR_ROOT”: “/home/pi/MagicMirror”, “MMPM_MAGICMIRROR_URI”: “http://127.0.1.1:8080”, “MMPM_MAGICMIRROR_PM2_PROCESS_NAME”: “PM2 v4.5.5: God Daemon (/home/pi/.pm2)”, “MMPM_MAGICMIRROR_DOCKER_COMPOSE_FILE”: “.”, “MMPM_IS_DOCKER_IMAGE”: false }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Bee-Marcommented, Dec 11, 2021

@r4nd1-gh @jamesvcc @erikvoznak there is a fix I’m trying to push for the active modules along with this to the master branch shortly. Once my tokens are updated and the build is working on the develop branch there will be a new version pushed for download

0reactions
Bee-Marcommented, Dec 15, 2021

@erikvoznak @jamesvcc @r4nd1-gh the 2.12 was uploaded to PyPi last night which contains the fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python FileNotFoundError: [Errno 2] No such file or directory ...
This error tells you that you are trying to access a file or folder that does not exist. To fix this error, check...
Read more >
FileNotFoundError: [Errno 2] No such file or directory [duplicate]
The error is telling you that there is no file of that name in the working directory. Try using the exact, or absolute,...
Read more >
1503496 – FileNotFoundError: [Errno 2] No such file or directory
Description of problem: Installing workstation everything Version-Release number of selected component: anaconda-27.20.2-1 The following was ...
Read more >
Bug listing with status CONFIRMED as at 2022/12/20 18:46:38
config file verification" status:CONFIRMED resolution: severity:enhancement · Bug:70337 ... with distcc - Build failed: [Errno 2] No such file or directory: ...
Read more >
TripleO Victoria-1 - Launchpad
Drivers cannot target bugs and blueprints to this milestone. ... failing with error: FileNotFoundError: [Errno 2] No such file or directory: ...
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