묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
Assertions.assertThat과 assertEquals 문의드립니다.
프로젝트를 다시 생성하면서 junit버전을 고려하지 못해 오류가 나서 강의노트를 보고 아래처럼 설정을 바꿨습니다. testImplementation('org.springframework.boot:spring-boot-starter-test') { exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'} 그런데 assertEquals를 사용하면 import org.junit.jupiter.api.Assertions; 주피터가 임포트되어 assertThat에서 에러가 나고 assertThat을 사용하려고 하면 import org.assertj.core.api.Assertions; 이렇게 임포트되서 assertEquals에서 에러가 납니다. 왜이러는 걸까요?
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 챗봇 사이트 만들기
npm install 오류....
- 학습 관련 질문을 남겨주세요. 상세히 작성하면 더 좋아요! - 먼저 유사한 질문이 있었는지 C:\Users\82108\Desktop\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4>node install internal/modules/cjs/loader.js:888 throw err; ^ Error: Cannot find module 'C:\Users\82108\Desktop\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\install' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15) at Function.Module._load (internal/modules/cjs/loader.js:730:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } C:\Users\82108\Desktop\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4>npm install > grpc@1.19.0 install C:\Users\82108\Desktop\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc > node-pre-gyp install --fallback-to-build --library=static_library node-pre-gyp WARN Using needle for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://node-precompiled-binaries.grpc.io/grpc/v1.19.0/node-v83-win32-x64-unknown.tar.gz node-pre-gyp WARN Pre-built binaries not found for grpc@1.19.0 and node@14.17.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) gyp ERR! find Python gyp ERR! find Python Python is not set from command line or npm configuration gyp ERR! find Python Python is not set from environment variable PYTHON gyp ERR! find Python checking if "python" can be used gyp ERR! find Python - "python" is not in PATH or produced an error gyp ERR! find Python checking if "python2" can be used gyp ERR! find Python - "python2" is not in PATH or produced an error gyp ERR! find Python checking if "python3" can be used gyp ERR! find Python - "python3" is not in PATH or produced an error gyp ERR! find Python checking if the py launcher can be used to find Python 2 gyp ERR! find Python - "py.exe" is not in PATH or produced an error gyp ERR! find Python checking if Python is C:\Python27\python.exe gyp ERR! find Python - "C:\Python27\python.exe" could not be run gyp ERR! find Python checking if Python is C:\Python37\python.exe gyp ERR! find Python - "C:\Python37\python.exe" could not be run gyp ERR! find Python gyp ERR! find Python ********************************************************** gyp ERR! find Python You need to install the latest version of Python. gyp ERR! find Python Node-gyp should be able to find and use Python. If not, gyp ERR! find Python you can try one of the following options: gyp ERR! find Python - Use the switch --python="C:\Path\To\python.exe" gyp ERR! find Python (accepted by both node-gyp and npm) gyp ERR! find Python - Set the environment variable PYTHON gyp ERR! find Python - Set the npm configuration variable python: gyp ERR! find Python npm config set python "C:\Path\To\python.exe" gyp ERR! find Python For more information consult the documentation at: gyp ERR! find Python https://github.com/nodejs/node-gyp#installation gyp ERR! find Python ********************************************************** gyp ERR! find Python gyp ERR! configure error gyp ERR! stack Error: Could not find any Python installation to use gyp ERR! stack at PythonFinder.fail (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:307:47) gyp ERR! stack at PythonFinder.runChecks (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:136:21) gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:225:16) gyp ERR! stack at PythonFinder.execFileCallback (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\find-python.js:271:16) gyp ERR! stack at exithandler (child_process.js:326:5) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:338:5) gyp ERR! stack at ChildProcess.emit (events.js:376:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! stack at onErrorNT (internal/child_process.js:467:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:82:21) gyp ERR! System Windows_NT 10.0.19041 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\\Users\\82108\\Desktop\\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\\node_modules\\grpc\\src\\node\\extension_binary\\node-v83-win32-x64-unknown\\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\\Users\\82108\\Desktop\\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\\node_modules\\grpc\\src\\node\\extension_binary\\node-v83-win32-x64-unknown" "--napi_version=8" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v83" gyp ERR! cwd C:\Users\82108\Desktop\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc gyp ERR! node -v v14.17.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\82108\Desktop\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\82108\Desktop\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\82108\Desktop\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:376:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1055:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5) node-pre-gyp ERR! System Windows_NT 10.0.19041 node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\82108\\Desktop\\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\\node_modules\\grpc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd C:\Users\82108\Desktop\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc node-pre-gyp ERR! node -v v14.17.0 node-pre-gyp ERR! node-pre-gyp -v v0.12.0 node-pre-gyp ERR! not ok Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --library=static_library --module=C:\Users\82108\Desktop\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\82108\Desktop\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\chatbot-app-56b70f8517a33ac618d6b1b5684bf304f84358b4\node_modules\grpc\src\node\extension_binary\node-v83-win32-x64-unknown --napi_version=8 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v83' (1) npm WARN chatbot-app@1.0.0 No repository field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! grpc@1.19.0 install: `node-pre-gyp install --fallback-to-build --library=static_library` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the grpc@1.19.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\82108\AppData\Roaming\npm-cache\_logs\2021-05-26T17_15_46_718Z-debug.log검색해보세요. npm install을 쳤을 뿐인데 이렇게 어마무시한 에러들이 덮칩니다.. 뭐가 문제고 뭐부터 해야할까요... 구글링해도 잘 모르겠네요- 서로 예의를 지키며 존중하는 문화를 만들어가요. - 잠깐! 인프런 서비스 운영 관련 문의는 1:1 문의하기를 이용해주세요.
-
미해결[리뉴얼] 파이썬입문과 크롤링기초 부트캠프 [파이썬, 웹, 데이터 이해 기본까지] (업데이트)
왜 에러가 출력되는지 모르겠어요 하다 보면 이런 에러가 자꾸 발생해요
(사진)
-
미해결파이썬 증권 데이터 수집과 분석으로 신호와 소음 찾기
[질문] 웹 크롤링으로 데이터 수집 시 데이터 병합이 안되는 문제
안녕하세요. 선생님 강의 잘 듣고 있습니다. 강의를 들으면서 책을 보고 웹 크롤링으로 데이터를 다운 받아 dataframe으로 전환 최종 엑셀로 저장하는 코드를 공부 하고 있습니다. 그런데 크롤링은 되는데 최종 엑셀 저장 파일을 보면 맨 처음 페이지만 저장 되는데요 아래 코드에서 잘못된게 있을까요? 그리고 break문을 적으면 SyntaxError: 'break' outside loop 에러가 나와 주석처리 했습니다. 제가 워낙 초보라 답변을 주실 수 있는지요? 감사합니다. # from selenium import webdriver # browser = webdriver.Chrome("/Users/maru/Downloads/chromedriver") # browser.get("https://seibro.or.kr/websquare/control.jsp?w2xPath=/IPORTAL/user/company/BIP_CNTS01042V.xml&menuNo=286#") search_btn = browser.find_element_by_id("image1") search_btn.click() html = browser.page_source from bs4 import BeautifulSoup from html_table_parser import parser_functions as parser import pandas as pd soup = BeautifulSoup(html, "html.parser") table = soup.find("table", attrs ={"id" : "grid1_body_table"}) p = parser.make2d(table) df = pd.DataFrame(p[2:], columns=p[1]) df.head() import time import random from tqdm import tqdm prev_no = 0 prev_table = None for i in tqdm(range(0,200)): try: next_btn = browser.find_element_by_id("cntsPaging01_next_btn") next_btn.click() except: time.sleep(2) try: next_btn = browser.find_element_by_id("cntsPaging01_next_btn") next_btn.click() except: time.sleep(2) next_btn = browser.find_element_by_id("cntsPaging01_next_btn") next_btn.click() def get_html(browser, cnt): if cnt >= 4: return -1, -1 html = browser.page_source soup = BeautifulSoup(html, "html.parser") cur_no = soup.find("a", sttrs = {"class" : "w2pageList_control_label w2pageList_label_selected"}) cur_no = cur_no.text table = soup.find("table", attrs={"id" : "grid1_body_table"}) if cur_no != prev_no and prev_table != table: return cur_no, table else: time.sleep(1) get_html(browser, cnt+1) cur_no, table = get_html(browser, 1) if cur_no == -1: print("\n종료. 테이블 정보가 바꾸지 않았습니다.") break p = parser.make2d(table) temp = pd.DataFrame(p[2:], columns=p[1]) df = pd.concat([df, temp], 0) prev_no = cur_no prev_table = html if cur_no == "95": print("\n 최종 페이지 도달") # break time.sleep(random.randrange(3, 5)) df.to_excel("stock_div.xlsx")
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
equals hashcode 생성 질문입니다.
값 타입 컬렉션 챕터 25쯤에 나오는 메서드 Override 코드가 있는데요 자동생성으로 만들어진 코드 인가요? (강의를 쭉 보긴했는데 앞편에서 잘 기억이 안나서요.. ㅠㅠ ) 자동생성하니 이렇게 생성 됩니다.. @Overridepublic int hashCode() { return super.hashCode();}@Overridepublic boolean equals(Object obj) { return super.equals(obj);}
-
해결됨자바스크립트 알고리즘 문제풀이 입문(코딩테스트 대비)
Map 질문
Map.prototype.insert = function (findKey) { if (this.has(findKey)) this.set(findKey, this.get(findKey) + 1) else this.set(findKey, 1) } 해쉬에서 확인하고 추가하는 경우가 많던데 이런 식으로 중복된 코드를 제거하는 방식을 생각해봤습니다. 적용해봐도 괜찮겠습니까??
-
미해결자바스크립트 중고급: 엔진 핵심
[정리 시간] 작성해보았습니다.
선생님 안녕하세요. 벌써 이번 강의의 마지막 정리시간이네요...항상 감사드립니다. 작성한 내용 다른분들과 공유하고자 글을 올립니당. 1. book function 오브젝트를 생성 2. book 함수가 속한 글로벌 오브젝트를 function 오브젝트의 [[Scope]]에 설정 3. var obj = book(200); 에서 book(200)을 호출 --실행 준비 단계-- 4. 실행 콘텍스트를 생성 5. 3개의 컴포넌트 생성 (렉시컬/변수 환경 컴포넌트, this 바인딩 컴포넌트) 6. book function 오브젝트의 [[Scope]]를 외부 렉시컬 환경 참조에 바인딩 --초기화 및 실행 단계-- 7. 파라미터 이름인 bookParam에 200을 매핑하여 선언적 환경 레코드에 설정 8.function getPoint(pointParam){코드}에서 function 오브젝트를 생성 9. getPoint function 오브젝트의 [[Scope]]에 book 함수의 내부 영역이 설정됨 10. getPoint를 선언적 환경 레코드에 설정 11. var point;에서 변수 이름을 선언적 환경 레코드에 설정 12. var point = 100;에서 선언적 환경 레코드의 point에 100 할당 13. return getPoint;에서 getPoint function 오브젝트 반환 14. obj에 getPoint function 오브젝트를 할당 15. console.log(obj(400))에서 obj를 호출하면 getPoint(400) 함수가 호출됨 --getPoint 함수의 클로저와 관련된 부분-- 1. 실행 콘텍스트를 생성 2. getPoint function 오브젝트의 [[Scope]]를 외부 렉시컬 환경 참조에 바인딩 3. pointParam이라는 파라미터 이름에 400을 매핑하여 선언적 환경 레코드에 설정 4. 함수 안의 코드 실행 5. point = point + bookParam + pointParam;에서 6. point와 bookParam을 외부 렉시컬 환경 참조에서, pointParam을 선언적 환경 레코드에서 식별자 해결 7. 각각을 더한 값을 ponit에 할당 8. 따라서 콘솔창에 700이 출력됨 감사합니다!
-
미해결
인프런 사이트 검색기능 관련 문의입니다.
검색에서 소스트리(source tree)를 사용하여 Git 사용하기 강의를 검색하면 잘나오는데 실제로 개발 프로그래밍 > 개발 도구 탭쪽에서는 보이지 않습니다. 혹시 다른 많은 강의들도 이렇게 숨겨져 있는게 있나요?
-
미해결PHP 7+ 프로그래밍: 객체지향
24강 관련 질문드립니다. ( Class not found )
24강 예시 따라하면서 Class not found 에러가 떠서 질문드립니다. 어디를 수정해야 될지를 모르겠습니다. 확인부탁드려요ㅠ
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
InputManager의 작동 원리가 잘 이해되지 않습니다.
InputManager의 작동 원리가 잘 이해되지 않습니다. 그래서 디버깅으로 한 줄 한 줄 따라가 봤는데, 여전히 궁금한 점들이 있습니다. 1. 왜 InputManager _input = new InputManager();를 읽은 뒤 Init()를 다시 실행해서 DonDestroyOnLoad(go);를 읽는 건가요? Init();은 Start에 들어 있으니 첫 실행 때 한 번 호출되고 끝이어야 하는 게 아닌가요? 2. Managers의 업데이트에서 OnUpdate를 계속 호출해 줘서 키 입력을 감지하는 건 알겠는데 키 입력이 들어온 뒤 KeyAction.Invoke();가 어떤 역할을 하는지 모르겠습니다. 혹시 InputManager에서 if( KeyAction != null)일 경우 바로 OnKeyboard()를 호출하는 게 문법적으로 불가능하기 때문인가요?
-
미해결자바 ORM 표준 JPA 프로그래밍 - 기본편
@ElementCollection 질문입니다.
컬렉션들을 저장할 때 @ElementCollection 를 사용했는데요,( 내가 좋아하는 음식은 치킨, 피자, 족발) @OneToMany 로 풀지 않고 @ElementCollection 를 사용한 이유가 있을까요? 어떤 차이가 있나 궁금합니다.
-
미해결따라하며 배우는 노드, 리액트 시리즈 - 영화 사이트 만들기
504 에러
안녕하세요 강사님 fetch로 데이터를 받아오는데 계속 504 (Gateway Timeout)에러가 나오네요 ... 이유가 무엇일까요 ㅠ
-
미해결[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진
궁금한 게 있습니다.
1. 작성하신 코드를 보면 Quaternion.Slerp를 사용할 때 따로 transform.rotation에 넣어서 사용하셨는데 transform.Translate처럼 그냥 바로 사용할 순 없나요? 없다면 이유가 뭔지 궁금합니다. 2. transform.position += Vector3.forward * Time.deltaTime * _speed; 위 코드에서 transform.position은 월드 좌표이고 Vector3.forward는 로컬 좌표인데 왜 월드 좌표로 전환하지 않고도 바로 사용할 수 있는 건가요?
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
인텔리제이 메뉴 빨간색으로 뜨는 이유가 뭘까요
인텔리제이 초반때부터 프로젝트 구동도 잘되고 실행도 잘되는 것에 비해서 다른 사람들과 달리 왼쪽 옆에 프로젝트 속 파일들이 전체적으로 빨갛게 뜨는데 어떻게 해야하는지 알고 싶습니다!
-
미해결작정하고 장고! Django로 Pinterest 따라만들기 : 바닥부터 배포까지
로그인/로그아웃 REDIRECT가 구현되지 않습니다.
LOGIN_REDIRECT_URL = reverse_lazy('home')LOGOUT_REDIRECT_URL = reverse_lazy('accountapp:login') 안녕하세요...강의를 듣고 완료한 후 전반적인 테스트 중에........ 위처럼 settings.py에 설정되어 있는데 구현되지 않습니다. REDIRECT가 직전화면으로 이루어지고 있습니다. 오니언 사이트에서도 동일하게 오류가 발생하고 있군요..... 확인바랍니다...감사합니다.
-
미해결[C++과 언리얼로 만드는 MMORPG 게임 개발 시리즈] Part1: C++ 프로그래밍 입문
sasm 디버그 에러 질문입니다.
디버그를 시도하면 An error has occurred in the debugger. Please check the names of the sections.로 에러가 나는데 이유를 모르겠습니다 ㅠㅠ
-
미해결15일간의 빅데이터 파일럿 프로젝트
host3 추가시 발생하는 에러
현상 : 1. host2 를 복제 후에 클러스터에 새 호스트를 추가하는데 설치파일을 못 찾음. 2. wget 경로가 현재 없어서 레포지토리도 받을 수 없음. (동일한 문제를 겪으시고, 해결한 분이 있으시면 답변 부탁드립니다, 구체적인 원인과 해결방법 찾을 시, 글 수정하겠습니다 ~ )
-
미해결스프링 입문 - 코드로 배우는 스프링 부트, 웹 MVC, DB 접근 기술
개발자님 이거 접속이 안되면 어떻게 진행해야 할까요?
안녕하세요. 지금 h2 database 말씀하신대로 깔아보고 안되서 여기 질문 다 본 후 윈도우버전으로 깔아보고 지웠다가 종합버전으로 깔아보고 또 윈도우버전으로 깔아봤는데 h2 database가 연결이 안됩니다. lenovo x1 쓰고 있는데 노트북과 관련이 있을까요..? 계속 이 오류였는지는 확인하지 못했지만 지금은 Database "C:/Users/Lenovo/test" not found, either pre-create it or allow remote database creation (not recommended in secure environments) [90149-200] 90149/90149 (도움말) 이런 오류가 뜨면서 접속이 안됩니다.. ㅠㅠ
-
미해결머신러닝 엔지니어 실무
후반부강의자료 부탁드려요.
며칠전에 요청했는데 아직 안 왔습니다. hakjuknu@gmail.com
-
미해결<M.B.I.T> 테스트 페이지 만들기! with Django
css 질문
- 안녕하세요. 강의를 너무 잘듣고 있습니다. 다름아니라 제가 활용을 해보고자 영문으로 텍스트를 바꾸었더니, 정렬이 틀어지네요. 이것은 css 문제가 아닌가요? 아직 초보라 이런 질문을 드려서 부끄럽습니다. 고맙습니다.