1

我在对 Patrick 教程中的示例数据使用命令 brownie bake nft-mix 时出现错误,刚刚安装了 Visual Studio Code,然后从他们的网站安装了 Phyton,然后是 C++ 库的 buildtools,我有这个错误:

>brownie bake nft-mix
Brownie v1.1.0 - Python development framework for Ethereum

Downloading from https://github.com/brownie-mix/nft-mix/archive/master.zip...
  File "...\python\python36\lib\site-packages\brownie\_cli\__main__.py", line 55, in main
    importlib.import_module(f"brownie._cli.{args['<command>']}").main()
  File "..\python\python36\lib\site-packages\brownie\_cli\bake.py", line 27, in main
    path = project.from_brownie_mix(args["<mix>"], args["<path>"], args["--force"])
  File "..\python\python36\lib\site-packages\brownie\project\main.py", line 293, in from_brownie_mix
    with zipfile.ZipFile(BytesIO(request.content)) as zf:
  File "..\python\python36\lib\zipfile.py", line 1131, in __init__
    self._RealGetContents()
  File "..\programs\python\python36\lib\zipfile.py", line 1198, in _RealGetContents
    raise BadZipFile("File is not a zip file")
BadZipFile: File is not a zip file

谢谢!

4

1 回答 1

0

不知道为什么你会看到这个......但与此同时你可以运行

git clone https://github.com/PatrickAlphaC/nft-mix
cd nft-mix

这将产生同样的影响。

于 2021-07-02T18:51:24.170 回答