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

ERROR: Command errored out with exit status 1: - Pillow #378

Open
1 task
fullstackross opened this issue Jul 7, 2022 · 1 comment
Open
1 task

ERROR: Command errored out with exit status 1: - Pillow #378

fullstackross opened this issue Jul 7, 2022 · 1 comment

Comments

@fullstackross
Copy link

Location within the Book

  • Book order number: 0108617332 - "A Wedge of Django"
  • Book build date (Is the date on page 1): 2021-06-30
  • Book format (PDF, Epub or Mobi): PDF
  • Chapter or Appendix: Chapter 19
  • Section: 19.2
  • Subsection: Install the Dependencies
  • What operating system are you using:
    • MacOS Monterey (M1 Apple Silicon)

Description

When I enter the following:

 pip install -r requirements/local.txt

I receive this error that I have been unable to resolve (Shortened for brevity)

ERROR: Command errored out with exit status 1:

 The headers or library files could not be found for jpeg,
  a required dependency when compiling Pillow from source.
  
  Please see the install instructions at:
     https://pillow.readthedocs.io/en/latest/installation.html
 

Attempted Solutions

#56

@fullstackross
Copy link
Author

I was able to resolve the error by updating Pillow to 9.0.0 in the below file as follows:

Path:   requirements / base.txt 

pytz==2020.1  # https://github.com/stub42/pytz
python-slugify==4.0.1  # https://github.com/un33k/python-slugify
Pillow==9.0.0  # https://github.com/python-pillow/Pillow
whitenoise==5.2.0  # https://github.com/evansd/whitenoise
unidecode==1.1.1 # https://pypi.org/project/Unidecode/

Would appreciate input on whether this is a suitable fix when able. Thank you!

@fullstackross fullstackross changed the title ERROR: Command errored out with exit status 1: ERROR: Command errored out with exit status 1: - Pillow Jul 8, 2022
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

1 participant