samschott / maestral

Open-source Dropbox client for macOS and Linux
https://maestral.app
MIT License
3.06k stars 65 forks source link

Missing dependency on importlib-metadata #1022

Closed jhaiduce closed 3 months ago

jhaiduce commented 4 months ago

Describe the bug Installing maestral as described in the documentation results in an error ModuleNotFoundError: No module named 'importlib_metadata' when the maestral executable is run.

Full output:

$ maestral
Traceback (most recent call last):
  File "/home/jhaiduce/.local/lib/maestral/venv/bin/maestral", line 5, in <module>
    from maestral.cli import main
  File "/home/jhaiduce/.local/lib/maestral/venv/lib64/python3.12/site-packages/maestral/cli/__init__.py", line 6, in <module>
    from .cli_main import main
  File "/home/jhaiduce/.local/lib/maestral/venv/lib64/python3.12/site-packages/maestral/cli/cli_main.py", line 6, in <module>
    from .cli_core import start, stop, gui, pause, resume, auth, sharelink
  File "/home/jhaiduce/.local/lib/maestral/venv/lib64/python3.12/site-packages/maestral/cli/cli_core.py", line 15, in <module>
    from .common import (
  File "/home/jhaiduce/.local/lib/maestral/venv/lib64/python3.12/site-packages/maestral/cli/common.py", line 13, in <module>
    from ..constants import DEFAULT_CONFIG_NAME
  File "/home/jhaiduce/.local/lib/maestral/venv/lib64/python3.12/site-packages/maestral/constants.py", line 11, in <module>
    from importlib_metadata import metadata, PackageNotFoundError
ModuleNotFoundError: No module named 'importlib_metadata'

To Reproduce

  1. Install maestral in a Python venv as described in the installation instructions:
    $ python3 -m venv maestral-venv
    $ source maestral-venv/bin/activate
    (maestral-venv)$ python3 -m pip install --upgrade maestral
  2. Run the maestral executable from the venv, with no arguments

Expected behaviour Maestral should print usage information

System:

Additional context

maestral works as expected after manually installing importlib-metadata with pip install importlib-metadata.

samschott commented 3 months ago

Thanks for the report! This is fixed in v1.9.0 now.