首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将刮擦添加到平面项目中时出错

将刮擦添加到平面项目中时出错
EN

Stack Overflow用户
提问于 2021-12-25 02:14:42
回答 1查看 150关注 0票数 0

我在建一个平面建筑的侏儒建筑项目。现在我想在我的项目中添加刮痕。我使用平板式脉冲发生器生成刮擦包并将其添加到清单中如下:

代码语言:javascript
复制
"modules": [
  "python3-cryptography",
  "python3-scrapy.json",
  {
    "name": "other-modules"
  }
]

但是,当我运行时,我会得到以下错误:

代码语言:javascript
复制
Building module python3-cryptography in /home/huydq/.var/app/org.gnome.Builder/cache/gnome-builder/flatpak-builder/build/python3-cryptography-8
========================================================================
Running: pip3 install --verbose --exists-action=i --no-index --find-links="file://${PWD}" --prefix=${FLATPAK_DEST} "cryptography" --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-cryptography
Processing ./cryptography-36.0.1.tar.gz
    Running command /usr/bin/python3 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmplxldpoc4

            =============================DEBUG ASSISTANCE==========================
            If you are seeing an error here please try the following to
            successfully install cryptography:

            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
            =============================DEBUG ASSISTANCE==========================

    Traceback (most recent call last):
      File "/usr/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
        main()
      File "/usr/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
        json_out['return_val'] = hook(**hook_input['kwargs'])
      File "/usr/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 151, in prepare_metadata_for_build_wheel
        return hook(metadata_directory, config_settings)
      File "/usr/lib/python3.9/site-packages/setuptools/build_meta.py", line 166, in prepare_metadata_for_build_wheel
        self.run_setup()
      File "/usr/lib/python3.9/site-packages/setuptools/build_meta.py", line 150, in run_setup
        exec(compile(code, __file__, 'exec'), locals())
      File "setup.py", line 14, in <module>
        from setuptools_rust import RustExtension
    ModuleNotFoundError: No module named 'setuptools_rust'
    Preparing wheel metadata ... error
WARNING: Discarding file:///run/build/python3-cryptography/cryptography-36.0.1.tar.gz. Command errored out with exit status 1: /usr/bin/python3 /usr/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py prepare_metadata_for_build_wheel /tmp/tmplxldpoc4 Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement cryptography (from versions: 36.0.1)
ERROR: No matching distribution found for cryptography
Error: module python3-cryptography: Child process exited with code 1

如果我加上“python3-setuptools_锈病”,就会导致这个错误:

代码语言:javascript
复制
ERROR:Could not build wheels for cryptography which use PEP 517 and cannot be installed directly

有什么办法解决这个问题吗?Tks预先

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-12-25 02:47:15

您是否尝试过将您的pip升级到最新版本,我在您的日志中看到了,也许可以尝试一下。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70477611

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档