Skip to content

Lesson 11: FileNotFoundError: [Errno 2] No such file or directory: './metadata/rinkeby/0-PUG.json' #241

Answered by cromewar
ChristianG77 asked this question in Q&A
Discussion options

You must be logged in to vote

it seems that everything is ok, however I wonder did you update the .env file and exported UPLOAD_IPFS, remember even you add it to .env sometimes you should export it manually in order to work.
Finally this is not important but i strongly suggest yo change this line:
image_uri = f"https://ipfs.io/ipfs/{ipfs_hash}?filename={filename}"
for this:
image_uri = "https://ipfs.io/ipfs/{}?filename={}".format(ipfs_hash, filename)

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@ChristianG77
Comment options

Comment options

You must be logged in to vote
2 replies
@ChristianG77
Comment options

@cromewar
Comment options

Answer selected by ChristianG77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants