반응형

2024/01 4

ARCH Linux VNCserver

초기 설정 tigervncviewer를 설치합니다. password 설정 vncpasswd 원하는 암호 입력하고 (6자리) ~/.vnc/passwd permission을 0600으로 설정합니다. 서버 키는 방법 Running x0vncserver to directly control the local display (직접 서버 키는방법) $ x0vncserver -rfbauth ~/.vnc/passwd With xprofile ~/.xprofile ... x0vncserver -rfbauth ~/.vnc/passwd & With systemd (system service로 키는 방법) With a system service /etc/systemd/system/x0vncserver.service [Unit]..

리눅스 2024.01.26

selenium ChromeDriver PermissionError

잘 되던 셀레니움 크롬드라이버가 갑자기 permission 에러가 발생합니다. chrome_options = Options() chrome_options.add_argument('headless') driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()),options=chrome_options) PermissionError: [Errno 13] Permission denied: 'C:\\Users\\ninestar\\.wdm\\drivers\\chromedriver\\win64\\120.0.6099.109\\chromedriver-win32\\chromedriver.exe' stackoverflow에서 해결방법을 찾았습니다. ..

UnicodeEncodeError: 'locale' codec can't encode character '\uc6d4' in position 2: encoding error

파이썬에서 날짜 형식을 지정하는 함수 strftime을 사용하면 아래와 같이 출력이 됩니다. print(today.strftime('%Y. %m. %d.'))#실행결과 2019. 03. 06. print(today.strftime('year: %Y month: %m day : %d'))#실행결과 year: 2019 month: 03 day : 06 하지만 형식에 한글이 들어가면 아래와 같이 에러가 발생합니다. $ print(today.strftime('%Y년 %m월 %d일'))#실행결과 Traceback (most recent call last): File "c:\Users\jeakwon\Desktop\workspace_docx\docx\take_in_request_form.py", line 7, in ..