오류 해결 과정 15

가상 환경 활성화 후 스크립트 실행 시 오류

배경윈도우에 스크립트를 두고 아래 명령어를 통해 파워쉘로 실행하고자 했다.command=f'cd {default_path}; poetry shell; python [2]hwp_to_pdf.py'실행이 안됐다.원인 파악 및 해결과정로그를 확인해보니 가상환경이 활성화 된걸 확인했다. 경로도 스크립트 파일이 있는 경로가 맞다.[2024-07-10, 03:09:59 UTC] {winrm.py:129} INFO - Try the new cross-platform PowerShell https://aka.ms/pscore6[2024-07-10, 03:09:59 UTC] {winrm.py:129} INFO - [2024-07-10, 03:09:59 UTC] {winrm.py:129} INFO - (.venv) PS ..

ChromeDriver 'DevToolsActivePort' 오류 해결: --no-sandbox 옵션의 중요성

오류내용Message: session not created: Chrome failed to start: crashed. (session not created: DevToolsActivePort file doesn't exist) (The process started from chrome location C:\Program Files (x86)\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)Stacktrace:배경winrm을 통한 원격 실행도중 셀레니움에서 오류 발생, 평소 로컬실행에서는 발생하지 않았던 오류해결방법chrome_options.add_a..

win32com 모듈 ssh 미동작 에러

진행과정airflow에서 sshoperator를 통해 윈도우에 있는 [2]hwp_to_pdf.py 파일을 동작시킴. task 실패 코드는 아래와 같음hwp_to_pdf = SSHOperator( task_id='hwp_to_pdf', ssh_conn_id='ssh_default', command=f'cd {default_path} && poetry shell && python [2]hwp_to_pdf.py', # Windows 경로에서 Python 스크립트 실행 명령어 conn_timeout=30, # 연결 시간 초과 설정 cmd_timeout=60, # 명령 시간 초과 설정 )정확한 위치를 확인하기 위해 곳곳에 실행 로그를 추가..

(python 설치 에러) A newer version of the Python launcher is already installed

배경ollama 프로젝트중에 알수없는 에러로 진행안됨.알고보니 python 3.12였는데, 3.11.5로 다운그레이드하면 의존성이 더 좋다는 후기가 들림python 3.11.5를 다운받아 설치하는데 에러가 뜸A newer version of the Python launcher is already installed 과정프로그램 추가제거에서 3.12버전 삭제 후 3.11.5 재설치같은 에러재부팅 후 재설치 같은에러프로그램 추가제거에 python launcher도 있길래 얘도 삭제3.11.5 재설치 성공  결론python 버전을 다운그레이드 할땐, python launcher까지 같이 삭제시켜주자

Poetry 사용 시 도커 컨테이너쉘에서 모듈 미 설치 현상

배경 : 도커와 Poetry를 결합해 컨테이너 구축(https://makenow90.tistory.com/3). 이후 request 모듈 설치후 컨테이너 쉘에서도 설치 됐는지 체크해봤는데, 설치가 안돼있음. 오류 해결과정컨테이너 쉘에 접속후 잘 설치 됐는지 확인$ docker exec -it airflow_airflow-webserver_1 /bin/bash$ pip show pythonWARNING: The directory '/home/airflow/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions an..