
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
해당패키지 설치하니까 오류 납니다
pip install awsebcli

from flask import Flask, render_template, request, jsonify
application = app = Flask(__name__)
from pymongo import MongoClient
import certifi
ca = certifi.where()
client = MongoClient('mongodb+srv://sparta:test@cluster0.bsvvbpa.mongodb.net/?retryWrites=true&w=majority', tlsCAFile=ca)
db = client.dbsparta
@app.route('/')
def home():
return render_template('index.html')
@app.route("/bucket", methods=["POST"])
def bucket_post():
bucket_receive = request.form['bucket_give']
doc = {
'bucket' : bucket_receive
}
db.bucket.insert_one(doc)
return jsonify({'msg': '저장 완료!'})
@app.route("/bucket", methods=["GET"])
def bucket_get():
all_buckets = list(db.bucket.find({},{'_id':False}))
return jsonify({'result': all_buckets})
if __name__ == '__main__':
app.run()
터미널
(venv) gahui@gahiuiui-MacBookPro deploy % pip install awscli --force-reinstall --upgrade Collecting awscli Using cached https://files.pythonhosted.org/packages/fe/c0/191e18ec96bc6ca72c1f1b8730f21577a3d875383c561991a0eeb1d71110/awscli-1.27.129-py3-none-any.whl Collecting PyYAML<5.5,>=3.10 (from awscli) Using cached https://files.pythonhosted.org/packages/cb/3f/2f35751408c0b2a425aa48dd79301a48418858d3366f84c75d1aa42b6e2d/PyYAML-5.4.1-cp38-cp38-macosx_10_9_x86_64.whl Collecting rsa<4.8,>=3.1.2 (from awscli) Using cached https://files.pythonhosted.org/packages/e9/93/0c0f002031f18b53af7a6166103c02b9c0667be528944137cc954ec921b3/rsa-4.7.2-py3-none-any.whl Collecting s3transfer<0.7.0,>=0.6.0 (from awscli) Using cached https://files.pythonhosted.org/packages/ec/fa/9416461ee05efabe477d588288bdd88acb69a51ee4b31a9b73d3b5b716fc/s3transfer-0.6.1-py3-none-any.whl Collecting colorama<0.4.5,>=0.2.5 (from awscli) Using cached https://files.pythonhosted.org/packages/44/98/5b86278fbbf250d239ae0ecb724f8572af1c91f4a11edf4d36a206189440/colorama-0.4.4-py2.py3-none-any.whl Collecting docutils<0.17,>=0.10 (from awscli) Using cached https://files.pythonhosted.org/packages/81/44/8a15e45ffa96e6cf82956dd8d7af9e666357e16b0d93b253903475ee947f/docutils-0.16-py2.py3-none-any.whl Collecting botocore==1.29.129 (from awscli) Using cached https://files.pythonhosted.org/packages/43/d2/4130c10fb3fec9d93fcc358d45c9a63ede209bea29b781f0a776b587926b/botocore-1.29.129-py3-none-any.whl Collecting pyasn1>=0.1.3 (from rsa<4.8,>=3.1.2->awscli) Using cached https://files.pythonhosted.org/packages/14/e5/b56a725cbde139aa960c26a1a3ca4d4af437282e20b5314ee6a3501e7dfc/pyasn1-0.5.0-py2.py3-none-any.whl Collecting python-dateutil<3.0.0,>=2.1 (from botocore==1.29.129->awscli) Using cached https://files.pythonhosted.org/packages/36/7a/87837f39d0296e723bb9b62bbb257d0355c7f6128853c78955f57342a56d/python_dateutil-2.8.2-py2.py3-none-any.whl Collecting urllib3<1.27,>=1.25.4 (from botocore==1.29.129->awscli) Using cached https://files.pythonhosted.org/packages/7b/f5/890a0baca17a61c1f92f72b81d3c31523c99bec609e60c292ea55b387ae8/urllib3-1.26.15-py2.py3-none-any.whl Collecting jmespath<2.0.0,>=0.7.1 (from botocore==1.29.129->awscli) Using cached https://files.pythonhosted.org/packages/31/b4/b9b800c45527aadd64d5b442f9b932b00648617eb5d63d2c7a6587b7cafc/jmespath-1.0.1-py3-none-any.whl Collecting six>=1.5 (from python-dateutil<3.0.0,>=2.1->botocore==1.29.129->awscli) Using cached https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl Installing collected packages: PyYAML, pyasn1, rsa, six, python-dateutil, urllib3, jmespath, botocore, s3transfer, colorama, docutils, awscli Found existing installation: PyYAML 5.4.1 Uninstalling PyYAML-5.4.1: Successfully uninstalled PyYAML-5.4.1 Found existing installation: pyasn1 0.5.0 Uninstalling pyasn1-0.5.0: Successfully uninstalled pyasn1-0.5.0 Found existing installation: rsa 4.7.2 Uninstalling rsa-4.7.2: Successfully uninstalled rsa-4.7.2 Found existing installation: six 1.16.0 Uninstalling six-1.16.0: Successfully uninstalled six-1.16.0 Found existing installation: python-dateutil 2.8.2 Uninstalling python-dateutil-2.8.2: Successfully uninstalled python-dateutil-2.8.2 Found existing installation: urllib3 1.26.15 Uninstalling urllib3-1.26.15: Successfully uninstalled urllib3-1.26.15 Found existing installation: jmespath 1.0.1 Uninstalling jmespath-1.0.1: Successfully uninstalled jmespath-1.0.1 Found existing installation: botocore 1.29.129 Uninstalling botocore-1.29.129: Successfully uninstalled botocore-1.29.129 Found existing installation: s3transfer 0.6.1 Uninstalling s3transfer-0.6.1: Successfully uninstalled s3transfer-0.6.1 Found existing installation: colorama 0.4.4 Uninstalling colorama-0.4.4: Successfully uninstalled colorama-0.4.4 Found existing installation: docutils 0.16 Uninstalling docutils-0.16: Successfully uninstalled docutils-0.16 Found existing installation: awscli 1.27.129 Uninstalling awscli-1.27.129: Successfully uninstalled awscli-1.27.129 Successfully installed PyYAML-5.4.1 awscli-1.27.129 botocore-1.29.129 colorama-0.4.4 docutils-0.16 jmespath-1.0.1 pyasn1-0.5.0 python-dateutil-2.8.2 rsa-4.7.2 s3transfer-0.6.1 six-1.16.0 urllib3-1.26.15 WARNING: You are using pip version 19.2.3, however version 23.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. (venv) gahui@gahiuiui-MacBookPro deploy % eb init zsh: command not found: eb (venv) gahui@gahiuiui-MacBookPro deploy % pip install awsebcli Collecting awsebcli Using cached https://files.pythonhosted.org/packages/31/60/5bd0b5df1b02cffaa9b28dcb6feca1538ea6bfa85b39f8ef424a42d4c33b/awsebcli-3.20.6.tar.gz Collecting botocore<1.29.100,>1.23.41 (from awsebcli) Using cached https://files.pythonhosted.org/packages/28/90/36510bfbef36504adb68453e730ed199553a691b03c245591277c68cebdc/botocore-1.29.99-py3-none-any.whl Collecting cement==2.8.2 (from awsebcli) Using cached https://files.pythonhosted.org/packages/70/60/608f0b8975f4ee7deaaaa7052210d095e0b96e7cd3becdeede9bd13674a1/cement-2.8.2.tar.gz Collecting colorama<0.4.4,>=0.2.5 (from awsebcli) Using cached https://files.pythonhosted.org/packages/c9/dc/45cdef1b4d119eb96316b3117e6d5708a08029992b2fee2c143c7a0a5cc5/colorama-0.4.3-py2.py3-none-any.whl Collecting pathspec==0.10.1 (from awsebcli) Using cached https://files.pythonhosted.org/packages/63/82/2179fdc39bc1bb43296f638ae1dfe2581ec2617b4e87c28b0d23d44b997f/pathspec-0.10.1-py3-none-any.whl Requirement already satisfied: python-dateutil<3.0.0,>=2.1 in /Users/gahui/Desktop/sparta/projects/04.buket/venv/lib/python3.8/site-packages (from awsebcli) (2.8.2) Collecting requests<=2.26,>=2.20.1 (from awsebcli) Using cached https://files.pythonhosted.org/packages/92/96/144f70b972a9c0eabbd4391ef93ccd49d0f2747f4f6a2a2738e99e5adc65/requests-2.26.0-py2.py3-none-any.whl Requirement already satisfied: setuptools>=20.0 in /Users/gahui/Desktop/sparta/projects/04.buket/venv/lib/python3.8/site-packages (from awsebcli) (41.2.0) Collecting semantic_version==2.8.5 (from awsebcli) Using cached https://files.pythonhosted.org/packages/a5/15/00ef3b7888a10363b7c402350eda3acf395ff05bebae312d1296e528516a/semantic_version-2.8.5-py2.py3-none-any.whl Collecting six<1.15.0,>=1.11.0 (from awsebcli) Using cached https://files.pythonhosted.org/packages/65/eb/1f97cb97bfc2390a276969c6fae16075da282f5058082d4cb10c6c5c1dba/six-1.14.0-py2.py3-none-any.whl Collecting termcolor==1.1.0 (from awsebcli) Using cached https://files.pythonhosted.org/packages/8a/48/a76be51647d0eb9f10e2a4511bf3ffb8cc1e6b14e9e4fab46173aa79f981/termcolor-1.1.0.tar.gz Collecting wcwidth<0.2.0,>=0.1.7 (from awsebcli) Using cached https://files.pythonhosted.org/packages/f6/d5/1ecdac957e3ea12c1b319fcdee8b6917ffaff8b4644d673c4d72d2f20b49/wcwidth-0.1.9-py2.py3-none-any.whl Requirement already satisfied: PyYAML<5.5,>=5.3.1 in /Users/gahui/Desktop/sparta/projects/04.buket/venv/lib/python3.8/site-packages (from awsebcli) (5.4.1) Requirement already satisfied: urllib3>=1.26.5 in /Users/gahui/Desktop/sparta/projects/04.buket/venv/lib/python3.8/site-packages (from awsebcli) (1.26.15) Collecting docker-compose<1.26.0,>=1.25.2 (from awsebcli) Using cached https://files.pythonhosted.org/packages/ec/35/1dfbb8e6b2ce5d290622a49cae0a7f3cf09cdc4341380a600aee00530881/docker_compose-1.25.5-py2.py3-none-any.whl Collecting blessed>=1.9.5 (from awsebcli) Using cached https://files.pythonhosted.org/packages/76/98/584f211c3a4bb38f2871fa937ee0cc83c130de50c955d6c7e2334dbf4acb/blessed-1.20.0-py2.py3-none-any.whl Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in /Users/gahui/Desktop/sparta/projects/04.buket/venv/lib/python3.8/site-packages (from botocore<1.29.100,>1.23.41->awsebcli) (1.0.1) Collecting idna<4,>=2.5; python_version >= "3" (from requests<=2.26,>=2.20.1->awsebcli) Using cached https://files.pythonhosted.org/packages/fc/34/3030de6f1370931b9dbb4dad48f6ab1015ab1d32447850b9fc94e60097be/idna-3.4-py3-none-any.whl Requirement already satisfied: certifi>=2017.4.17 in /Users/gahui/Desktop/sparta/projects/04.buket/venv/lib/python3.8/site-packages (from requests<=2.26,>=2.20.1->awsebcli) (2022.12.7) Collecting charset-normalizer~=2.0.0; python_version >= "3" (from requests<=2.26,>=2.20.1->awsebcli) Using cached https://files.pythonhosted.org/packages/06/b3/24afc8868eba069a7f03650ac750a778862dc34941a4bebeb58706715726/charset_normalizer-2.0.12-py3-none-any.whl Collecting texttable<2,>=0.9.0 (from docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/ba/a7/2c12b543f853dae886286b824200eb9d7cd2466e3d14eff1799fbe8223b9/texttable-1.6.7-py2.py3-none-any.whl Collecting docker[ssh]<5,>=3.7.0 (from docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/c4/22/410313ad554477e87ec406d38d85f810e61ddb0d2fc44e64994857476de9/docker-4.4.4-py2.py3-none-any.whl Collecting dockerpty<1,>=0.4.1 (from docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/8d/ee/e9ecce4c32204a6738e0a5d5883d3413794d7498fe8b06f44becc028d3ba/dockerpty-0.4.1.tar.gz Collecting docopt<1,>=0.6.1 (from docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz Collecting jsonschema<4,>=2.5.1 (from docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/c5/8f/51e89ce52a085483359217bc72cdbf6e75ee595d5b1d4b5ade40c7e018b8/jsonschema-3.2.0-py2.py3-none-any.whl Collecting websocket-client<1,>=0.32.0 (from docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/f7/0c/d52a2a63512a613817846d430d16a8fbe5ea56dd889e89c68facf6b91cb6/websocket_client-0.59.0-py2.py3-none-any.whl Collecting cached-property<2,>=1.2.0 (from docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/48/19/f2090f7dad41e225c7f2326e4cfe6fff49e57dedb5b53636c9551f86b069/cached_property-1.5.2-py2.py3-none-any.whl Collecting paramiko>=2.4.2; extra == "ssh" (from docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/56/7c/9dd558ec0869fcecb661765d0a2504978dbfe85de24cbcccc847aa9b58e4/paramiko-3.1.0-py3-none-any.whl Collecting pyrsistent>=0.14.0 (from jsonschema<4,>=2.5.1->docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/64/de/375aa14daaee107f987da76ca32f7a907fea00fa8b8afb67dc09bec0de91/pyrsistent-0.19.3-py3-none-any.whl Collecting attrs>=17.4.0 (from jsonschema<4,>=2.5.1->docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/f0/eb/fcb708c7bf5056045e9e98f62b93bd7467eb718b0202e7698eb11d66416c/attrs-23.1.0-py3-none-any.whl Collecting cryptography>=3.3 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/85/86/a17a4baf08e0ae6496b44f75136f8e14b843fd3d8a3f4105c0fd79d4786b/cryptography-40.0.2-cp36-abi3-macosx_10_12_x86_64.whl Collecting pynacl>=1.5 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli) Collecting bcrypt>=3.2 (from paramiko>=2.4.2; extra == "ssh"->docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/8c/ae/3af7d006aacf513975fd1948a6b4d6f8b4a307f8a244e1a3d3774b297aad/bcrypt-4.0.1.tar.gz Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Collecting cffi>=1.12 (from cryptography>=3.3->paramiko>=2.4.2; extra == "ssh"->docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/87/4b/64e8bd9d15d6b22b6cb11997094fbe61edf453ea0a97c8675cb7d1c3f06f/cffi-1.15.1-cp38-cp38-macosx_10_9_x86_64.whl Collecting pycparser (from cffi>=1.12->cryptography>=3.3->paramiko>=2.4.2; extra == "ssh"->docker[ssh]<5,>=3.7.0->docker-compose<1.26.0,>=1.25.2->awsebcli) Using cached https://files.pythonhosted.org/packages/62/d5/5f610ebe421e85889f2e55e33b7f9a6795bd982198517d912eb1c76e1a53/pycparser-2.21-py2.py3-none-any.whl Building wheels for collected packages: bcrypt Building wheel for bcrypt (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /Users/gahui/Desktop/sparta/projects/04.buket/venv/bin/python3 /Users/gahui/Desktop/sparta/projects/04.buket/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/3b/c9g6dl8j30l49hyjlntl7fj80000gn/T/tmpclnj21d2 cwd: /private/var/folders/3b/c9g6dl8j30l49hyjlntl7fj80000gn/T/pip-install-2wtbljwu/bcrypt Complete output (58 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-x86_64-cpython-38 creating build/lib.macosx-10.9-x86_64-cpython-38/bcrypt copying src/bcrypt/__init__.py -> build/lib.macosx-10.9-x86_64-cpython-38/bcrypt copying src/bcrypt/__about__.py -> build/lib.macosx-10.9-x86_64-cpython-38/bcrypt running egg_info writing src/bcrypt.egg-info/PKG-INFO writing dependency_links to src/bcrypt.egg-info/dependency_links.txt writing requirements to src/bcrypt.egg-info/requires.txt writing top-level names to src/bcrypt.egg-info/top_level.txt reading manifest file 'src/bcrypt.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files found matching 'requirements.txt' warning: no previously-included files found matching 'release.py' warning: no previously-included files found matching 'mypy.ini' warning: no previously-included files matching '*' found under directory '.github' warning: no previously-included files matching '*' found under directory '.circleci' warning: no previously-included files found matching 'src/_bcrypt/target' warning: no previously-included files matching '*' found under directory 'src/_bcrypt/target' adding license file 'LICENSE' writing manifest file 'src/bcrypt.egg-info/SOURCES.txt' copying src/bcrypt/_bcrypt.pyi -> build/lib.macosx-10.9-x86_64-cpython-38/bcrypt copying src/bcrypt/py.typed -> build/lib.macosx-10.9-x86_64-cpython-38/bcrypt running build_ext running build_rust =============================DEBUG ASSISTANCE============================= If you are seeing a compilation error please try the following steps to successfully install bcrypt: 1) Upgrade to the latest pip and try again. This will fix errors for most users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip 2) Ensure you have a recent Rust toolchain installed. bcrypt requires rustc >= 1.56.0. Python: 3.8.2 platform: macOS-10.16-x86_64-i386-64bit pip: n/a setuptools: 67.7.2 setuptools_rust: 1.6.0 rustc: n/a =============================DEBUG ASSISTANCE============================= error: can't find Rust compiler If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler. To update pip, run: pip install --upgrade pip and then retry package installation. If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain. This package requires Rust >=1.56.0. ---------------------------------------- ERROR: Failed building wheel for bcrypt Running setup.py clean for bcrypt ERROR: Command errored out with exit status 1: command: /Users/gahui/Desktop/sparta/projects/04.buket/venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/3b/c9g6dl8j30l49hyjlntl7fj80000gn/T/pip-install-2wtbljwu/bcrypt/setup.py'"'"'; __file__='"'"'/private/var/folders/3b/c9g6dl8j30l49hyjlntl7fj80000gn/T/pip-install-2wtbljwu/bcrypt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' clean --all cwd: /private/var/folders/3b/c9g6dl8j30l49hyjlntl7fj80000gn/T/pip-install-2wtbljwu/bcrypt Complete output (36 lines): running clean removing 'build/lib.macosx-10.9-x86_64-cpython-38' (and everything under it) 'build/bdist.macosx-10.9-x86_64' does not exist -- can't clean it 'build/scripts-3.8' does not exist -- can't clean it removing 'build' running clean_rust =============================DEBUG ASSISTANCE============================= If you are seeing a compilation error please try the following steps to successfully install bcrypt: 1) Upgrade to the latest pip and try again. This will fix errors for most users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip 2) Ensure you have a recent Rust toolchain installed. bcrypt requires rustc >= 1.56.0. Python: 3.8.2 platform: macOS-10.16-x86_64-i386-64bit pip: n/a setuptools: 67.7.2 setuptools_rust: 1.6.0 rustc: n/a =============================DEBUG ASSISTANCE============================= error: can't find Rust compiler If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler. To update pip, run: pip install --upgrade pip and then retry package installation. If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain. This package requires Rust >=1.56.0. ---------------------------------------- ERROR: Failed cleaning build dir for bcrypt Failed to build bcrypt ERROR: Could not build wheels for bcrypt which use PEP 517 and cannot be installed directly WARNING: You are using pip version 19.2.3, however version 23.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. (venv) gahui@gahiuiui-MacBookPro deploy %
