Hey everyone!
I’m stuck with a problem while trying to set up the NFT example from Patrick’s tutorial. I’ve got Visual Studio Code and Python installed, along with the C++ buildtools. But when I run brownie bake nft-mix, I get this weird error:
Brownie v1.1.0 - Python development framework for Ethereum
Downloading from https://github.com/brownie-mix/nft-mix/archive/master.zip...
BadZipFile: File is not a zip file
The error message is longer, but that’s the main part. It looks like it can’t unzip the file it’s trying to download. Has anyone run into this before? Any ideas on how to fix it?
I’m pretty new to this, so I’m not sure if I missed a step or if there’s something wrong with my setup. Any help would be awesome! Thanks in advance!
hey owengadget, i had a similar issue. try manually downloading the zip from github and extracting it yourself. then use ‘brownie init’ in that folder. sometimes the auto-download fails for weird reasons. lmk if that works!
I encountered this problem as well. It seems to be related to network issues or GitHub’s API occasionally acting up. A workaround that worked for me was using the git clone command instead. Try running ‘git clone GitHub - PatrickAlphaC/nft-mix’ in your desired directory. Then navigate into the cloned folder and run ‘brownie compile’. This method bypasses the zip download entirely. If you don’t have git installed, you might need to do that first. Let us know if this resolves your issue.
hey there owengadget78! that’s a bummer you’re hitting that snag. i’ve seen similar hiccups before. have you tried clearing your brownie cache? sometimes that can help with weird download issues. just run ‘brownie pm cache clear’ in your terminal and give it another shot.
also, what’s your internet connection like? if it’s spotty, that could mess with the download. maybe try on a different network if you can?
oh, and make sure your brownie is up to date. run ‘pip install --upgrade eth-brownie’ just to be safe.
if none of that works, you could always go the manual route like ethan suggested. it’s a bit more work, but hey, whatever gets the job done, right?
let us know how it goes! we’re all rooting for you to get your nft project up and running 