Closed idan89 closed 5 years ago
I don't think the problem is what you referred to in the title, but this:
Traceback (most recent call last):
File "/home/USER/strongMan/env/lib/python3.6/site-packages/oscrypto/_openssl/_libcrypto_cffi.py", line 11, in
from cffi import FFI
ModuleNotFoundError: No module named 'cffi'
Might be an issue with LibreSSL, see wbond/oscrypto#18. Unfortunately, the latest release of oscrypto is from last December so the fix for this hasn't been released yet.
I'm having this same problem on Ubuntu 16.04, @idan89 did you find a way to resolve this?
@tobiasbrunner I just updated dependencies for oscrypto and asn1crypto in requirements.txt to
oscrypto==0.19.1
asn1crypto==0.22.0
and that allowed me to complete an installation. not sure if this would suitable for a PR or if it would intro problems, haven't tested strongMan as yet... let me know and I'll submit the pr though.
cc: @idan89
Are you sure you had the same problem? Because 0.19.1 is the version I mentioned above, from last Decemeber, that doesn't include the fix for that dependency issue (also see https://github.com/wbond/oscrypto/issues/18#issuecomment-428976699).
@tobiasbrunner I'm sure I had the same problem. I'm aware of the previous comment and I did have a look at the issue thread on the oscrypto repo. I'll confirm by duplicating this when I get a second. I successfully ran the install on Ubuntu 16.04 & 18.04 on digital ocean instances. I'll spin up one and take screenshots later.
caveat: I did manually install cffi using pip pip3 install cffi
too.
@twmbx's solution also fixes it for me. Apparently our issue is caused by a different bug which is fixed in 0.19.1.
Any reason not to require 0.19.1
in requirements.txt
?
Any reason not to require
0.19.1
inrequirements.txt
?
Not really, but this also requires some updates to the private key loader and unit tests. I pushed a few commits to the crypto-update branch. Let me know if that works for you.
The crypto-update branch works for me. Thanks!
Thanks for testing. I pushed the patches to master and will close the issue for now.
Hey there, When executing the setup.py I get the following error:
$ sudo ./setup.py install Start strongMan installation
Can you help me? Thank you in advance!