mmpm: BUG: can't install

Describe the Bug

Is this an issue with the CLI or GUI? CLI

Is this something that should be put in the Wiki? Maybe?

A clear and concise description of what the bug is.

Installed a fresh copy of Raspberry Pi OS 32 bit Debian Bullseye Desktop and can install Magic Mirror as described but can’t get past the second line of install for mmpm “python3 -m pip install --upgrade --no-cache-dir mmpm”

Collecting pynacl>=1.0.1 Downloading https://www.piwheels.org/simple/pynacl/PyNaCl-1.5.0-cp39-cp39-linux_armv7l.whl (585 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 585.7/585.7 kB 1.2 MB/s eta 0:00:00 Collecting zipp>=0.5 Downloading zipp-3.11.0-py3-none-any.whl (6.6 kB) Collecting cffi>=1.4.1 Downloading https://www.piwheels.org/simple/cffi/cffi-1.15.1-cp39-cp39-linux_armv7l.whl (364 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 364.7/364.7 kB 1.1 MB/s eta 0:00:00 Collecting pycparser Downloading https://www.piwheels.org/simple/pycparser/pycparser-2.21-py2.py3-none-any.whl (119 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 119.7/119.7 kB 14.6 MB/s eta 0:00:00 Building wheels for collected packages: bcrypt Building wheel for bcrypt (pyproject.toml) … error error: subprocess-exited-with-error

× Building wheel for bcrypt (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [58 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-armv7l-cpython-39 creating build/lib.linux-armv7l-cpython-39/bcrypt copying src/bcrypt/about.py -> build/lib.linux-armv7l-cpython-39/bcrypt copying src/bcrypt/init.py -> build/lib.linux-armv7l-cpython-39/bcrypt running egg_info writing src/bcrypt.egg-info/PKG-INFO writing dependency_links to src/bcrypt.egg-info/dependency_links.txt writing requirements to src/bcrypt.egg-info/requires.txt writing top-level names to src/bcrypt.egg-info/top_level.txt reading manifest file ‘src/bcrypt.egg-info/SOURCES.txt’ reading manifest template ‘MANIFEST.in’ warning: no previously-included files found matching ‘requirements.txt’ warning: no previously-included files found matching ‘release.py’ warning: no previously-included files found matching ‘mypy.ini’ warning: no previously-included files matching ‘’ found under directory ‘.github’ warning: no previously-included files matching '’ found under directory ‘.circleci’ warning: no previously-included files found matching ‘src/_bcrypt/target’ warning: no previously-included files matching ‘*’ found under directory ‘src/_bcrypt/target’ adding license file ‘LICENSE’ writing manifest file ‘src/bcrypt.egg-info/SOURCES.txt’ copying src/bcrypt/_bcrypt.pyi -> build/lib.linux-armv7l-cpython-39/bcrypt copying src/bcrypt/py.typed -> build/lib.linux-armv7l-cpython-39/bcrypt running build_ext running build_rust

      =============================DEBUG ASSISTANCE=============================
      If you are seeing a compilation error please try the following steps to
      successfully install bcrypt:
      1) Upgrade to the latest pip and try again. This will fix errors for most
         users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
      2) Ensure you have a recent Rust toolchain installed. bcrypt requires
         rustc >= 1.56.0.
  
      Python: 3.9.2
      platform: Linux-5.15.61-v7+-armv7l-with-glibc2.31
      pip: n/a
      setuptools: 65.6.3
      setuptools_rust: 1.5.2
      rustc: n/a
      =============================DEBUG ASSISTANCE=============================
  
  error: can't find Rust compiler
  
  If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.
  
  To update pip, run:
  
      pip install --upgrade pip
  
  and then retry package installation.
  
  If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
  
  This package requires Rust >=1.56.0.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for bcrypt Failed to build bcrypt ERROR: Could not build wheels for bcrypt, which is required to install pyproject.toml-based projects pi@magicmirror:~ $

Expected behavior

Installed mmpm successfully

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

  • output from cat /etc/os-release

PRETTY_NAME=“Raspbian GNU/Linux 11 (bullseye)” NAME=“Raspbian GNU/Linux” VERSION_ID=“11” VERSION=“11 (bullseye)” VERSION_CODENAME=bullseye 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

  • output from python3 --version

Python 3.9.2

  • Web Browser (firefox, chrome, safari, chromium, etc)

MMPM Environment Settings

  • output from mmpm env

not installed

MMPM Log Files

  • Attach the file produced Download MMPM log files within the Control Center of the GUI or from the mmpm log --zip

MagicMirror Config

  • your MagicMirror config.js

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (16 by maintainers)

Most upvoted comments

@khassel looking into it now. I’m getting the same error

@khassel this is going to be resolved shortly. The webssh package requires bcrypt and cryptography. I’m just going to remove it from the application since this doesn’t seem like a feature people are using anyway.

The current issue I’m attempting to resolve is related to compatibility with Python 3.10. The eventlet module is attempting to use the collections module which contains an import that was moved in Python 3.10. Hopefully changing to gevent will fix that.