![]() I'd like to solve this error, but I've been working through this dependency issue for some time now, so if there's a better solution to getting these packages on here, I would love to hear about it. py"", line 8, in from OpenSSL import crypto, SSL File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/OpenSSL/crypto.py"", line 12, in from cryptography import x509 File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/cryptography/x509/ init_.py"", line 8, in from import ( File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/cryptography/x509/base.py"", line 18, in from import Exte". If you are using pyOpenSSL for anything other than making a TLS connection. py"", line 3, in from box_connector import BoxConnector File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/box_connector/box_connector.py"", line 10, in from OpenSSL import crypto File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/OpenSSL/ init. Python wrapper module around the OpenSSL library. Traceback (most recent call last): File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/box_connector/ init. First 1000 (of 1456) bytes of script output: "No module named constant_time ERROR "Error 'No module named _constant_time'. Be sure to download the proper version for your architecture and Python (VC2015 is required for 3.6 and above). You can compile OpenSSL yourself as well or use a binary distribution. The error I'm getting now is this:Įxternal search command 'boxfiles' returned error code 1. pip install cryptography If you prefer to compile it yourself you’ll need to have OpenSSL installed. I then shut down Splunk, redid steps 1-6 but also installing all those missing modules on step 2. ![]() This has worked until we needed the pyOpenSSL and boto3 libraries which have lots of cryptography and single script dependencies that don't come over correctly.ġ| python3 -m venv $SPLUNK_HOME/etc/apps/APP_NAME/Ģ| python3 -m pip install (pyOpenSSL, boxsdk, pyJWT, boto3) $/SPLUNK_HOME/etc/apps/APP_NAME/binĤ| Put all my app scripts in $/SPLUNK_HOME/etc/apps/APP_NAME/bin alongside all the modules I just installed to that folder using venvĪt this point, Splunk tells me that the enum34, ipaddress, chainmap, cryptography (_constant_time module buried in here somewhere doesn't exist where it should) modules don't exist. 我首先将 cryptography=37.0.4添加到 requirements.To this point in time, every time we needed to make a python module available to a single app in Splunk, we would drag and drop the python modules into $SPLUNK_HOME/etc/apps/APP_NAME/bin/MODULE. Src/pycurl.h:170:13: fatal error: 'openssl/crypto.h' file not foundĮrror: command '/usr/bin/clang' failed with exit code 1 ![]() In file included from src/docstrings.c:4: If LooseVersion(distutils._version_) build/lib.macosx-10.15-x86_64-cpython-39/curlĬreating build/temp.macosx-10.15-x86_64-cpython-39Ĭreating build/temp.macosx-10.15-x86_64-cpython-39/srcĬlang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk -DPYCURL_VERSION=\"7.43.0\" -DHAVE_CURL_OPENSSL=1 -DHAVE_CURL_SSL=1 -I/usr/local/Cellar/curl/7.84.0/include -c src/docstrings.c -o build/temp.macosx-10.15-x86_64-cpython-39/src/docstrings.o If LooseVersion(distutils._version_) > LooseVersion("1.0.1"): It’s quite similar to the 2.6 ssl module. This package brings that module to older Python releases, 2.3.5 and up (it may also work on older versions of 2.3, but we haven’t tried it). It is used to secure connections on the server and within your software. It is also a general-purpose cryptography library. ![]() ![]() OpenSSL is a toolkit for the Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols. private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/pip-install-8r44qz4e/pycurl_09ab3d56141443439eb3f41fa62f7b0f/setup.py:771: DeprecationWarning: distutils Version classes are deprecated. The old socket.ssl () support for TLS over sockets is being superseded in Python 2.6 by a new ‘ssl’ module. Installing OpenSSL locally under your username. × Running setup.py install for pycurl did not run successfully. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |