inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

173만명의 커뮤니티!! 함께 토론해봐요.

ch09의 '01_yt_extract_summerize_exp.ipynb' 실습중 에러

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

안녕하세요 ch09의 '01_yt_extract_summerize_exp.ipynb' 실습중에 마지막 'googletrans' 설치 및 실행시 오류가 발생합니다. openai 랑 googletrans 에서 사용하는 라이브러리가 충돌나는거 같은데 해결방법 있을까요? googletrans 설치시 pip install googletrans==3.1.0a0 Collecting googletrans==3.1.0a0 Using cached googletrans-3.1.0a0-py3-none-any.whl Collecting httpx==0.13.3 (from googletrans==3.1.0a0) Using cached httpx-0.13.3-py3-none-any.whl.metadata (25 kB) Requirement already satisfied: certifi in e:\python\inflearn_chatgpt-main\ch09\ch09_env\lib\site-packages (from httpx==0.13.3->googletrans==3.1.0a0) (2024.2.2) Collecting hstspreload (from httpx==0.13.3->googletrans==3.1.0a0) Using cached hstspreload-2024.3.1-py3-none-any.whl.metadata (2.1 kB) Requirement already satisfied: sniffio in e:\python\inflearn_chatgpt-main\ch09\ch09_env\lib\site-packages (from httpx==0.13.3->googletrans==3.1.0a0) (1.3.1) Collecting chardet==3.* (from httpx==0.13.3->googletrans==3.1.0a0) Using cached chardet-3.0.4-py2.py3-none-any.whl.metadata (3.2 kB) Collecting idna==2.* (from httpx==0.13.3->googletrans==3.1.0a0) Using cached idna-2.10-py2.py3-none-any.whl.metadata (9.1 kB) Collecting rfc3986<2,>=1.3 (from httpx==0.13.3->googletrans==3.1.0a0) Using cached rfc3986-1.5.0-py2.py3-none-any.whl.metadata (6.5 kB) Collecting httpcore==0.9.* (from httpx==0.13.3->googletrans==3.1.0a0) Using cached httpcore-0.9.1-py3-none-any.whl.metadata (4.6 kB) Collecting h11<0.10,>=0.8 (from httpcore==0.9.*->httpx==0.13.3->googletrans==3.1.0a0) Using cached h11-0.9.0-py2.py3-none-any.whl.metadata (8.1 kB) Collecting h2==3.* (from httpcore==0.9.*->httpx==0.13.3->googletrans==3.1.0a0) Using cached h2-3.2.0-py2.py3-none-any.whl.metadata (32 kB) Collecting hyperframe<6,>=5.2.0 (from h2==3.*->httpcore==0.9.*->httpx==0.13.3->googletrans==3.1.0a0) Using cached hyperframe-5.2.0-py2.py3-none-any.whl.metadata (7.2 kB) Collecting hpack<4,>=3.0 (from h2==3.*->httpcore==0.9.*->httpx==0.13.3->googletrans==3.1.0a0) Using cached hpack-3.0.0-py2.py3-none-any.whl.metadata (7.0 kB) Using cached httpx-0.13.3-py3-none-any.whl (55 kB) Using cached chardet-3.0.4-py2.py3-none-any.whl (133 kB) Using cached httpcore-0.9.1-py3-none-any.whl (42 kB) Using cached idna-2.10-py2.py3-none-any.whl (58 kB) Using cached h2-3.2.0-py2.py3-none-any.whl (65 kB) Using cached rfc3986-1.5.0-py2.py3-none-any.whl (31 kB) Using cached hstspreload-2024.3.1-py3-none-any.whl (1.1 MB) Using cached h11-0.9.0-py2.py3-none-any.whl (53 kB) Using cached hpack-3.0.0-py2.py3-none-any.whl (38 kB) Using cached hyperframe-5.2.0-py2.py3-none-any.whl (12 kB) Installing collected packages: rfc3986, hyperframe, hpack, h11, chardet, idna, hstspreload, h2, httpcore, httpx, googletrans Attempting uninstall: h11 Found existing installation: h11 0.14.0 Uninstalling h11-0.14.0: Successfully uninstalled h11-0.14.0 Attempting uninstall: idna Found existing installation: idna 3.6 Uninstalling idna-3.6: Successfully uninstalled idna-3.6 Attempting uninstall: httpcore Found existing installation: httpcore 1.0.4 Uninstalling httpcore-1.0.4: Successfully uninstalled httpcore-1.0.4 Attempting uninstall: httpx Found existing installation: httpx 0.27.0 Uninstalling httpx-0.27.0: Successfully uninstalled httpx-0.27.0 ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. openai 1.14.1 requires httpx<1,>=0.23.0, but you have httpx 0.13.3 which is incompatible. Successfully installed chardet-3.0.4 googletrans-3.1.0a0 h11-0.9.0 h2-3.2.0 hpack-3.0.0 hstspreload-2024.3.1 httpcore-0.9.1 httpx-0.13.3 hyperframe-5.2.0 idna-2.10 rfc3986-1.5.0 설치오류 무시하고 google_trans() 실행시 --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[14], line 1 ----> 1 from googletrans import Translator 3 def google_trans(messages): 4 google = Translator() File e:\Python\inflearn_chatGPT-main\ch09\ch09_env\Lib\site-packages\googletrans\__init__.py:6 2 __all__ = 'Translator', 3 __version__ = '3.1.0-alpha' ----> 6 from googletrans.client import Translator 7 from googletrans.constants import LANGCODES, LANGUAGES # noqa File e:\Python\inflearn_chatGPT-main\ch09\ch09_env\Lib\site-packages\googletrans\client.py:27 22 from googletrans.models import Translated, Detected 24 EXCLUDES = ('en', 'ca', 'fr') ---> 27 class Translator: 28 """Google Translate ajax API implementation class 29 30 You have to create an instance of Translator to use this API (...) 52 :type raise_exception: boolean 53 """ 55 def __init__(self, service_urls=DEFAULT_CLIENT_SERVICE_URLS, user_agent=DEFAULT_USER_AGENT, 56 raise_exception=DEFAULT_RAISE_EXCEPTION, ... 59 http2=True): 61 self.client = httpx.Client(http2=http2) 62 if proxies is not None: # pragma: nocover AttributeError: module 'httpcore' has no attribute 'SyncHTTPTransport' Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
doRemiPa 댓글 1 좋아요 0 조회수 291

강의 슬라이드 공유가 가능할까요?

미해결

모두를 위한 대규모 언어 모델 LLM Part 3 - 구글 제미나이(Google Gemini) API, OpenAI API와 젬마(Gemma)로 AI 어플리케이션 만들기

LLM Part 1 과 Part 2 는 강의 슬라이드를 공유해 주셨는데 Part 3 는 강의 슬라이드가 없어서 문의드립니다.

  • 딥러닝
  • streamlit
  • gemini
  • multimodal
  • chatgpt
  • llm
  • openai-api
  • gemma
빛나는봄 댓글 1 좋아요 0 조회수 264

ch07 urllib error

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

mac에서의 문제인지 다른 문제인지 모르겠지만 실습 중 urllib 에러가 발생해서 다음과 같이 해결했습니다. 다른 분들에게 도움이 되었으면 좋겠네요. 그리고 urllib만 import해오면 urlretrieve를 불러오지 못해서 urllib.request를 import했습니다. <에러 메시지> Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 1344, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1319, in request self._send_request(method, url, body, headers, encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1365, in send request self.endheaders(body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1314, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1074, in send output self.send(msg) File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1018, in send self.connect() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/http/client.py", line 1460, in connect self.sock = self._context.wrap_socket(self.sock, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 455, in wrap_socket return self.sslsocket_class._create( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1046, in _create self.do_handshake() File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ssl.py", line 1317, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/adampark/Documents/personal/inflearn_chatGPT/ch08/01_dalle_exp_NewVersion.py", line 18, in <module> urllib.request.urlretrieve(image_url, "test.jpg") File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 240, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: ^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 215, in urlopen return opener.open(url, data, timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 515, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 532, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 492, in call chain result = func(*args) ^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 1392, in https_open return self.do_open(http.client.HTTPSConnection, req, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/urllib/request.py", line 1347, in do_open raise URLError(err) urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)> <해결> pip install certifi CERT_PATH=$(python -m certifi) export SSL_CERT_FILE=${CERT_PATH} export REQUESTS_CA_BUNDLE=${CERT_PATH} https://github.com/asdf-community/asdf-python/issues/106

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
team.dev+be 댓글 1 좋아요 1 조회수 654

ch02 코드 에러 _ 신용카드 등록했음에도 'You exceeded your current quota ...' 에러가 발생합니다

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

안녕하세요 강사님 좋은 강의 만들어주셔서 정말 감사합니다 신용카드를 등록했음에도 불구하고 계속 같은 에러가 뜹니다. 지난번 어떤 분이 해당 에러 관련해서 글을 올려주셨고, 그것을 참고해 신용카드를 등록했음에도 같은 에러가 발생합니다 혹시 추가적으로 해야될 부분이 있는걸까요?

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
Suit & Coffee 댓글 2 좋아요 0 조회수 510

button과 checkbox 조건문과 함수

해결됨

5분빨리 퇴근하자! 파이썬 데이터 분석, 시각화, 웹 대시보드 제작하기

버튼과 체크박스 모두 조건문을 사용할 때는 바로 아래에 텍스트가 출력되는데, 함수를 사용하면 대시보드 맨 위에 텍스트가 호출되는 것은 왜 그런건가요?(맨 위에 텍스트가 호출되어 출력된 부분이 전부 다 한 칸 씩 밀리게 됨)

  • python
  • pandas
  • seaborn
  • plotly
  • matplotlib
  • data-visualization
  • streamlit
TEW_교육관리자 댓글 1 좋아요 0 조회수 329

annot 수치 표현

해결됨

5분빨리 퇴근하자! 파이썬 데이터 분석, 시각화, 웹 대시보드 제작하기

age_bin_list = np.arange(10, 80, 10) df['age_bin'] = pd.cut(df['age'], bins = age_bin_list) pivot_df = df.pivot_table( index = 'age_bin', columns = 'region', values = 'charges', aggfunc = 'median' # 각 구간에 해당하는 값을 중간값을 사용하겠다. ) pivot_df # 각각의 값들에 대해 크기를 가늠할 수 있게끔 시각화(주로 색상)하는 방법 # 2D 형식으로 준비된 데이터를 Seaborn heatmap으로 시각화 # annot 인자를 통해 각 셀의 값 표현 가능 fig, ax = plt.subplots() sns.heatmap(pivot_df, ax = ax, annot = True) 코드 똑같이 따라했는데 왜 저는 표에 수치가 다 표현이 안되는 건가요?

  • python
  • pandas
  • seaborn
  • plotly
  • matplotlib
  • data-visualization
  • streamlit
TEW_교육관리자 댓글 1 좋아요 0 조회수 364

groupby 경고 질문

해결됨

5분빨리 퇴근하자! 파이썬 데이터 분석, 시각화, 웹 대시보드 제작하기

groupby를 사용하면 에러는 아니고 경고가 뜹니다. FutureWarning: The default of observed=False is deprecated and will be changed to True in a future version of pandas. Pass observed=False to retain current behavior or observed=True to adopt the future default and silence this warning. chatGPT: 이 경고는 Pandas의 value_counts() 메서드를 사용할 때 발생하는 것으로 보입니다. 이 경고는 현재 버전의 Pandas에서는 observed 매개변수의 기본값이 False 이지만, 향후 버전에서는 True 로 변경될 것이라는 것을 알려주는 것입니다. 즉, 향후에는 observed=False 를 명시적으로 지정하지 않으면 경고가 표시될 것입니다. 이러한 경고를 피하려면 value_counts() 를 호출할 때 observed=False 를 명시적으로 전달하면 됩니다. 예를 들어: import pandas as pd # 예제 데이터프레임 생성 df = pd.DataFrame({'Category': ['A', 'B', 'A', 'C', 'B', 'A']}) # value_counts() 호출 시 observed 매개변수 명시 counts = df['Category'].value_counts(observed=False) print(counts) 이렇게 하면 경고가 발생하지 않습니다. 하지만 향후 Pandas 버전에서는 이러한 변경이 기본 동작이 되므로 observed 매개변수를 사용하여 코드를 업데이트하는 것이 좋습니다. -> 근데 이게 무슨 말인지 모르겠습니다! 뭐... 대충 업데이트 할 건데, 오류가 생길 수 있으니 미리 대비를 해라~ 이런 거 같은데 정확히 무슨 뜻인지 모르겠습니다!

  • python
  • pandas
  • seaborn
  • plotly
  • matplotlib
  • data-visualization
  • streamlit
TEW_교육관리자 댓글 1 좋아요 0 조회수 1454

print()

해결됨

5분빨리 퇴근하자! 파이썬 데이터 분석, 시각화, 웹 대시보드 제작하기

파이썬에서는 print() 구문이 굉장히 중요하다고 들었는데, 주피터랩에서는 print 없이 df만 써도 표가 나오는 이유는 왜인가요? print(df)를 했을 때는 표가 아니라 글로 나오네요.! 차이가 궁금해서 질문 남깁니다.

  • python
  • pandas
  • seaborn
  • plotly
  • matplotlib
  • data-visualization
  • streamlit
TEW_교육관리자 댓글 1 좋아요 0 조회수 291

음성비서 만들기 에러 FileNotFoundError

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

안녕하세요 강사님 강의 재밌게 잘 보고 있습니다. 음성비서 프로그램을 따라 만드는 도중 다음과 같은 에러가 발생하고 있어 도움을 요청드리고자 글 남깁니다. 엣지, 크롬 두 브라우저 상에서 동일하게 위와 같은 에러가 발생 중이며, 윈도우 시스템설정에서 해당 두 브라우저에 대한 마이크 접근 권한은 허용한 상태입니다.

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
유준모 댓글 1 좋아요 1 조회수 770

섹션0 python e teb 실행 불가 이슈 문의

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

python e가 최종 실행되어야하는데, 지정된 모듈을 찾을 수 없음이 뜹니다.(matplotlib 설치 완료)

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
이한울 댓글 1 좋아요 0 조회수 245

ch08 02_instagram_exp.py 실행 시 오류 발생

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

코드에 USER_ID와 USER_PASSWORD는 제 인스타그램 계정으로 설정했습니다. 실습하는 컴퓨터에서 해당 ID와 패스워드로 인스타그램에 로그인도 확인했구요. 실습 과정과 같이 실행했더니 아래와 같이 에러가 발생합니다. 설치된 패키지 정보는 아래와 같습니다. (ch08_env) D:\inflearn_chatGPT\ch08>pip show openai Name: openai Version: 0.28.1 Summary: Python client library for the OpenAI API Home-page: https://github.com/openai/openai-python Author: OpenAI Author-email: support@openai.com License: Location: D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages Requires: aiohttp, requests, tqdm Required-by: (ch08_env) D:\inflearn_chatGPT\ch08>pip show instagrapi Name: instagrapi Version: 2.0.1 Summary: Fast and effective Instagram Private API wrapper Home-page: https://github.com/subzeroid/instagrapi Author: Mark Subzeroid Author-email: 143403577+subzeroid@users.noreply.github.com License: MIT Location: D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages Requires: pycryptodomex, pydantic, PySocks, requests Required-by: < 실행 및 오류 메시지 > (ch08_env) D:\inflearn_chatGPT\ch08>python 02_instagram_ exp.py Traceback (most recent call last): File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\instagrapi\mixins\private.py", line 360, in send private_request response.raise_for_status() File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://i.instagram.com/api/v1/accounts/login/ During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\inflearn_chatGPT\ch08\02_instagram_exp.py", line 17, in <module> cl.login(USER_ID, USER_PASSWORD) File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\instagrapi\mixins\auth.py", line 441, in login logged = self.private_request("accounts/login/", data, login=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\instagrapi\mixins\private.py", line 542, in private_request raise e File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\instagrapi\mixins\private.py", line 527, in private_request self._send_private_request(endpoint, **kwargs) File "D:\inflearn_chatGPT\ch08\ch08_env\Lib\site-packages\instagrapi\mixins\private.py", line 447, in send private_request raise ProxyAddressIsBlocked(**last_json) instagrapi.exceptions.ProxyAddressIsBlocked: Instagram has blocked your IP address, use a quality proxy provider (not free, not shared) (ch08_env) D:\inflearn_chatGPT\ch08>

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
thson 댓글 1 좋아요 0 조회수 372

VS 터미널 가상환경에서 openai 0.28.1 설치 시 오류

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

어제 googletrans와 openai 패키지 버전 문제로 질문을 드렸었는데, openai 0.28.1을 설치하라고 답을 받아서 설치를 해봤습니다만, 아래와 같이 설치 시 에러가 나서 더 이상 진행하지 않고 질문을 남깁니다. 패키지들의 버전 호환 문제 때문에 실습하는데 어려움이 정말 많네요.. 다른 분들은 어떻게들 하고 있는지.. (ch07_env) D:\inflearn_chatGPT\ch07>pip install openai==0.28.1 ....설치 메시지... building 'multidict._multidict' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for multidict Failed to build multidict ERROR: Could not build wheels for multidict, which is required to install pyproject.toml-based projects 위와 같은 에러를 뱉고 openai는 제대로 설치되지 않습니다. (ch07_env) D:\inflearn_chatGPT\ch07>pip show openai WARNING: Package(s) not found: openai

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
thson 댓글 1 좋아요 0 조회수 1043

ch07 실습에 필요한 패키지 설치 시 오류가 납니다.

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

ch07 실습을 위해서 openai, googletrans 패키지를 설치하는데요, googletrans만 버전이 문제가 되는 게 아닙니다. openai, httpx, googletrans 3개의 버전이 서로 호환되지 않아 설치에 문제가 발생합니다. openai 설치까지는 정상적으로 됩니다. >> 이하 openai 패키지 정보 (ch07_env) D:\inflearn_chatGPT\ch07>pip show openai Name: openai Version: 1.7.2 Summary: The official Python library for the openai API Home-page: Author: Author-email: OpenAI <support@openai.com> License: Location: D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages Requires: anyio, distro, httpx, pydantic, sniffio, tqdm, typing-extensions Required-by: >> pip install googletrans==3.1.0a0 실행 후 오류 메시지가 나타납니다. ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. openai 1.7.2 requires httpx<1,>=0.23.0, but you have httpx 0.13.3 which is incompatible. 실행 시 브라우저에서 오류가 발생합니다. >> (ch07_env) D:\inflearn_chatGPT\ch07>streamlit run 04_Translate_app_ NewVersion.py You can now view your Streamlit app in your browser. Local URL: http://localhost:8501 Network URL: http://172.30.1.32:8501 2024-01-14 20:15:50.719 Uncaught app exception Traceback (most recent call last): File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in run script exec(code, module.__dict__) File "D:\inflearn_chatGPT\ch07\04_Translate_app_NewVersion.py", line 5, in <module> import openai File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\__init__.py", line 8, in <module> from . import types File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\types\__init__.py", line 5, in <module> from .image import Image as Image File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\types\image.py", line 5, in <module> from .._models import BaseModel File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\_models.py", line 22, in <module> from ._types import ( File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\_types.py", line 26, in <module> from httpx import URL, Proxy, Timeout, Response, BaseTransport, AsyncBaseTransport ImportError: cannot import name 'BaseTransport' from 'httpx' (D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\httpx\__init__.py). Did you mean: 'ASGITransport'? 2024-01-14 20:16:27.219 Uncaught app exception Traceback (most recent call last): File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 535, in run script exec(code, module.__dict__) File "D:\inflearn_chatGPT\ch07\04_Translate_app_NewVersion.py", line 5, in <module> import openai File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\__init__.py", line 8, in <module> from . import types File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\types\__init__.py", line 5, in <module> from .image import Image as Image File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\types\image.py", line 5, in <module> from .._models import BaseModel File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\_models.py", line 22, in <module> from ._types import ( File "D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\openai\_types.py", line 26, in <module> from httpx import URL, Proxy, Timeout, Response, BaseTransport, AsyncBaseTransport ImportError: cannot import name 'BaseTransport' from 'httpx' (D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\httpx\__init__.py). Did you mean: 'ASGITransport'? < 브라우저 오류 메시지 > ImportError : cannot import name 'BaseTransport' from 'httpx' (D:\inflearn_chatGPT\ch07\ch07_env\Lib\site-packages\httpx\__init__.py) ... 이하 다수의 에러 메시지

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
thson 댓글 1 좋아요 0 조회수 1168

Instagram has blocked your IP address.

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

안녕하세요 강사님. 강의 정말 재밌게 수강하고 있습니다 ! 좋은 강의 만들어주셔서 감사합니다. 제가 인스타 포스팅 프로그램을 따라 만드는 도중에 오류를 만났는데, 다음과 같은 오류가 있어 이유는 무엇이구, 어떻게 해결이 가능할지 여쭤보고자 글 올립니다. raise ProxyAddressIsBlocked(**last_json) instagrapi.exceptions.ProxyAddressIsBlocked: Instagram has blocked your IP address, use a quality proxy provider (not free, not shared) IP문제 때문이라고 하는데, 그냥 파이썬으로 upload하는 함수를 실행시켰을 땐 업로드가 되는데, webapp을 실행시켜 웹브라우저를 통해 업로드를 할땐 위와 같은 에러가 뜨는 이유가 궁금합니다.. 출발지 IP주소는 동일할텐데... 그리고 어떻게 해결할 수 있을까요..?

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
유준모 댓글 2 좋아요 0 조회수 609

CH04 01_summerize_text_app_NewVersion.py 코드 질문

해결됨

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

text = st.text_area("요약 할 글을 입력하세요") if st.button("요약"): prompt = f''' **Instructions** : - You are an expert assistant that summarizes text into **Korean language**. - Your task is to summarize the **text** sentences in **Korean language**. - Your summaries should include the following : - Omit duplicate content, but increase the summary weight of duplicate content. - Summarize by emphasizing concepts and arguments rather than case evidence. - Summarize in 3 lines. - Use the format of a bullet point. -text : {text} ''' 위 코드에서 prompt 의 f와 '''로 코멘트 처리된 부분은 어떤 식으로 작동을 하게 되는지요? prompt 가 문자열인 것 같은데 처음에 붙어 있는 f가 어떤 의미인지, 그리고 f 뒤의 문자열들은 왜 코멘트로 처리돼 있는 것인지 이해가 안됩니다.

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
thson 댓글 1 좋아요 0 조회수 269

다운로드한 예제 소스에서 오류가 발생합니다.

해결됨

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

[섹션1. ChatGPT API 사용법 익히기]의 네번째 "ChatGPT API 응답 구조 설명(JSON 데이터 확인하기) 학습중입니다. 이전에 질문했던 것처럼 다운받은 실습 소스와 강의 진행 내용이 맞지 않아 곤란을 겪고 있습니다. 예를 들어 아래 4개의 캡쳐가 있는데, 예제 소스에 있는 대로 실행을 하면 오류가 납니다. 소스 파일은 "02_ChatGPT_API_Code.ipynb" 입니다. 오류가 나는 부분은 "02_ChatGPT_API_Code_NewVersion.ipynb" 파일에서 내용을 복사해 실행하면 정상 작동합니다. 기본 질문에서부터 오류가 발생하니 이하 따라오는 코드들에서도 연속적으로 오류가 발생합니다. < 기본 질문하기 예제 소스 - 오류 > < 기본 질문하기 수정 후 정상 실행 > < 응답에서 답변 추출하기 오류 발생 > < 응답에서 답변 추출하기 수정 후 정상 실행 >

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
thson 댓글 2 좋아요 0 조회수 431

CH04 Open Ai 오류 이유

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

버전 오류는 나와있어서 잡았는데 만료된건은 결재를 해야하는건가요? 영상에서 나온것처럼 이제 초기 무료금액은 없는건가 해서욥..ㅠ

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
pcokgo 댓글 1 좋아요 0 조회수 803

비활성화 단축키 뭔지 알려주세요!

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

한번에 비활성화 하시던데 단축키가 뭔지 궁금합니다!

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
pcokgo 댓글 1 좋아요 0 조회수 454

"02_ChatGPT_API_Code.ipynb" 소스 코드가 Github에 올려져 있는 소스와 다릅니다.

해결됨

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

ch2 듣고 있는데, "02_ChatGPT_API_Code.ipynb" 소스 코드가 Github에 올려져 있는 소스와 다르네요?? VSCode 환경도 버전이 달라서인지 조금씩 다르고, 가상환경 표시도 안되는데(activate.bat 실행하면 오류는 안 나오더라구요) 어찌저찌 해보려고 하다가 저 예제에서는 짜증이 터져서 오늘은 더 못하겠습니다. 환경이 달라서 커리큐럼상 50분 정도 듣는데 서너시간은 걸린 것 같습니다.(제가 뭘 빼먹었나 잘못했나 싶어서 PC 사용자도 새로 추가하고-기존 사용자명이 한글이라 문제가 있나 싶어서 영문 사용자 만들고 VSCode, Python도 새로 설치했습니다-강의를 여러번 반복해서 들어봤지만 따라하기가 너무 고되네요..

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
thson 댓글 1 좋아요 0 조회수 298

CH02_ 가상환경 활성화 안되는 이유

미해결

초보자를 위한 ChatGPT API 활용법 - API 기본 문법부터 12가지 프로그램 제작 배포까지

가상환경 활성화 코드를 입력해도 앞에 (ch02_env)가 안나오는데 이래도 괜찮은건가요?

  • python
  • 챗봇
  • streamlit
  • openai
  • chatgpt
pcokgo 댓글 3 좋아요 1 조회수 925

인기 태그

인프런 TOP Writers

주간 인기글