- Notifications
You must be signed in to change notification settings - Fork2.7k
Closed
Description
Bug description
Actual behavior
Runningmojo format <file>.mojo
causes the following error:
Traceback (most recent call last): File "/home/tpool/gpu/.magic/envs/default/bin/mblack", line 6, in <module> from mblack import patched_main File "/home/tpool/gpu/.magic/envs/default/lib/python3.12/site-packages/mblack/__init__.py", line 47, in <module> from click.core import ParameterSourceImportError: cannot import name 'ParameterSource' from 'click.core' (/home/tpool/.local/lib/python3.12/site-packages/click/core.py)
Expected behavior
mojo format
should run successfully and format the file.
Steps to reproduce
Self explanatory
System information
Magic version: 0.7.2
System
Pixi version: 0.41.4 Platform: linux-64
Virtual packages: __unix=0=0
: __linux=6.11.0=0
: __glibc=2.39=0
: __cuda=12.4=0
: __archspec=1=zen4
Cache dir: /home/tpool/.cache/rattler/cache
Auth storage: /home/tpool/.rattler/credentials.json
Config locations: No config files found
Global
Bin dir: /home/tpool/.modular/binEnvironment dir: /home/tpool/.modular/envs Manifest dir: /home/tpool/.modular/manifests/pixi-global.toml
Project
Name: gpu Version: 0.1.0 Manifest file: /home/tpool/gpu/mojoproject.toml Last updated: 09-04-2025 10:28:11
Environments
Environment: default Features: default Channels: https://conda.modular.com/max-nightly, https://conda.modular.com/max, https://repo.prefix.dev/modular-community, conda-forge
Dependency count: 2
Dependencies: max, click
Target platforms: linux-64
Package Version Build Size Kind Source
max 25.3.0.dev2025040820 release 9.7 KiB conda max
max-core 25.3.0.dev2025040820 release 258.2 MiB conda max-core
max-python 25.3.0.dev2025040820 release 35.4 MiB conda max-python