묻고 답해요
164만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결파이썬으로 구현하는 거래 자동화 봇 (챗봇)
telegram bot 관련 - 최근에 작동을 안합니다.
얼마전까지 잘 반응했는데, 갑자기 안됩니다. pip uninstall python-telegram telegram pip install python-telegram-bot 으로 삭제 후 재 설치해도 동일한 에러가 뜹니다. ------------------- 에러 메세지 ------------------- C:\Anaconda3\python.exe C:/Users/USER/PycharmProjects/trade-master/inflearn_telegram.py Traceback (most recent call last): File "C:/Users/USER/PycharmProjects/trade-master/inflearn_telegram.py", line 1, in <module> import telegram File "C:\Anaconda3\lib\site-packages\telegram\__init__.py", line 46, in <module> from .files.file import File File "C:\Anaconda3\lib\site-packages\telegram\files\file.py", line 23, in <module> from future.backports.urllib import parse as urllib_parse File "C:\Anaconda3\lib\site-packages\future\backports\__init__.py", line 14, in <module> import_top_level_modules() File "C:\Anaconda3\lib\site-packages\future\standard_library\__init__.py", line 810, in import_top_level_modules with exclude_local_folder_imports(*TOP_LEVEL_MODULES): File "C:\Anaconda3\lib\site-packages\future\standard_library\__init__.py", line 781, in __enter__ module = __import__(m, level=0) File "C:\Users\USER\PycharmProjects\trade-master\test.py", line 13, in <module> bot = telegram.Bot(token = my_token) AttributeError: module 'telegram' has no attribute 'Bot' Process finished with exit code 1
-
미해결EOSJS를 이용한 EOS 심플 월렛 만들기
안녕하세요 질문드립니다
저는 비개발자면서 eos에 대해 공부하고있는중입니다. 기초적인 질문일 수 있는데요.. node getInfo.js를 실행했을때 에러가 나오는데 Eos(config).getInfo((error, info) => { ^ TyperError: Eos is not a function 이라는 에러가 나옵니다. node 및 eosjs 재설치를하면서 다시해보는데도 같은 에러가 나와 질문드립니다 ------------------------------- ubuntu 16.04 node v10.15.3 npm v6.4.1
-
미해결리눅스 시스템 프로그래밍 - 이론과 실습
cat /proc/cpuinfo 입력시 processor가 0번 1개입니다.
cat /proc/cpuinfo 입력시 processor가 0번 1개입니다. processor가 1개 밖에 없는데 어떻게 하면 실습을 진행할 수 있을까요? 컴파일 후 ./affinity를 해도 마지막에 프로세스가 바뀔수 가 없는데 어떻게 하면 실습을 할 수가 있을까요?
-
미해결밑바닥 부터 시작하는 머신러닝 입문
정밀도와 민감도가 잘 이해되지 않습니다.
정밀도와 민감도의 차이가 잘 이해되지 않습니다. 예나 언어적으로 풀어서 이해하기 쉽게 말씀해주실수 있나요? 수학적으로는 분모가 예측값으로 조건부를 걸었냐, 실제값으로 조건부를 걸었냐의 차이 뿐이지만 의미적으로는 더 깊은 의미가 있을 듯한데.
-
미해결리눅스 시스템 프로그래밍 - 이론과 실습
shared는 왜 0이 아닌 값들이 나오는거죠?
mutex lock을 하지 못해서 순서가 뒤죽박죽이어도 결국 20000번씩 진행을 하고 끝나니까 0이 되지 않나요? 동영상을 다시 보니까 헷갈리네요
-
미해결리눅스 시스템 프로그래밍 - 이론과 실습
선생님 질문있습니다
pthread_create 3번째 인자인 함수를 넘겨줄 때 man page 보면 void * 반환형의 함수 주소를 넘겨주는데 선생님이 작성해주신 코드는 그냥 함수명만 넘겼는데 제가 착각하는 것인가요? pthread_create(... , ..., &child_thread_main, ...) 라고 생각이 드는데요..
-
미해결신입 프로그래머를 위한 실전 JSP 강좌
Class.forName(driver);
앞서 DriverManager, Connection, Statement, ResultSet의 개념들은 이해가 잘 됐습니다. 그런데 항상 선행되는 Class.forName(driver);는 뭔지 궁금합니다.
-
미해결Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
npm install 부분에서 에러가 뜹니다.
gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Users\82103\Anaconda3\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\82103\Desktop\klaytn\addition-game-starter\node_modules\keccak gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! keccak@1.4.0 rebuild: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the keccak@1.4.0 rebuild script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install? npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\82103\AppData\Roaming\npm-cache\_logs\2019-05-15T08_09_22_949Z-debug.log "Keccak bindings compilation fail. Pure JS implementation will be used." > scrypt@6.0.3 install C:\Users\82103\Desktop\klaytn\addition-game-starter\node_modules\scrypt > node-gyp rebuild C:\Users\82103\Desktop\klaytn\addition-game-starter\node_modules\scrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Users\82103\Anaconda3\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:294:12) gyp ERR! stack at ChildProcess.emit (events.js:189:13) gyp ERR! stack at maybeClose (internal/child_process.js:970:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\82103\Desktop\klaytn\addition-game-starter\node_modules\scrypt gyp ERR! node -v v10.15.3 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN klay-dapp-boilerplate@0.0.1 No repository field. npm WARN klay-dapp-boilerplate@0.0.1 No license 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! scrypt@6.0.3 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the scrypt@6.0.3 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\82103\AppData\Roaming\npm-cache\_logs\2019-05-15T08_09_26_187Z-debug.log Baobab에 스마트 계약 배포 #1 에서 진행하다가 이런 에러가 뜹니다. 어느 부분이 잘못되었는지 알려주시면 감사하겠습니다.
-
미해결코틀린 기반 안드로이드 앱개발 고급 3단계
강의 내용 그대로 따라하고 실습해보았는데 가상머신이 강제종료됩니다
...
-
미해결Klaytn 클레이튼 블록체인 어플리케이션 만들기 - 이론과 실습
안녕하세요, 강좌 오픈일관련 질문있습니다!
혹시 이 강좌 몇월 몇일에 오픈했는지 알려주실수있나요? 감사합니다.
-
미해결리액트 처음이시라구요? React JS로 웹 서비스 만들기!
access denied
Hello permission to access has been denied so npm install -g create-react-app didn't work. Is it possible to fix this? 안녕하세요 npm install 을 하려고 하는데 자꾸 설치가 안되네요... access denied 라고 나오는데 설치할 수 있는 방법이 없을까요?
-
미해결프로그래밍, 데이터 과학을 위한 파이썬 입문
Enumerate & zip 코드 질문입니다
<코드1> alist = ["a1","a2","a3"] blist = ["b1","b2","b3"] for i, (a,b) in enumerate(zip(alist,blist)): print(i,a,b) 여기서 볼드체 해놓은 for문 안에 a,b를 소괄호 해주는 정확한 이유가 궁굼합니다. zip형태는 튜플형태로 묶어주기 때문에 언팩킹을 위해 소괄호로 해준다고 짐작하고 넘어가려고 했지만 <코드2> a,b,c = zip((1,2,3),(10,20,30),(100,200,300)) print(a,b,c) 이 코드로 언팩킹할때 그냥 a,b,c 로 해줘도 튜플형태로 언팩킹이 되는대 왜 <코드1>의 for문안에 a,b는 반드시 튜플형태로 만들어 줘야 되는가요?
-
미해결Flutter 입문 - 안드로이드, iOS 개발을 한 번에 (with Firebase)
버튼 클릭시 무응답일 경우
onPressed: () => _changeMessage() ), 반드시 함수표시 해줄것..
-
미해결파이썬 프로그래밍
예제는 어디있나요?
죄송한데 혹시 예제는 어디있을까요??
-
미해결유니티 기초 강좌 - 기획부터 사용까지
그림 입히는 창이 잠겨있는데 이건 유니티 구독을 해야 열리는건가요?
그림 입히는 창이 잠겨있는데 이건 유니티 구독을 해야 열리는 건가요?
-
미해결된다! 일러스트레이터 CC
안녕하세요, 선생님. 예제파일은 어디서 받을 수 있을까요?
안녕하세요, 선생님. 예제파일은 어디서 받을 수 있을까요? 답변 부탁드립니다 ^^
-
미해결유니티 기초 강좌 - 기획부터 사용까지
큐브를 옮기고싶은데 마우스로 옮길 수는 없나요?
큐브를 옮기고 싶은데 마우스로 옮길 수는 없나요?
-
미해결누구든지 하는 리액트: 초심자를 위한 react 핵심 강좌
혹시 리액트 빌드되는 홈페이지를 바꾸고싶은데 아시나요?
지금 익스플로어에서 실행되는 리액트를 크롬으로 변경하고 싶습니다.
-
미해결C 프로그래밍 - 입문부터 게임 개발까지
rand() 와 srand() 에 대해서
rand() 와 srand() 를 사용할 때 상단에 <stdlib.h> 는 포함해주지 않아도 되는건가요? 적어주지않으면 srand 가 정의되지않앗다고 하는데 강의를 보면 따로 적지는 않으시는거 같아서 여쭤봅니다.
-
미해결홍정모의 따라하며 배우는 C++
9분 경의 delete 이후의 ptr의 주소값이 다릅니다
안녕하세요. 취미로 코딩을 배우고 있는 한 학생입니다. 다름이 아니라 강의를 보면서 따라해보고 있는데 강의 상의 결과와 실제로 따라해본 결과가 다른 문제가 발생했습니다. 강의에서는 포인터 ptr을 new int{7}로 초기화(동적할당?)하고 난 뒤 주소값과 delete ptr; 로 메모리를 반납한 뒤의 ptr의 주소값이 같습니다. 하지만 제가 직접 따라해보니 전혀 연관성 없어보이는 주소값을 가지고 있더라구요. 게다가 de-reference의 값도 -5726... 같은 쓰레기 값이 아닌 아무 것도 출력이 되지 않습니다. 왜 이런 결과가 나오게 된걸까요? 분명이 같은 코드인데 막상 다른 결과가 나오니 무엇이 문제인지 모르겠습니다. 이하 코드와 결과입니다. #include <iostream> using namespace std; int main() { int* ptr = new int{ 7 }; // OS로부터 int에 해당하는 4bytes의 메모리를 받아 옴 cout << ptr << endl; cout << *ptr << endl; delete ptr; // OS로 해당 메모리를 반납 cout << "After delete" << endl; cout << ptr << endl; cout << *ptr << endl; return 0; } 01230578 7 After delete 00008123