반응형

Language

Error아래와 같이 python의 버전과 pip python의 버전이 달라서 pip install을 통해 라이브러리를 설치해도 적용이 안되는 경우가 발생함.Python version> python --versionPython 3.11.4 pip version> pip --version pip 24.0 from c:\users\administrator\appdata\local\programs\python\python38\lib\site-packages\pip (python 3.8)      SolutionVS Code의 경우 단축키 Ctrl + Shift + P   >   'Select Interpreter' 를 입력하여 현재 사용중인 python 버전을 확인.   나의 경우 아래 그림처럼 Pyt..
ErrorWindow에서 Python 소스코드를 받아 실행했을 때 아래와 같은 에러가 발생함.SyntaxError: Non-ASCII character '\xeb' in file c:/{yourPythonFile}.py on line 12, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details   Solution 다른 개발환경에서 Python 버전3으로 개발하던 소스코드를 새로운 환경에서 버전 2로 실행하려고 하니 발생함. Python2에서는 기본 인코딩이 ASCII이기 때문에 코드에 한글이 있을 경우 위 에러가 발생한 것. 나의 경우 버전을 Python3으로 올려서 해결하였는데 버전업 하..
ErrorWindow에서 Python을 이용해서 AudioSegment.from_mp3으로 음성파일 로드시 아래와 같은 에러가 발생함.C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\pydub\utils.py:198: RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)Traceback (most recent call..
Errorpython을 이용해서 웹 크롤링을 위해 아래 코드 실행시 에러가 발생함import requestsrequests.get(link)  ErrorDuring handling of the above exception, another exception occurred:Traceback (most recent call last): File "d:/CHOI/workspace/Auto-News/main.py", line 41, in links = links + parse_news_links(newsRankingUrl) File "d:/CHOI/workspace/Auto-News/main.py", line 32, in parse_news_links return p..
Error Java 17로 생성한 SpringBoot 프로젝트를 다른 PC에 클론받아 실행하였더니 아래와 같은 에러가 발생함. A problem occurred configuring root project 'example'. > Could not resolve all files for configuration ':classpath'. > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.2.3. Required by: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.2.3 > No matching variant of org.springfr..
ErrorNestJS에서 react useState 사용시 아래와 같은 에러 발생.× You're importing a component that needs useState. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default. │ Learn more: https://nextjs.org/docs/getting-started/react-essentials   SolutionNestjs는 기본적으로 서버 컴포넌트를 사용하는데 useState와 같은 클라이언트 컴포넌트를 사용하려고 해서 에러가 발생한것.참고 : https://ne..
JVM GC(Java 8 이전): 특징: 직렬 GC : 단일 스레드에서 메모리를 처리하여 기본적인 가비지 수집 기능을 제공합니다. 병렬 GC(Parallel GC) : 직렬 GC의 멀티스레드 버전으로, 성능 향상을 위해 가비지 수집을 병렬로 수행합니다. CMS(Concurrent Mark-Sweep) GC : 백그라운드에서 GC 작업을 동시에 수행하여 메모리 사용량을 최소화하고 응답 시간을 최적화합니다. 장점과 단점: 직렬 GC : 간단하고 효율적이지만 멀티 코어 시스템에서는 성능 제한이 있을 수 있습니다. 병렬 GC : 멀티 코어 시스템에서 성능 향상을 제공하지만 일시 중지 시간이 길어질 수 있습니다. CMS GC : 짧은 일시 중지 시간으로 응답성을 향상하지만 CPU 사용량이 높아 처리량에 영향을 미..
현재 운영중인 서비스에 로컬 파일 보관 기간을 수정해야하는데 삭제 기준을 마지막 수정시간을 기준으로 삭제함. 프로그램 수정 후 테스트를 위해 마지막 수정 시간을 수정하려고 만든 파이썬 프로그램임 import osimport datetimedef change_file_modified_time(file_path, new_modified_time): new_modified_time = datetime.datetime.strptime(new_modified_time, '%Y-%m-%d %H:%M:%S') os.utime(file_path, times=(new_modified_time.timestamp(), new_modified_time.timestamp()))file_path = 'D:\\mnsof..
반응형
MOMOBOB
'Language' 카테고리의 글 목록