커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
구글 앱 비밀번호 생성을 할 수가 없어요
[왕초보] ChatGPT 300% 활용하기 v0
4주차
북마크
서*환
댓글
3
추천
0
조회수
17
조회수
17
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.



구글보안계정에서 앱 비밀번호가 보이지 않습니다.





작성한 코드 및 에러 메세지

SMTPAuthenticationError                   Traceback (most recent call last)
<ipython-input-15-331e65912b73> in <cell line: 30>()
     30 with smtplib.SMTP(smtp_server, smtp_port) as smtp:
     31     smtp.starttls()
---> 32     smtp.login(smtp_username, smtp_password)
     33 
     34     for name, email in zip(name_list, email_list):


2 frames

/usr/lib/python3.10/smtplib.py in login(self, user, password, initial_response_ok)
    748 
    749         # We could not login successfully.  Return result of last attempt.
--> 750         raise last_exception
    751 
    752     def starttls(self, keyfile=None, certfile=None, context=None):

/usr/lib/python3.10/smtplib.py in login(self, user, password, initial_response_ok)
    737             method_name = 'auth_' + authmethod.lower().replace('-', '_')
    738             try:
--> 739                 (code, resp) = self.auth(
    740                     authmethod, getattr(self, method_name),
    741                     initial_response_ok=initial_response_ok)

/usr/lib/python3.10/smtplib.py in auth(self, mechanism, authobject, initial_response_ok)
    660         if code in (235, 503):
    661             return (code, resp)
--> 662         raise SMTPAuthenticationError(code, resp)
    663 
    664     def auth_cram_md5(self, challenge=None):

SMTPAuthenticationError: (534, b'5.7.9 Application-specific password required. For more information, go to\n5.7.9 https://support.google.com/mail/?p=InvalidSecondFactor gv12-20020a17090b11cc00b002b2827e6330sm6873687pjb.56 - gsmtp')오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.

Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.

Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴