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

Failed building wheel for Pillow #4

Closed
ErwanLetard opened this issue Jan 6, 2019 · 4 comments
Closed

Failed building wheel for Pillow #4

ErwanLetard opened this issue Jan 6, 2019 · 4 comments
Assignees

Comments

@ErwanLetard
Copy link

Hello,
I m trying to set up the dashboard on my lnd raspibolt.
When I execute pip install -r requirements.txt
I end up with the following error message :
Failed building wheel for Pillow * and then, after some lines
Command "/home/admin/lndash/venv/bin/python2 -u -c "import setuptools, tokenize;file='/tmp/pip-install-l_R2Aw/Pillow/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-HfnMfI/install-record.txt --single-version-externally-managed --compile --install-headers /home/admin/lndash/venv/include/site/python2.7/Pillow" failed with error code 1 in /tmp/pip-install-l_R2Aw/Pillow/

I tried to go until the end of the tutorial hoping that was not a big deal but I got that :
[2019-01-06 14:38:37 +0000] [21155] [INFO] Starting gunicorn 19.9.0
[2019-01-06 14:38:37 +0000] [21155] [INFO] Listening at: http://127.0.0.1:8000 (21155)
[2019-01-06 14:38:37 +0000] [21155] [INFO] Using worker: sync
[2019-01-06 14:38:37 +0000] [21167] [INFO] Booting worker with pid: 21167
[2019-01-06 14:38:37 +0000] [21167] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/home/admin/lndash/venv/local/lib/python2.7/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/home/admin/lndash/venv/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/home/admin/lndash/venv/local/lib/python2.7/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/home/admin/lndash/venv/local/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/home/admin/lndash/venv/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/home/admin/lndash/venv/local/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/home/admin/lndash/venv/local/lib/python2.7/site-packages/gunicorn/util.py", line 350, in import_app
import(module)
File "/home/admin/lndash/main.py", line 2, in
import libs.rpc_pb2 as ln
File "/home/admin/lndash/libs/rpc_pb2.py", line 6, in
from google.protobuf.internal import enum_type_wrapper
ImportError: No module named google.protobuf.internal
[2019-01-06 14:38:37 +0000] [21167] [INFO] Worker exiting (pid: 21167)
[2019-01-06 14:38:37 +0000] [21155] [INFO] Shutting down: Master
[2019-01-06 14:38:37 +0000] [21155] [INFO] Reason: Worker failed to boot.

Any ideas ?

Thank you

@djmelik djmelik self-assigned this Jan 7, 2019
@djmelik
Copy link
Owner

djmelik commented Jan 7, 2019

It appears that you are missing the libjpeg-dev library which is dependent by Pillow, you can install them by running the following command: apt-get install libjpg-dev

I will update the README file and include this library. In the meantime, I am also looking into rendering the QR codes via javascript vs within Flask, see the suggestion in: #1.

djmelik pushed a commit that referenced this issue Jan 7, 2019
djmelik pushed a commit that referenced this issue Jan 7, 2019
@djmelik
Copy link
Owner

djmelik commented Jan 7, 2019

Can you test the latest changes? I've replaced Flask's QR code generator for qrcodejs. We no longer depend on Pillow.

@ErwanLetard
Copy link
Author

I m currently at work, ill try tonight. I'll get to you on twitter if you don't mind.

@djmelik
Copy link
Owner

djmelik commented Jan 8, 2019

I'm going to close out this ticket as I'm confident the issue has been resolved, Pillow was removed from requirements.txt in the recent commit.

@djmelik djmelik closed this as completed Jan 8, 2019
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