z-classic / electrum-zcl

Zclassic Electrum (Lite Wallet) Use all wallets with caution. You should never share private keys, seed, or wallet file with anyone.
https://zclassic.org
MIT License
75 stars 64 forks source link

Cannot start scanner for 'sending' tab #37

Open liorpesoa opened 6 years ago

liorpesoa commented 6 years ago

image

KaboomFox commented 6 years ago

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 commented 6 years ago

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: https://github.com/spesmilo/electrum/pull/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 commented 6 years ago

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

ch4ot1c commented 6 years ago

I vote Yes to removing the mac qr scanner temporarily.

nimbosa commented 5 years ago

with permanent fix pending, this is temporarily disabled on MacOS: https://github.com/z-classic/electrum-zcl/pull/64