Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[BUG] ImportError: cannot import name 'ParameterSource' from 'click.core' #4326

Closed
Labels
bugSomething isn't workingmodular-repomojoIssues that are related to mojo
@taylorpool

Description

@taylorpool

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodular-repomojoIssues that are related to mojo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp