1

flatpak-pip-generator でモジュールを生成して、matplotlib モジュールを flatpak プロジェクトにインポートしようとしましたが、実行時に次のエラーが発生しました。

Running: pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} "matplotlib" --no-build-isolation
Using pip 21.2.4 from /usr/lib/python3.9/site-packages/pip (python 3.9)
Looking in links: file:///run/build/python3-matplotlib
Processing ./matplotlib-3.5.1.tar.gz
    Running command python setup.py egg_info
    WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb7facd0550>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools-scm-git-archive/
    WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb7facd02e0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools-scm-git-archive/
    WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb7facd0e20>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools-scm-git-archive/
    WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb7facd0fd0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools-scm-git-archive/
    WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fb7fac771c0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/setuptools-scm-git-archive/
    ERROR: Could not find a version that satisfies the requirement setuptools_scm_git_archive (from versions: none)
    ERROR: No matching distribution found for setuptools_scm_git_archive
    Traceback (most recent call last):
      File "/usr/lib/python3.9/site-packages/setuptools/installer.py", line 75, in fetch_build_egg
        subprocess.check_call(cmd)
      File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpidcqwaj6', '--quiet', 'setuptools_scm_git_archive']' returned non-zero exit status 1.

    Edit mplsetup.cfg to change the build options; suppress output with --quiet.

    BUILDING MATPLOTLIB
          python: yes [3.9.7 (default, Nov 10 2011, 15:00:00)  [GCC 11.2.0]]
        platform: yes [linux]
           tests: no  [skipping due to configuration]
          macosx: no  [Mac OS-X only]

WARNING: Discarding file:///run/build/python3-matplotlib/matplotlib-3.5.1.tar.gz. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement matplotlib (from versions: 3.5.1)
ERROR: No matching distribution found for matplotlib
Error: module python3-matplotlib: Child process exited with code 1

ここでエラーが発生する理由がわかりません:

ERROR: Could not find a version that satisfies the requirement setuptools_scm_git_archive (from versions: none)
ERROR: No matching distribution found for setuptools_scm_git_archive

モジュールファイルの詳細は次のとおりです。

解決策 このgithub リンクに従って、以前のバージョンの matplotlib を操作できます。

4

0 に答える 0