?>

Hard Copy World

HCW

Q&A

Home > Forum >

Q&A

질문 | 홈파이 에러 질문드립니다~

페이지 정보

작성자 나모다 쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 작성일16-12-03 08:12 조회786회 댓글1건

본문

홈파이 첨에 실행에 테스트 안녕 응답까지 잘 되었습니다

홈파이 명령어중 music 을 실행 한 뒤 부터인지

에러가 나타났습니다

(music 명령어에 응답은 없었습니다.)

Found configurations...
Read configurations...
1480718785.66
    current language setting = kr
Found external IP = ************** //아이피 가렸습니다
Check database
Serial thread: started !!!
Connect to serial...
    Port ttyAMA0 is unavailable:
OK
SELECT * FROM devices
SELECT * FROM notifications
SELECT * FROM macro
Start polling from telegram...
==================================================

/bin/sh: 1: mpc: not found
kr
Traceback (most recent call last):
  File "home.py", line 1344, in <module>
    bot.polling()
  File "build/bdist.linux-armv7l/egg/telebot/__init__.py", line 196, in polling
  File "build/bdist.linux-armv7l/egg/telebot/__init__.py", line 220, in __threaded_polling
  File "build/bdist.linux-armv7l/egg/telebot/util.py", line 103, in raise_exceptions
  File "build/bdist.linux-armv7l/egg/telebot/util.py", line 54, in run
  File "home.py", line 197, in bot_slash_cmd
    parse_command(message, escaped)
  File "home.py", line 288, in parse_command
    results = subprocess.check_output('mpc playlist', shell=True)
  File "/usr/local/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'mpc playlist' returned non-zero exit status 127
 

그래서 sudo apt-get install mpc 를 하여 설치하였고 

이제는 이런 에러가 뜹니다.

Found configurations...
Read configurations...
1480719593.74
    current language setting = kr
Found external IP =  *****
Check database
Serial thread: started !!!
Connect to serial...
    Port ttyAMA0 is unavailable:
OK
SELECT * FROM devices
SELECT * FROM notifications
SELECT * FROM macro
Start polling from telegram...
==================================================

kr
error: Connection refused
Traceback (most recent call last):
  File "home.py", line 1344, in <module>
    bot.polling()
  File "build/bdist.linux-armv7l/egg/telebot/__init__.py", line 196, in polling
  File "build/bdist.linux-armv7l/egg/telebot/__init__.py", line 220, in __threaded_polling
  File "build/bdist.linux-armv7l/egg/telebot/util.py", line 103, in raise_exceptions
  File "build/bdist.linux-armv7l/egg/telebot/util.py", line 54, in run
  File "home.py", line 197, in bot_slash_cmd
    parse_command(message, escaped)
  File "home.py", line 288, in parse_command
    results = subprocess.check_output('mpc playlist', shell=True)
  File "/usr/local/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command 'mpc playlist' returned non-zero exit status 1

tg/bot 폴더의 홈파이파일 전체를 지우고 다시 설치 후 입력해도 마찬가지였습니다.

어찌 해결해야할까요??

댓글목록