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

Cannot start scanner for 'sending' tab #37

Open
liorpesoa opened this issue Jan 25, 2018 · 5 comments
Open

Cannot start scanner for 'sending' tab #37

liorpesoa opened this issue Jan 25, 2018 · 5 comments
Assignees
Labels
bug Something isn't working build dependencies ui

Comments

@liorpesoa
Copy link

image

@KaboomFox
Copy link

I think we need to make a requirements.txt, a Brewfile and a pkglist to prevent this from happening. I'll start putting this together tonight.

@KaboomFox
Copy link

KaboomFox commented Jan 26, 2018

I was able to fix the zbar issue by
$ brew install zbar $ export LDFLAGS="-L$(brew --prefix zbar)/lib" $ export CFLAGS="-I$(brew --prefix zbar)/include"

but the device list comes up empty because the path is hardcorded as device_root = "/sys/class/video4linux" which doesn't exist on a mac. You cannot access the camera on a mac via a path. https://github.com/BTCP-community/electrum-zcl/blob/master/lib/qrscanner.py#L69

I found this pr: spesmilo#3485
which works mostly when launched from ./electrum. Minor bugs.

However, I cannot get it to work when laughed from a dmg. The module zbarlight cannot be found. I think this is due to the flags not in the standalone, because zbarlight is in the bundle.

For now maybe we should disable the qrscanner on macs (remove the button)? I don't think many people will be using that feature on their macbooks.

@liorpesoa
Copy link
Author

liorpesoa commented Jan 26, 2018

@KaboomFox yes. let's disable. we should think MVP :) we need to ship this.

@ch4ot1c
Copy link

ch4ot1c commented Jan 26, 2018

I vote Yes to removing the mac qr scanner temporarily.

@KaboomFox KaboomFox self-assigned this Jan 31, 2018
@ch4ot1c ch4ot1c added bug Something isn't working build dependencies ui labels Feb 7, 2018
@nimbosa
Copy link
Member

nimbosa commented Jan 5, 2019

with permanent fix pending, this is temporarily disabled on MacOS: #64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build dependencies ui
Projects
None yet
Development

No branches or pull requests

4 participants