Open vladp opened 5 years ago
I believe this is pretty trivial to fix, just need to separate out runtime dependencies from buildtime dependencies. Happy to accept a PR for it, but I'm also into taking a crack at it :)
Just did the separation, pull from master and try this again
Thank you. The update fixed the initial issue. I am running now into compilation problems in one of the Python modules (cryptography) this is not pitcrew error, so not something you could fix.
Update: I think the problem is on my side. Once I installed the py-cryptography, it should appear in my pip3 list … but it is not. I suspect my pip3 install is not right. Let me work on that
pkg_add py3-pip cd /usr/ports/security/py-cryptography ; make install installs cryptography 2.6.1 (simply pkg_add py3-cryptography will not work, because it will install 2.5 ,which is not recent enough for pitcrew).
but then, pip list still does not show cryptography, and installing pit-crew will try to download and compile cryptography module itself, without OpenBSD patches -- and that's what's causing the failure below)
node-obsd2# pip3 install git+https://github.com/joshbuddy/pitcrew.git
Collecting git+https://github.com/joshbuddy/pitcrew.git
Cloning https://github.com/joshbuddy/pitcrew.git to /tmp/pip-req-build-2bausgj4
Collecting Click==7.0 (from pitcrew==0.0.2)
Downloading https://files.pythonhosted.org/packages/fa/37/45185cb5abbc30d7257104c434fe0b07e5a195a6847506c074527aa599ec/Click-7.0-py2.py3-none-any.whl (81kB)
100% |################################| 81kB 595kB/s
Collecting Jinja2==2.10.1 (from pitcrew==0.0.2)
Downloading https://files.pythonhosted.org/packages/1d/e7/fd8b501e7a6dfe492a433deb7b9d833d39ca74916fa8bc63dd1a4947a671/Jinja2-2.10.1-py2.py3-none-any.whl (124kB)
100% |################################| 133kB 1.4MB/s
Collecting MarkupSafe==1.1.1 (from pitcrew==0.0.2)
Downloading https://files.pythonhosted.org/packages/b9/2e/64db92e53b86efccfaea71321f597fa2e1b2bd3853d8ce658568f7a13094/MarkupSafe-1.1.1.tar.gz
Collecting asn1crypto==0.24.0 (from pitcrew==0.0.2)
Downloading https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
100% |################################| 102kB 1.6MB/s
Collecting asyncssh==1.16.1 (from pitcrew==0.0.2)
Downloading https://files.pythonhosted.org/packages/5d/56/254b26795602fdc58dbbf01de1892e88ad35e7e6ad673b0273b6427ba2f4/asyncssh-1.16.1-py3-none-any.whl (288kB)
100% |################################| 296kB 1.5MB/s
Collecting cffi==1.12.3 (from pitcrew==0.0.2)
Downloading https://files.pythonhosted.org/packages/93/1a/ab8c62b5838722f29f3daffcc8d4bd61844aa9b5f437341cc890ceee483b/cffi-1.12.3.tar.gz (456kB)
100% |################################| 460kB 1.6MB/s
Collecting cryptography==2.6.1 (from pitcrew==0.0.2)
Downloading https://files.pythonhosted.org/packages/07/ca/bc827c5e55918ad223d59d299fff92f3563476c3b00d0a9157d9c0217449/cryptography-2.6.1.tar.gz (491kB)
100% |################################| 501kB 1.5MB/s
Installing build dependencies ... done
Collecting pycparser==2.19 (from pitcrew==0.0.2)
Using cached https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz
Collecting six==1.12.0 (from pitcrew==0.0.2)
Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Installing collected packages: Click, MarkupSafe, Jinja2, asn1crypto, six, pycparser, cffi, cryptography, asyncssh, pitcrew
Found existing installation: MarkupSafe 1.1.0
Uninstalling MarkupSafe-1.1.0:
Successfully uninstalled MarkupSafe-1.1.0
Running setup.py install for MarkupSafe ... done
Running setup.py install for pycparser ... done
Running setup.py install for cffi ... done
Running setup.py install for cryptography ... error
Complete output from command /usr/local/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-io0jyo0c/cryptography/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-d8lyw5v4/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.openbsd-6.5-amd64-3.6
creating build/lib.openbsd-6.5-amd64-3.6/cryptography
copying src/cryptography/__about__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography
copying src/cryptography/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography
copying src/cryptography/exceptions.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography
copying src/cryptography/fernet.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography
copying src/cryptography/utils.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat
copying src/cryptography/hazmat/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat
copying src/cryptography/hazmat/_oid.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/x509
copying src/cryptography/x509/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/x509
copying src/cryptography/x509/base.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/x509
copying src/cryptography/x509/certificate_transparency.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/x509
copying src/cryptography/x509/extensions.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/x509
copying src/cryptography/x509/general_name.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/x509
copying src/cryptography/x509/name.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/x509
copying src/cryptography/x509/ocsp.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/x509
copying src/cryptography/x509/oid.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/x509
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends
copying src/cryptography/hazmat/backends/interfaces.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/bindings
copying src/cryptography/hazmat/bindings/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/bindings
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/cmac.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/constant_time.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hashes.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/hmac.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/keywrap.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/mac.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives
copying src/cryptography/hazmat/primitives/padding.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/aead.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/backend.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ciphers.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/cmac.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/decode_asn1.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dh.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/dsa.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ec.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed25519.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ed448.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/encode_asn1.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hashes.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/hmac.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/ocsp.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/rsa.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/utils.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x25519.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x448.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
copying src/cryptography/hazmat/backends/openssl/x509.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/backends/openssl
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/_conditional.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/bindings/openssl
copying src/cryptography/hazmat/bindings/openssl/binding.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/bindings/openssl
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dh.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/dsa.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ec.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed25519.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/ed448.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/padding.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/rsa.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/utils.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x25519.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
copying src/cryptography/hazmat/primitives/asymmetric/x448.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/asymmetric
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/aead.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/algorithms.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/base.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/ciphers
copying src/cryptography/hazmat/primitives/ciphers/modes.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/ciphers
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/concatkdf.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/hkdf.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/kbkdf.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/pbkdf2.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/scrypt.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/kdf
copying src/cryptography/hazmat/primitives/kdf/x963kdf.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/kdf
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/base.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/pkcs12.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/serialization
copying src/cryptography/hazmat/primitives/serialization/ssh.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/serialization
creating build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/__init__.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/hotp.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/totp.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/twofactor
copying src/cryptography/hazmat/primitives/twofactor/utils.py -> build/lib.openbsd-6.5-amd64-3.6/cryptography/hazmat/primitives/twofactor
running egg_info
writing src/cryptography.egg-info/PKG-INFO
writing dependency_links to src/cryptography.egg-info/dependency_links.txt
writing requirements to src/cryptography.egg-info/requires.txt
writing top-level names to src/cryptography.egg-info/top_level.txt
reading manifest file 'src/cryptography.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
writing manifest file 'src/cryptography.egg-info/SOURCES.txt'
running build_ext
generating cffi module 'build/temp.openbsd-6.5-amd64-3.6/_padding.c'
creating build/temp.openbsd-6.5-amd64-3.6
generating cffi module 'build/temp.openbsd-6.5-amd64-3.6/_constant_time.c'
generating cffi module 'build/temp.openbsd-6.5-amd64-3.6/_openssl.c'
building '_openssl' extension
creating build/temp.openbsd-6.5-amd64-3.6/build
creating build/temp.openbsd-6.5-amd64-3.6/build/temp.openbsd-6.5-amd64-3.6
cc -pthread -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -O2 -pipe -fPIC -O2 -pipe -O2 -pipe -fPIC -I/usr/local/include/python3.6m -c build/temp.openbsd-6.5-amd64-3.6/_openssl.c -o build/temp.openbsd-6.5-amd64-3.6/build/temp.openbsd-6.5-amd64-3.6/_openssl.o -Wconversion -Wno-error=sign-conversion
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:2498:21: error: redefinition of 'DTLS_method' as different kind of symbol
const SSL_METHOD *(*DTLS_method)(void) = NULL;
^
/usr/include/openssl/ssl.h:1474:19: note: previous definition is here
const SSL_METHOD *DTLS_method(void); /* DTLS v1.0 or later */
^
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:2499:21: error: redefinition of 'DTLS_server_method' as different kind of symbol
const SSL_METHOD *(*DTLS_server_method)(void) = NULL;
^
/usr/include/openssl/ssl.h:1475:19: note: previous definition is here
const SSL_METHOD *DTLS_server_method(void); /* DTLS v1.0 or later */
^
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:2500:21: error: redefinition of 'DTLS_client_method' as different kind of symbol
const SSL_METHOD *(*DTLS_client_method)(void) = NULL;
^
/usr/include/openssl/ssl.h:1476:19: note: previous definition is here
const SSL_METHOD *DTLS_client_method(void); /* DTLS v1.0 or later */
^
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:2929:19: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for (i = 0; i < _ssl_locks_count; i++) {
~ ^ ~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:2937:28: warning: implicit conversion changes signedness: 'int' to 'unsigned int' [-Wsign-conversion]
_ssl_locks_count = CRYPTO_num_locks();
~ ^~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:2973:39: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion]
memcpy(buf, st->password, st->length);
~~~~~~ ~~~~^~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:11911:10: warning: returning 'const BIO_METHOD *' (aka 'const struct bio_method_st *') from a function with result type 'BIO_METHOD *' (aka 'struct bio_method_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
return BIO_s_datagram();
^~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:11921:12: warning: assigning to 'BIO_METHOD *' (aka 'struct bio_method_st *') from 'const BIO_METHOD *' (aka 'const struct bio_method_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
{ result = BIO_s_datagram(); }
^ ~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:11935:10: warning: returning 'const BIO_METHOD *' (aka 'const struct bio_method_st *') from a function with result type 'BIO_METHOD *' (aka 'struct bio_method_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
return BIO_s_mem();
^~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:11945:12: warning: assigning to 'BIO_METHOD *' (aka 'struct bio_method_st *') from 'const BIO_METHOD *' (aka 'const struct bio_method_st *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
{ result = BIO_s_mem(); }
^ ~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:27971:10: warning: returning 'const Cryptography_STACK_OF_X509 *' (aka 'const struct stack_st_X509 *') from a function with result type 'Cryptography_STACK_OF_X509 *' (aka 'struct stack_st_X509 *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
return OCSP_resp_get0_certs(x0);
^~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:27994:12: warning: assigning to 'Cryptography_STACK_OF_X509 *' (aka 'struct stack_st_X509 *') from 'const Cryptography_STACK_OF_X509 *' (aka 'const struct stack_st_X509 *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
{ result = OCSP_resp_get0_certs(x0); }
^ ~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:34131:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_CTX_add_extra_chain_cert(x0, x1);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:1223:2: note: expanded from macro 'SSL_CTX_add_extra_chain_cert'
SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)x509)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:34171:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_CTX_add_extra_chain_cert(x0, x1); }
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:1223:2: note: expanded from macro 'SSL_CTX_add_extra_chain_cert'
SSL_CTX_ctrl(ctx,SSL_CTRL_EXTRA_CHAIN_CERT,0,(char *)x509)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:34310:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_CTX_clear_options(x0, x1);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:577:2: note: expanded from macro 'SSL_CTX_clear_options'
SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_OPTIONS,(op),NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:34343:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_CTX_clear_options(x0, x1); }
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:577:2: note: expanded from macro 'SSL_CTX_clear_options'
SSL_CTX_ctrl((ctx),SSL_CTRL_CLEAR_OPTIONS,(op),NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:34595:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_CTX_get_mode(x0);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:592:2: note: expanded from macro 'SSL_CTX_get_mode'
SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,0,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:34618:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_CTX_get_mode(x0); }
~ ^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:592:2: note: expanded from macro 'SSL_CTX_get_mode'
SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,0,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:34631:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_CTX_get_options(x0);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:579:2: note: expanded from macro 'SSL_CTX_get_options'
SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,0,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:34654:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_CTX_get_options(x0); }
~ ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:579:2: note: expanded from macro 'SSL_CTX_get_options'
SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,0,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:34703:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_CTX_get_session_cache_mode(x0);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:1567:2: note: expanded from macro 'SSL_CTX_get_session_cache_mode'
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_MODE,0,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:34726:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_CTX_get_session_cache_mode(x0); }
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:1567:2: note: expanded from macro 'SSL_CTX_get_session_cache_mode'
SSL_CTX_ctrl(ctx,SSL_CTRL_GET_SESS_CACHE_MODE,0,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:36332:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_CTX_set_mode(x0, x1);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:588:2: note: expanded from macro 'SSL_CTX_set_mode'
SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:36365:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_CTX_set_mode(x0, x1); }
~ ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:588:2: note: expanded from macro 'SSL_CTX_set_mode'
SSL_CTX_ctrl((ctx),SSL_CTRL_MODE,(op),NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:36496:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_CTX_set_options(x0, x1);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:575:2: note: expanded from macro 'SSL_CTX_set_options'
SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,(op),NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:36529:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_CTX_set_options(x0, x1); }
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:575:2: note: expanded from macro 'SSL_CTX_set_options'
SSL_CTX_ctrl((ctx),SSL_CTRL_OPTIONS,(op),NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:36726:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_CTX_set_session_cache_mode(x0, x1);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:1565:2: note: expanded from macro 'SSL_CTX_set_session_cache_mode'
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_MODE,m,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:36759:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_CTX_set_session_cache_mode(x0, x1); }
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:1565:2: note: expanded from macro 'SSL_CTX_set_session_cache_mode'
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_SESS_CACHE_MODE,m,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:37128:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_CTX_set_tmp_dh(x0, x1);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:1161:2: note: expanded from macro 'SSL_CTX_set_tmp_dh'
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)dh)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:37168:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_CTX_set_tmp_dh(x0, x1); }
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:1161:2: note: expanded from macro 'SSL_CTX_set_tmp_dh'
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_DH,0,(char *)dh)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:37181:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_CTX_set_tmp_ecdh(x0, x1);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:1163:2: note: expanded from macro 'SSL_CTX_set_tmp_ecdh'
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:37221:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_CTX_set_tmp_ecdh(x0, x1); }
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:1163:2: note: expanded from macro 'SSL_CTX_set_tmp_ecdh'
SSL_CTX_ctrl(ctx,SSL_CTRL_SET_TMP_ECDH,0,(char *)ecdh)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:37970:10: warning: implicit conversion changes signedness: 'unsigned long' to 'long' [-Wsign-conversion]
return SSL_SESSION_get_ticket_lifetime_hint(x0);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:37993:14: warning: implicit conversion changes signedness: 'unsigned long' to 'long' [-Wsign-conversion]
{ result = SSL_SESSION_get_ticket_lifetime_hint(x0); }
~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:39358:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_get_mode(x0);
~~~~~~ ^~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:598:9: note: expanded from macro 'SSL_get_mode'
SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:39381:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_get_mode(x0); }
~ ^~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:598:9: note: expanded from macro 'SSL_get_mode'
SSL_ctrl((ssl),SSL_CTRL_MODE,0,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:39394:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_get_options(x0);
~~~~~~ ^~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:585:9: note: expanded from macro 'SSL_get_options'
SSL_ctrl((ssl),SSL_CTRL_OPTIONS,0,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:39417:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_get_options(x0); }
~ ^~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:585:9: note: expanded from macro 'SSL_get_options'
SSL_ctrl((ssl),SSL_CTRL_OPTIONS,0,NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:41301:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_set_mode(x0, x1);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:596:2: note: expanded from macro 'SSL_set_mode'
SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:41334:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_set_mode(x0, x1); }
~ ^~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:596:2: note: expanded from macro 'SSL_set_mode'
SSL_ctrl((ssl),SSL_CTRL_MODE,(op),NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:41347:10: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
return SSL_set_options(x0, x1);
~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:581:2: note: expanded from macro 'SSL_set_options'
SSL_ctrl((ssl),SSL_CTRL_OPTIONS,(op),NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
build/temp.openbsd-6.5-amd64-3.6/_openssl.c:41380:14: warning: implicit conversion changes signedness: 'long' to 'unsigned long' [-Wsign-conversion]
{ result = SSL_set_options(x0, x1); }
~ ^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/openssl/ssl.h:581:2: note: expanded from macro 'SSL_set_options'
SSL_ctrl((ssl),SSL_CTRL_OPTIONS,(op),NULL)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
39 warnings and 3 errors generated.
error: command 'cc' failed with exit status 1
----------------------------------------
Command "/usr/local/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-io0jyo0c/cryptography/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-d8lyw5v4/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-io0jyo0c/cryptography/
You are using pip version 18.1, however version 19.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
node-obsd2#
was able to install pitcrew. There are probably easier ways. But I had to deinstall the whole python installation, then installed python 3.7 from ports Then: python -mensurepip Then: export FLAVOR=python3 cd /usr/ports/security/py-crytography make install all This would install the right (2.6.1) version of the cryptography package, that pitcrew needs I had to install all the packages cryptopgraphy depends on, manually though.. not sure way.
Anyways, I got pitcrew installed on OpenBSD 6.5
node1-obsd2# crew list
install Installs a package, optionally allowing the version number to specified.
install.homebrew Installs the homebrew package manager
install.xcode_cli Installs xcode cli tools
Tried to execute shell commands. But got an error. Could be something, again, that I was doing wrong. But wanted to share, just in case.
node1-obsd2# crew sh pkg_info
Invoking pkg_info with
provider providers.local {}
error loading providers.local
Traceback (most recent call last):
File "/usr/local/bin/crew", line 11, in <module>
load_entry_point('pitcrew==0.0.2', 'console_scripts', 'crew')()
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pitcrew/cli.py", line 53, in sh
loop.run_until_complete(run_task())
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/usr/local/lib/python3.7/site-packages/pitcrew/cli.py", line 45, in run_task
provider_task = app.load(provider)
File "/usr/local/lib/python3.7/site-packages/pitcrew/app.py", line 25, in load
task = self.loader.load(task_name, self.local_context)
File "/usr/local/lib/python3.7/site-packages/pitcrew/loader.py", line 43, in load
return self.create_task(name, context)
File "/usr/local/lib/python3.7/site-packages/pitcrew/loader.py", line 57, in create_task
self.populate_task(task_name)
File "/usr/local/lib/python3.7/site-packages/pitcrew/loader.py", line 85, in populate_task
pkg = importlib.import_module(f"pitcrew.tasks.{task_name}")
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pitcrew.tasks.providers'
node1-obsd2#
@vladp is there any way I could ssh into this machine and take a look at whats happening? I don't have an openbsd box handy to debug this. Alternately, let me see what I can do to install openbsd in a virtualized environment
Hello, thank you for the follow up. Sorry, I do not have a way to get this OpenBSD exposed via internet.
This was a plain, nothing added OpenBSD 6.5 install in virtual box. If you do plan to install it, make sure your have specified at least 2 CPUs for your virtual box, before the install starts.
Otherwise, it will install non-multiprocessor kernel. Other than that, there were no extra settings.
I messed my environment up by now, because I had to redo the whole python3 install. So I cannot cut a clean image for you now.
Alternatively, in a week or sooner, I will have another free day, so I can retry the whole thing and may be upload somewhere my vbox image -- so it is less effort for you to set this up.
I will have it to the point where pitcrew is installed and is invokable (otherwise you would have to install py-cryptography from ports, rather than from binary packages -- as binary packages's version of py-cryptography is a version lower than you need). This way you can jump into debugging right away.
Let me know
@vladp I got it working on openbsd. Here were the steps I followed, how does this look to you?
# i got all the ports & python3.7 stuff working first
pkg_add git
git clone https://github.com/joshbuddy/pitcrew
python3 -mvenv env
. ./env/bin/activate
pip install -e .
crew list # should list tasks here
crew run fs.read requirements.txt # should read this file
Thx for testing on OpenBSD.
I tried on my box, but getting errors. If it works for you, however, it is most likely my install of packages -- that's the problem, and not pitcrew.
sv001vb-obsd2$ crew list
install Installs a package, optionally allowing the version number to specified.
install.homebrew Installs the homebrew package manager
install.xcode_cli Installs xcode cli tools
sv001vb-obsd2$ crew run fs.read requirements.txt
error loading fs.read
Traceback (most recent call last):
File "/usr/local/bin/crew", line 11, in <module>
load_entry_point('pitcrew==0.0.3', 'console_scripts', 'crew')()
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/pitcrew/cli.py", line 99, in run
loop.run_until_complete(run_task())
File "/usr/local/lib/python3.7/asyncio/base_events.py", line 584, in run_until_complete
return future.result()
File "/usr/local/lib/python3.7/site-packages/pitcrew/cli.py", line 75, in run_task
task = app.load(task_name)
File "/usr/local/lib/python3.7/site-packages/pitcrew/app.py", line 27, in load
task = self.loader.load(task_name, self.local_context)
File "/usr/local/lib/python3.7/site-packages/pitcrew/loader.py", line 44, in load
return self.create_task(name, context)
File "/usr/local/lib/python3.7/site-packages/pitcrew/loader.py", line 58, in create_task
self.populate_task(task_name)
File "/usr/local/lib/python3.7/site-packages/pitcrew/loader.py", line 86, in populate_task
pkg = importlib.import_module(f".{task_name}", "pitcrew.tasks")
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pitcrew.tasks.fs'
sv001vb-obsd2$
The requirements.txt:
Click==7.0
Jinja2==2.10.1
MarkupSafe==1.1.1
asn1crypto==0.24.0
asyncssh==1.16.1
cffi==1.12.3
cryptography==2.6.1
netaddr==0.7.19
pycparser==2.19
six==1.12.0
sv001vb-obsd2$ crew --help
Usage: crew [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
docs generate docs
edit edit a task
help show help
info info a command
list list all tasks
new create a new task
run run a task
sh run a shell command
test run tests
sv001vb-obsd2$ crew --version
crew, version 0.0.3
sv001vb-obsd2$
@vladp and this was off the latest on master? Hmmm, if you can get me an image I'd love to test it out. I tried to repo it with Openbsd 6.5, but I could get it working.
Thx for making this available.
Great idea. I am just a newbie in cluster management. And wanted something that I can comprehend without learning a bunch of concept. I simply want a capability to push a bunch of config files (that I manage on my control plane via git) to be pushed, and safely applied to several servers (mostly cron configs, postgres ini files, and backup scripts).
I tried to check if openBSD is supported out of the box, but got an error while installing via Pip. Before digging into this deeper, wanted to check if there are specific reasons/packages that you know of, that picrew needs, but might not be available in OpenBSD.
thx