Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory #2

Closed
gbakes opened this issue Jun 24, 2020 · 5 comments
Closed

No such file or directory #2

gbakes opened this issue Jun 24, 2020 · 5 comments

Comments

@gbakes
Copy link

gbakes commented Jun 24, 2020

After processing all the images I do get this one error:

Writing image 1 of 90.Traceback (most recent call last):
  File "add_images.py", line 66, in <module>
    os.stat(f"image_{i+1}.{images[i][-3]}").st_size < 200000
FileNotFoundError: [Errno 2] No such file or directory: 'image_1.p'

and the scripts stops with only one image in the directory.

@Destaq
Copy link
Owner

Destaq commented Jun 24, 2020

@gbakes Please look at the previous issue. I missed writing a semicolon in the code, that has been updated now and it works.

Essentially, either redownload the repo or edit your add_images.py file so that it has images[i][-3:] in both instances. Thank you.

@Destaq Destaq closed this as completed Jun 24, 2020
@Destaq
Copy link
Owner

Destaq commented Jun 24, 2020

Please confirm that this is working for you once you have changed it.

@Destaq Destaq reopened this Jun 24, 2020
@gbakes
Copy link
Author

gbakes commented Jun 24, 2020

Sorry didn't see the previous issue comment before submitting this ^^ didn't think you'd be that fast! Nice work 💯

@Destaq
Copy link
Owner

Destaq commented Jun 24, 2020

No problem. @gbakes Is it all good now? Sorry about the inconvenience, I had changed the code via web browser and not via IDE and so hadn't double-checked before committing. It's good that it was caught so quickly, this could have discouraged other people - thanks!

@gbakes
Copy link
Author

gbakes commented Jun 24, 2020

Works like a charm!

@gbakes gbakes closed this as completed Jun 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants