[LG V20 Guides, News, & Discussion] SMTB1963:
Enabled WSL on my Win 10 machine and installed Ubuntu per [MENTION=7055541]Zacharee1[/MENTION]'s instructions. I ran "pip3 install cryptography" and it complained about pip not being installed, so I installed pip. I then re-ran "pip3 install cryptography", and a parade of errors ensued, most notably

Building wheels for collected packages: cryptography
Running setup.py bdist_wheel for cryptography ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-b0_w1v2o/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp22ek5atvpip-wheel- --python-tag cp35:
/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)

and

creating build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c build/temp.linux-x86_64-3.5/_openssl.c -o build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5/_openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.linux-x86_64-3.5/_openssl.c:493:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Failed building wheel for cryptography
Running setup.py clean for cryptography
Failed to build cryptography

and finally

creating build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c build/temp.linux-x86_64-3.5/_openssl.c -o build/temp.linux-x86_64-3.5/build/temp.linux-x86_64-3.5/_openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.linux-x86_64-3.5/_openssl.c:493:30: fatal error: openssl/opensslv.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-b0_w1v2o/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-o5h9fbwh-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-b0_w1v2o/cryptography/

Well, I figured the Ubuntu distribution from the Widows store was missing required libs so I searched around and took some guesses as to what was missing and installed a bunch of stuff. Finally got "pip3 install cryptography" and "pip install PyUSB" to run without error.

Unfortunately, the next step - running "./partitions.py --dump laf.img laf" - generated the following:

SMTB@WORKSTATION:~/lglaf$ ./partitions.py --dump laf.img laf
LAF Crypto failed to import!
Traceback (most recent call last):
File "./partitions.py", line 459, in <module>
main()
File "./partitions.py", line 406, in main
comm = lglaf.autodetect_device()
File "/home/SMTB/lglaf/lglaf.py", line 441, in autodetect_device
return USBCommunication()
File "/home/SMTB/lglaf/lglaf.py", line 299, in __init__
raise RuntimeError("USB device not found")
RuntimeError: USB device not found

I've got a machine running Mint 18 that I'll try running the instructions on tomorrow (it's late!) - but so far no joy. :p