상세 컨텐츠

본문 제목

Raspberry Pi 라즈베리파이 - Anet A8 연결 1부:octoprint install on Raspbian (Connect Anet A8 and Pi3 with octoprint)

embedded/3D Printer

by ZelKun 2018. 9. 1. 16:33

본문

반응형



관련 포스팅

[embedded/3D Printer] - Raspberry Pi 라즈베리파이 - Anet A8 연결 1부:octoprint install on Raspbian (Connect Anet A8 and Pi3 with octoprint)

[embedded/3D Printer] - Raspberry Pi 라즈베리파이 - Anet A8 연결 2부: octoprint setting (Connect Anet A8 and Pi3 with octoprint)

[embedded/3D Printer] - Raspberry Pi 라즈베리파이 - Anet A8 연결 3부:Camera setting (Connect Anet A8 and Pi3 with octoprint)

[embedded/3D Printer] - Raspberry Pi 라즈베리파이 - Anet A8 연결 4부:Octoprint add on AstroPrint Plugin

[embedded/3D Printer] - Raspberry Pi 라즈베리파이 - Anet A8 연결:octopi (octoprint img) install (Connect Anet A8 and Pi3 with octopi)

[embedded/3D Printer] - Raspberry Pi 라즈베리파이 - Anet A8 연결 6부: octopi 기본포트 변경 change octopi octoprint default port 80 to 81

[embedded/3D Printer] - Raspberry Pi 라즈베리파이 - Anet A8 연결 5부: 3.5인치 터치스크린 사용하기 (use for 3.5 inch TFT Touch Screen to octopi)

[embedded/3D Printer] - Raspberry Pi 라즈베리파이 - Anet A8 연결 7부: 12v to 5v 레귤레이터 모듈로 pi 전원사용(Use Power Supply Module 12v to 5v Regulator for pi)

[embedded/raspberrypi] - 034. Raspberry Pi 라즈베리 파이 - RASBIAN 3.5인치 터치스크린 사용하기 (raspbian 3.5 inch touch TFT LCD use)

[embedded/3D Printer] - Anet A8 핫엔드 노즐청소 (filament remove and hot end nozzle clean)

[embedded/3D Printer] - Raspberry Pi 라즈베리파이 - Anet A8 연결 8부: Octoprint 웹캠 유튜브 스트리밍 (how to use Youtube streaming on Octoprint Webcam)



Anet A8 3D 프린터를 구매했는데

SD카드를 이용해서 출력을 하는게 매우 귀찮음...

 

Pi 이용해서 원격으로 출력하면 좋겠다는 생각과 함께

검색을 해보니 Youtube Pi 이용해 출력하는 동영상을 찾아, 놀고있는 Pi3에다가 작업하기로...

전원은 어떻게 해야하나 고민하다그냥 연결부터 하고 생각하자는 결론...

 

예전에 SD카드에 raspbian 설치해놨는데 부팅이 안됨...(kernel panic - not syncing vfs...)

망할 중국산 SD카드같으니... 새로 설치 진행하기로

* octorprint 홈페이지에서 img 제공... 하지만 raspbian 설치 깨달음...

 

참고한 동영상을 보면 4개로 구분됨

  1. raspbian 설치 기본설정
  2. LCD Screen 설치
  3. Octoprint 설치
  4. Astroprint 설치

 

일단 LCD 없으니 패스하고(배송중...), 적외선 Cam 있으니 Cam 추가하기로함.

 

  • Raspbian 설치 기본설정

설치는... 그냥 귀찮...

초기설정진행과 LAN 쓸게 아니니... WiFi 잡아주면 일단은

Pi3 WiFi모듈이 탑재되었지만... 공유기에 따라 안 잡힐 있음...

참고

[embedded/raspberrypi] - 000. Raspberry Pi 라즈베리 파이 - RASBIAN 라즈비안 설치 - 윈도우(window)

[embedded/raspberrypi] - 001. Raspberry Pi 라즈베리 파이 - RASBIAN 라즈비안 설치 - 맥북(MAC OS X)

[embedded/raspberrypi] - 033. Raspberry Pi 라즈베리 파이 - Logmein Hamachi 하마치 (vpn) 설치하기

[embedded/retropie] - 005. Raspberry Pi 라즈베리 파이 LXDE(Lightweight X11 Desktop Environment) 설치

[embedded/raspberrypi] - 002. Raspberry Pi - smart-mirror 한글설정

[embedded/raspberrypi] - 032. Raspberry Pi 라즈베리 파이 - RASBIAN STRETCH raspi-config 라즈비안 초기 설정(지역, 시간, 키보드) 및 root 계정 사용 - 터미널(Terminal)

 

  • OctoPrint 설치

공식홈페이지: https://octoprint.org


출처: https://octoprint.org

 

Octo인가 했더니 문어...

일단 Download 페이지에 가보니 Linux python pip 설치 가능해보이니 pip설치를 하기로

    Installing from source

    The generic setup instructions boil down to

    1. Installing Python 2.7 including pip and virtualenv.
    2. Obtaining the source through either of:
    3. cloning the source repository: git clone https://github.com/foosel/OctoPrint.git
    4. downloading an archive of the current stable version from Github and unpacking it
    5. Creating a (user owned) virtual environment in the source folder: virtualenv venv
    6. Installing OctoPrint into that virtual environment: ./venv/bin/python setup.py install
    7. OctoPrint may then be started through ./venv/bin/octoprint or with an absolute path /path/to/OctoPrint/venv/bin/octoprint

    More specific setup instructions for the most common runtime environments can be found below.

출처: https://octoprint.org

저기 말고 아래 Linux파트가 있고, GitHub 연결됨

문서에 따르면 pip설치를 위해

python-pip python-dev python-setuptools python-virtualenv git libyaml-dev build-essential

패키지를 설치해야하고 뭔가 매우 복잡해보임...

 

출처: https://octoprint.org

 

일단 하라는데로 따라하기로 하고 ssh  pi접속

zelkun-2:~ zelkun$ ssh pi@192.168.0.26

pi@192.168.0.26's password: 

Linux rasp3-3d 4.14.62-v7+ #1134 SMP Tue Aug 14 17:10:10 BST 2018 armv7l

 

The programs included with the Debian GNU/Linux system are free software;

the exact distribution terms for each program are described in the

individual files in /usr/share/doc/*/copyright.

 

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent

permitted by applicable law.

Last login: Fri Aug 31 01:02:59 2018 from 192.168.0.10

pi@rasp3-3d:~ $ ls

Desktop    Downloads  Music     Public     Videos        python_games

Documents  MagPi      Pictures  Templates  oldconffiles

pi@rasp3-3d:~ $ mkdir utils

pi@rasp3-3d:~ $ cd utils/

octoprint 디렉토리를 이용하라지만 utils 디렉토리에 작업하기로함

 

  • pip 설치

pi@rasp3-3d:~/utils $ sudo apt-get install python-pip python-dev python-setuptools python-virtualenv git libyaml-dev build-essential -y

패키지 목록을 읽는 중입니다... 완료

의존성 트리를 만드는 중입니다       

상태 정보를 읽는 중입니다... 완료

build-essential is already the newest version (12.3).

git is already the newest version (1:2.11.0-3+deb9u3).

python-dev is already the newest version (2.7.13-2).

python-dev 패키지는 수동설치로 지정합니다.

python-setuptools is already the newest version (33.1.1-1).

python-setuptools 패키지는 수동설치로 지정합니다.

python-pip is already the newest version (9.0.1-2+rpt2).

The following additional packages will be installed:

  python3-virtualenv virtualenv

제안하는 패키지:

  libyaml-doc

다음 새 패키지를 설치할 것입니다:

  libyaml-dev python-virtualenv python3-virtualenv virtualenv

0개 업그레이드, 4개 새로 설치, 0개 제거 및 1개 업그레이드 안 함.

187 k바이트 아카이브를 받아야 합니다.

이 작업 후 513 k바이트의 디스크 공간을 더 사용하게 됩니다.

받기:1 http://ftp.harukasan.org/raspbian/raspbian stretch/main armhf libyaml-dev armhf 0.1.7-2 [48.9 kB]

받기:2 http://ftp.harukasan.org/raspbian/raspbian stretch/main armhf python-virtualenv all 15.1.0+ds-1 [61.1 kB]

받기:3 http://ftp.harukasan.org/raspbian/raspbian stretch/main armhf python3-virtualenv all 15.1.0+ds-1 [57.7 kB]

받기:4 http://ftp.harukasan.org/raspbian/raspbian stretch/main armhf virtualenv all 15.1.0+ds-1 [19.7 kB]

내려받기 187 k바이트, 소요시간 10 (17.1 k바이트/)

Selecting previously unselected package libyaml-dev:armhf.

(데이터베이스 읽는중 ...현재 118048개의 파일과 디렉터리가 설치되어 있습니다.)

Preparing to unpack .../libyaml-dev_0.1.7-2_armhf.deb ...

Unpacking libyaml-dev:armhf (0.1.7-2) ...

Selecting previously unselected package python-virtualenv.

Preparing to unpack .../python-virtualenv_15.1.0+ds-1_all.deb ...

Unpacking python-virtualenv (15.1.0+ds-1) ...

Selecting previously unselected package python3-virtualenv.

Preparing to unpack .../python3-virtualenv_15.1.0+ds-1_all.deb ...

Unpacking python3-virtualenv (15.1.0+ds-1) ...

Selecting previously unselected package virtualenv.

Preparing to unpack .../virtualenv_15.1.0+ds-1_all.deb ...

Unpacking virtualenv (15.1.0+ds-1) ...

libyaml-dev:armhf (0.1.7-2) 설정하는 중입니다 ...

python3-virtualenv (15.1.0+ds-1) 설정하는 중입니다 ...

python-virtualenv (15.1.0+ds-1) 설정하는 중입니다 ...

Processing triggers for man-db (2.7.6.1-2) ...

virtualenv (15.1.0+ds-1) 설정하는 중입니다 ...

pi@rasp3-3d:~/utils $

지역설정했더니 한글로 변경됨.. 참고로 한글폰트는 추가설치안하면 깨져서 안나옴..

sudo apt-get install ibus ibus-hangul ttf-unifont

 

  • octoprint 설치

virtualenv venv

source venv/bin/activate

pip install pip --upgrade

pip install https://get.octoprint.org/latest

pi@rasp3-3d:~/utils $ virtualenv venv

Running virtualenv with interpreter /usr/bin/python2

New python executable in /home/pi/utils/venv/bin/python2

Also creating executable in /home/pi/utils/venv/bin/python

Installing setuptools, pkg_resources, pip, wheel...done.

pi@rasp3-3d:~/utils $ source venv/bin/activate

(venv) pi@rasp3-3d:~/utils $ pip install pip --upgrade

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple

Requirement already up-to-date: pip in ./venv/lib/python2.7/site-packages (18.0)

(venv) pi@rasp3-3d:~/utils $ pip install https://get.octoprint.org/latest

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple

Collecting https://get.octoprint.org/latest

  Downloading https://get.octoprint.org/latest

     \ 13.0MB 6.9MB/s

Collecting flask<0.11,>=0.10.1 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/db/9c/149ba60c47d107f85fe52564133348458f093dd5e6b57a5b60ab9ac517bb/Flask-0.10.1.tar.gz (544kB)

    100% |████████████████████████████████| 552kB 2.1MB/s 

Collecting Jinja2<2.9,>=2.8.1 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/67/ea/92b1d9d8f2dc43302df7f5271b9500bbfc237386782343561a5f62beb306/Jinja2-2.8.1-py2.py3-none-any.whl (264kB)

    100% |████████████████████████████████| 266kB 2.3MB/s 

Collecting werkzeug<0.9,>=0.8.3 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/a1/1c/02e6127ec997c08266b03d7fd340ba7675dafe0e28886a569664fd019e56/Werkzeug-0.8.3.tar.gz (1.1MB)

    100% |████████████████████████████████| 1.1MB 544kB/s 

Collecting tornado==4.5.3 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/e3/7b/e29ab3d51c8df66922fea216e2bddfcb6430fb29620e5165b16a216e0d3c/tornado-4.5.3.tar.gz (484kB)

    100% |████████████████████████████████| 491kB 2.2MB/s 

Collecting PyYAML<3.11,>=3.10 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/00/17/3b822893a1789a025d3f676a381338516a8f65e686d915b0834ecc9b4979/PyYAML-3.10.tar.gz (241kB)

    100% |████████████████████████████████| 245kB 1.2MB/s 

Collecting Flask-Login<0.3,>=0.2.11 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/42/3c/ead3f50b8a39b6dd3499ae6f0f5b13b955130c92a7479a287e2e07921faf/Flask-Login-0.2.11.tar.gz

Collecting Flask-Principal<0.4,>=0.3.5 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/47/fa/932178a740e699a1072aa1e73dc99dee559b4500cd0ab3c0d98931589843/Flask-Principal-0.3.5.tar.gz

Collecting Flask-Babel<0.10,>=0.9 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/24/6b/dd9031c446e05600b740086274a9939799f26401b8b96e124ccf71e6a9b2/Flask-Babel-0.9.tar.gz

Collecting Flask-Assets<0.11,>=0.10 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/95/de/88eb544c93313031e7b85758a1443730b92e7b1d01ec7222ddfea5f382e7/Flask-Assets-0.10.tar.gz

Collecting markdown<2.7,>=2.6.9 (from OctoPrint==1.3.9)

  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /simple/markdown/

  Downloading https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl (78kB)

    100% |████████████████████████████████| 81kB 2.3MB/s 

Collecting pyserial<3.5,>=3.4 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl (193kB)

    100% |████████████████████████████████| 194kB 2.6MB/s 

Collecting netaddr<0.8,>=0.7.19 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/ba/97/ce14451a9fd7bdb5a397abf99b24a1a6bb7a1a440b019bebd2e9a0dbec74/netaddr-0.7.19-py2.py3-none-any.whl (1.6MB)

    100% |████████████████████████████████| 1.6MB 1.5MB/s 

Collecting watchdog<0.9,>=0.8.3 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/54/7d/c7c0ad1e32b9f132075967fc353a244eb2b375a3d2f5b0ce612fd96e107e/watchdog-0.8.3.tar.gz (83kB)

    100% |████████████████████████████████| 92kB 2.5MB/s 

Collecting sarge==0.1.4 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/bc/9a/a715357f0f0a394edf964fb52b8b39551b629f4d1c996ade5f600fb3d278/sarge-0.1.4.tar.gz (50kB)

    100% |████████████████████████████████| 51kB 1.7MB/s 

Collecting netifaces<0.11,>=0.10.6 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/81/39/4e9a026265ba944ddf1fea176dbb29e0fe50c43717ba4fcf3646d099fe38/netifaces-0.10.7.tar.gz

Collecting pylru<1.1,>=1.0.9 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/c0/7d/0de1055632f3871dfeaabe5a3f0510317cd98b93e7b792b44e4c7de2b17b/pylru-1.0.9.tar.gz

Collecting rsa<3.3,>=3.2.3 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/df/40/7e146be0b15022a84992a485a8503ddb20bebd18a68340f3af5abde534f4/rsa-3.2.3-py2.py3-none-any.whl (44kB)

    100% |████████████████████████████████| 51kB 1.4MB/s 

Collecting pkginfo<1.5,>=1.4.2 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/a3/fe/f32a48d48f40a7209be9825fba2566cab92364787cf37de2e08300dd6ce7/pkginfo-1.4.2-py2.py3-none-any.whl

Collecting requests<3,>=2.18.4 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/65/47/7e02164a2a3db50ed6d8a6ab1d6d60b69c4c3fdf57a284257925dfc12bda/requests-2.19.1-py2.py3-none-any.whl (91kB)

    100% |████████████████████████████████| 92kB 631kB/s 

Collecting semantic_version<2.5,>=2.4.2 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/eb/d0/f9cd54744c360be93e802152fdc507b672a49909ea52be14cf3adba39280/semantic_version-2.4.2.tar.gz

Collecting psutil<5.5,>=5.4.6 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/7d/9a/1e93d41708f8ed2b564395edfa3389f0fd6d567597401c2e5e2775118d8b/psutil-5.4.7.tar.gz (420kB)

    100% |████████████████████████████████| 430kB 752kB/s 

Collecting Click<6.3,>=6.2 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/a0/90/0f5ea412a4d5b8e31cb514208e02824b45a8f4de52654733f0a862353fd9/click-6.2-py2.py3-none-any.whl (70kB)

    100% |████████████████████████████████| 71kB 776kB/s 

Collecting awesome-slugify<1.7,>=1.6.5 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/34/39/79ef4e640c3651b40de7812f5fcd04698abf14de4f57a81e12b6c753d168/awesome-slugify-1.6.5.tar.gz

Collecting feedparser<5.3,>=5.2.1 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/91/d8/7d37fec71ff7c9dbcdd80d2b48bcdd86d6af502156fc93846fb0102cb2c4/feedparser-5.2.1.tar.bz2 (192kB)

    100% |████████████████████████████████| 194kB 1.9MB/s 

Collecting chainmap<1.1,>=1.0.2 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/6a/53/795ce18439a067eea1b233152985c0e67fd7dcc4edf102fb30f8cca6bad0/chainmap-1.0.2-py2.py3-none-any.whl

Collecting future<0.16,>=0.15.2 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/5a/f4/99abde815842bc6e97d5a7806ad51236630da14ca2f3b1fce94c0bb94d3d/future-0.15.2.tar.gz (1.6MB)

    100% |████████████████████████████████| 1.6MB 1.5MB/s 

Collecting scandir<1.4,>=1.3 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/b1/73/493f392cd7e1549361e7727f75dea1c9f3a627350973018857578c8c5598/scandir-1.3.tar.gz

Collecting websocket-client<0.41,>=0.40.0 (from OctoPrint==1.3.9)

  Downloading https://www.piwheels.org/simple/websocket-client/websocket_client-0.40.0-py2.py3-none-any.whl (198kB)

    100% |████████████████████████████████| 204kB 2.4MB/s 

Collecting python-dateutil<2.7,>=2.6.1 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/4b/0d/7ed381ab4fe80b8ebf34411d14f253e1cf3e56e2820ffa1d8844b23859a2/python_dateutil-2.6.1-py2.py3-none-any.whl (194kB)

    100% |████████████████████████████████| 194kB 2.5MB/s 

Collecting wrapt<1.11,>=1.10.11 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/a0/47/66897906448185fcb77fc3c2b1bc20ed0ecca81a0f2f88eda3fc5a34fc3d/wrapt-1.10.11.tar.gz

Collecting futures<3.2,>=3.1.1 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/a6/1c/72a18c8c7502ee1b38a604a5c5243aa8c2a64f4bba4e6631b1b8972235dd/futures-3.1.1-py2-none-any.whl

Collecting emoji<0.5,>=0.4.5 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/28/b5/d16d0d84a9c2243c52222d96fd083cf4ec526fd5150b831964643d7702ec/emoji-0.4.5-py2-none-any.whl

Collecting monotonic<1.4,>=1.3 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/1e/4c/f58022573cd15125bc03114913906bcb6d9bc1a4b8a170a88e0525b6cd51/monotonic-1.3-py2.py3-none-any.whl

Collecting frozendict<1.3,>=1.2 (from OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/4e/55/a12ded2c426a4d2bee73f88304c9c08ebbdbadb82569ebdd6a0c007cfd08/frozendict-1.2.tar.gz

Collecting itsdangerous>=0.21 (from flask<0.11,>=0.10.1->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/dc/b4/a60bcdba945c00f6d608d8975131ab3f25b22f2bcfe1dab221165194b2d4/itsdangerous-0.24.tar.gz (46kB)

    100% |████████████████████████████████| 51kB 1.9MB/s 

Collecting MarkupSafe (from Jinja2<2.9,>=2.8.1->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz

Collecting singledispatch (from tornado==4.5.3->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/c5/10/369f50bcd4621b263927b0a1519987a04383d4a98fb10438042ad410cf88/singledispatch-3.4.0.3-py2.py3-none-any.whl

Collecting certifi (from tornado==4.5.3->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl (147kB)

    100% |████████████████████████████████| 153kB 2.7MB/s 

Collecting backports_abc>=0.4 (from tornado==4.5.3->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/7d/56/6f3ac1b816d0cd8994e83d0c4e55bc64567532f7dc543378bd87f81cebc7/backports_abc-0.5-py2.py3-none-any.whl

Collecting blinker (from Flask-Principal<0.4,>=0.3.5->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/1b/51/e2a9f3b757eb802f61dc1f2b09c8c99f6eb01cf06416c0671253536517b6/blinker-1.4.tar.gz (111kB)

    100% |████████████████████████████████| 112kB 2.2MB/s 

Collecting Babel>=1.0 (from Flask-Babel<0.10,>=0.9->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/b8/ad/c6f60602d3ee3d92fbed87675b6fb6a6f9a38c223343ababdb44ba201f10/Babel-2.6.0-py2.py3-none-any.whl (8.1MB)

    100% |████████████████████████████████| 8.1MB 561kB/s 

Collecting speaklater>=1.2 (from Flask-Babel<0.10,>=0.9->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/11/92/5ae1effe0ccb8561c034a0111d53c8788660ddb7ed4992f0da1bb5c525e5/speaklater-1.3.tar.gz

Collecting webassets>=0.10 (from Flask-Assets<0.11,>=0.10->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/9a/35/d86c6d3bd31e2e9c8351c8766ef3688c75d56bc5233ed49061e522efc3cc/webassets-0.12.1.tar.gz (179kB)

    100% |████████████████████████████████| 184kB 2.6MB/s 

Collecting argh>=0.24.1 (from watchdog<0.9,>=0.8.3->OctoPrint==1.3.9)

  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', BadStatusLine("''",))': /simple/argh/

  Downloading https://files.pythonhosted.org/packages/06/1c/e667a7126f0b84aaa1c56844337bf0ac12445d1beb9c8a6199a7314944bf/argh-0.26.2-py2.py3-none-any.whl

Collecting pathtools>=0.1.1 (from watchdog<0.9,>=0.8.3->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/e7/7f/470d6fcdf23f9f3518f6b0b76be9df16dcc8630ad409947f8be2eb0ed13a/pathtools-0.1.2.tar.gz

Collecting pyasn1>=0.1.3 (from rsa<3.3,>=3.2.3->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/d1/a1/7790cc85db38daa874f6a2e6308131b9953feb1367f2ae2d1123bb93a9f5/pyasn1-0.4.4-py2.py3-none-any.whl (72kB)

    100% |████████████████████████████████| 81kB 2.4MB/s 

Collecting idna<2.8,>=2.5 (from requests<3,>=2.18.4->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl (58kB)

    100% |████████████████████████████████| 61kB 1.9MB/s 

Collecting urllib3<1.24,>=1.21.1 (from requests<3,>=2.18.4->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/bd/c9/6fdd990019071a4a32a5e7cb78a1d92c53851ef4f56f62a3486e6a7d8ffb/urllib3-1.23-py2.py3-none-any.whl (133kB)

    100% |████████████████████████████████| 143kB 2.4MB/s 

Collecting chardet<3.1.0,>=3.0.2 (from requests<3,>=2.18.4->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)

    100% |████████████████████████████████| 143kB 2.6MB/s 

Collecting regex (from awesome-slugify<1.7,>=1.6.5->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/2a/0a/944977367c8a6cfcfa6fcb8ac6b1f0f9a667c1f34194091c766b5d7c44d7/regex-2018.08.29.tar.gz (643kB)

    100% |████████████████████████████████| 645kB 2.2MB/s 

Collecting Unidecode<0.05,>=0.04.14 (from awesome-slugify<1.7,>=1.6.5->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/01/a1/9d7f3138ee3d79a1ab865a2cb38200ca778d85121db19fe264c76c981184/Unidecode-0.04.21-py2.py3-none-any.whl (228kB)

    100% |████████████████████████████████| 235kB 400kB/s 

Collecting six (from websocket-client<0.41,>=0.40.0->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl

Collecting pytz>=0a (from Babel>=1.0->Flask-Babel<0.10,>=0.9->OctoPrint==1.3.9)

  Downloading https://files.pythonhosted.org/packages/30/4e/27c34b62430286c6d59177a0842ed90dc789ce5d1ed740887653b898779a/pytz-2018.5-py2.py3-none-any.whl (510kB)

    100% |████████████████████████████████| 512kB 2.2MB/s 

Building wheels for collected packages: OctoPrint, flask, werkzeug, tornado, PyYAML, Flask-Login, Flask-Principal, Flask-Babel, Flask-Assets, watchdog, sarge, netifaces, pylru, semantic-version, psutil, awesome-slugify, feedparser, future, scandir, wrapt, frozendict, itsdangerous, MarkupSafe, blinker, speaklater, webassets, pathtools, regex

  Running setup.py bdist_wheel for OctoPrint ... done

  Stored in directory: /tmp/pip-ephem-wheel-cache-ow0JvY/wheels/2e/0d/09/39f09d58d37b3c4977631d1a6c08c6c66c893b6c7eac42e3dc

  Running setup.py bdist_wheel for flask ... done

  Stored in directory: /home/pi/.cache/pip/wheels/e1/f2/be/1c4f307a41aad7e632f79c0242a2714ecde24b663da3519665

  Running setup.py bdist_wheel for werkzeug ... done

  Stored in directory: /home/pi/.cache/pip/wheels/78/4a/21/4da263de808b55ab266876c2490e55319a2951c6d3b66fbde0

  Running setup.py bdist_wheel for tornado ... done

  Stored in directory: /home/pi/.cache/pip/wheels/72/bf/f4/b68fa69596986881b397b18ff2b9af5f8181233aadcc9f76fd

  Running setup.py bdist_wheel for PyYAML ... done

  Stored in directory: /home/pi/.cache/pip/wheels/ab/da/46/2f3778bfc6d5ec360917e3eeff42bade7d0497ad6879b1c05c

  Running setup.py bdist_wheel for Flask-Login ... done

  Stored in directory: /home/pi/.cache/pip/wheels/94/98/8f/b357415afe27adcdf071306f3f981e61a0498b7101707471fc

  Running setup.py bdist_wheel for Flask-Principal ... done

  Stored in directory: /home/pi/.cache/pip/wheels/4e/0d/70/5aec0341299c5d76712511274dd03e24f17790fb2a342b5dbc

  Running setup.py bdist_wheel for Flask-Babel ... done

  Stored in directory: /home/pi/.cache/pip/wheels/a6/d2/67/2f7dbec3de6a98c119860b9a7203cafea731a3d41c5c91c617

  Running setup.py bdist_wheel for Flask-Assets ... done

  Stored in directory: /home/pi/.cache/pip/wheels/a4/00/40/5d0a010858bdbab1ebc56594d15d11cc75ef26d27918d6f73a

  Running setup.py bdist_wheel for watchdog ... done

  Stored in directory: /home/pi/.cache/pip/wheels/3b/a0/6f/8c52fea32c994f833b55e7b73078f81c155ec108011c04e708

  Running setup.py bdist_wheel for sarge ... done

  Stored in directory: /home/pi/.cache/pip/wheels/16/c5/d5/78f1f8ded6e7bad49df04b6cf1f565840db5b86b80a4debeba

  Running setup.py bdist_wheel for netifaces ... done

  Stored in directory: /home/pi/.cache/pip/wheels/bb/f7/d1/028a9f26b5a235f8bfdac48d7071c45f57d32959a2ebd40e94

  Running setup.py bdist_wheel for pylru ... done

  Stored in directory: /home/pi/.cache/pip/wheels/13/40/7e/ae94456303c2a57a091a5319da4eb3d2742a2722fc591a206f

  Running setup.py bdist_wheel for semantic-version ... done

  Stored in directory: /home/pi/.cache/pip/wheels/ea/6a/78/08c87a070654ad22f69480e849984e0d707e0f3b29d7074858

  Running setup.py bdist_wheel for psutil ... done

  Stored in directory: /home/pi/.cache/pip/wheels/e2/9d/ea/1913d16f19bb927c32197308dec69cd8d10b61be8f7e265524

  Running setup.py bdist_wheel for awesome-slugify ... done

  Stored in directory: /home/pi/.cache/pip/wheels/e9/d9/66/bde66382496710218c0df31b5f3a72bd8079bcd275fff61b29

  Running setup.py bdist_wheel for feedparser ... done

  Stored in directory: /home/pi/.cache/pip/wheels/8c/69/b7/f52763c41c5471df57703a0ef718a32a5e81ee35dcf6d4f97f

  Running setup.py bdist_wheel for future ... done

  Stored in directory: /home/pi/.cache/pip/wheels/11/25/4b/f1c5582c5dc7ace5998bced1042cdf6bfe03983a10ed3f2f2e

  Running setup.py bdist_wheel for scandir ... done

  Stored in directory: /home/pi/.cache/pip/wheels/06/d4/69/27d7ddcd76dc2987dd1873d09224bc977e9907789120f88c77

  Running setup.py bdist_wheel for wrapt ... done

  Stored in directory: /home/pi/.cache/pip/wheels/48/5d/04/22361a593e70d23b1f7746d932802efe1f0e523376a74f321e

  Running setup.py bdist_wheel for frozendict ... done

  Stored in directory: /home/pi/.cache/pip/wheels/6c/6c/e9/534386165bd12cf1885582c75eb6d0ffcb321b65c23fe0f834

  Running setup.py bdist_wheel for itsdangerous ... done

  Stored in directory: /home/pi/.cache/pip/wheels/2c/4a/61/5599631c1554768c6290b08c02c72d7317910374ca602ff1e5

  Running setup.py bdist_wheel for MarkupSafe ... done

  Stored in directory: /home/pi/.cache/pip/wheels/33/56/20/ebe49a5c612fffe1c5a632146b16596f9e64676768661e4e46

  Running setup.py bdist_wheel for blinker ... done

  Stored in directory: /home/pi/.cache/pip/wheels/92/a0/00/8690a57883956a301d91cf4ec999cc0b258b01e3f548f86e89

  Running setup.py bdist_wheel for speaklater ... done

  Stored in directory: /home/pi/.cache/pip/wheels/c4/f3/2d/57f871bb1786128515c7c5343fefe345e1df68f4b6317b897d

  Running setup.py bdist_wheel for webassets ... done

  Stored in directory: /home/pi/.cache/pip/wheels/eb/2a/fd/d10453a8c9ee05159da8877d083947e376caeca041988df18e

  Running setup.py bdist_wheel for pathtools ... done

  Stored in directory: /home/pi/.cache/pip/wheels/0b/04/79/c3b0c3a0266a3cb4376da31e5bfe8bba0c489246968a68e843

  Running setup.py bdist_wheel for regex ... done

  Stored in directory: /home/pi/.cache/pip/wheels/a4/8e/5e/cb6fef2a27a1a25f66505ccd87497fbebdd87222ae1168d970

Successfully built OctoPrint flask werkzeug tornado PyYAML Flask-Login Flask-Principal Flask-Babel Flask-Assets watchdog sarge netifaces pylru semantic-version psutil awesome-slugify feedparser future scandir wrapt frozendict itsdangerous MarkupSafe blinker speaklater webassets pathtools regex

Installing collected packages: werkzeug, MarkupSafe, Jinja2, itsdangerous, flask, six, singledispatch, certifi, backports-abc, tornado, PyYAML, Flask-Login, blinker, Flask-Principal, pytz, Babel, speaklater, Flask-Babel, webassets, Flask-Assets, markdown, pyserial, netaddr, argh, pathtools, watchdog, sarge, netifaces, pylru, pyasn1, rsa, pkginfo, idna, urllib3, chardet, requests, semantic-version, psutil, Click, regex, Unidecode, awesome-slugify, feedparser, chainmap, future, scandir, websocket-client, python-dateutil, wrapt, futures, emoji, monotonic, frozendict, OctoPrint

Successfully installed Babel-2.6.0 Click-6.2 Flask-Assets-0.10 Flask-Babel-0.9 Flask-Login-0.2.11 Flask-Principal-0.3.5 Jinja2-2.8.1 MarkupSafe-1.0 OctoPrint-1.3.9 PyYAML-3.10 Unidecode-0.4.21 argh-0.26.2 awesome-slugify-1.6.5 backports-abc-0.5 blinker-1.4 certifi-2018.8.24 chainmap-1.0.2 chardet-3.0.4 emoji-0.4.5 feedparser-5.2.1 flask-0.10.1 frozendict-1.2 future-0.15.2 futures-3.1.1 idna-2.7 itsdangerous-0.24 markdown-2.6.11 monotonic-1.3 netaddr-0.7.19 netifaces-0.10.7 pathtools-0.1.2 pkginfo-1.4.2 psutil-5.4.7 pyasn1-0.4.4 pylru-1.0.9 pyserial-3.4 python-dateutil-2.6.1 pytz-2018.5 regex-2018.8.29 requests-2.19.1 rsa-3.2.3 sarge-0.1.4 scandir-1.3 semantic-version-2.4.2 singledispatch-3.4.0.3 six-1.11.0 speaklater-1.3 tornado-4.5.3 urllib3-1.23 watchdog-0.8.3 webassets-0.12.1 websocket-client-0.40.0 werkzeug-0.8.3 wrapt-1.10.11

(venv) pi@rasp3-3d:~/utils $ 

대충 설치가 된것 같으니 다음단계로..

 

  • octoprint 구동

pi@raspberrypi ~ $ ~/OctoPrint/venv/bin/octoprint serve

 * Running on http://0.0.0.0:5000/

문서에보면 user 추가는 옵션이라는것 같아서 안하고 그냥 시작

(venv) pi@rasp3-3d:~/utils $ ~/utils/venv/bin/octoprint serve

2018-08-31 01:22:57,679 - octoprint.startup - INFO - ******************************************************************************

2018-08-31 01:22:57,683 - octoprint.startup - INFO - Starting OctoPrint 1.3.9

2018-08-31 01:22:57,685 - octoprint.startup - INFO - ******************************************************************************

2018-08-31 01:22:59,931 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...

2018-08-31 01:23:01,611 - octoprint.plugin.core - WARNING - Plugin "OctoPi Support Plugin" did not pass check

2018-08-31 01:23:03,515 - octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available

2018-08-31 01:23:03,535 - octoprint.plugin.core - INFO - Found 10 plugin(s) providing 10 mixin implementations, 8 hook handlers

2018-08-31 01:23:03,753 - octoprint.server.heartbeat - INFO - Starting server heartbeat, 900.0s interval

2018-08-31 01:23:03,845 - octoprint.server - INFO - Intermediary server started

2018-08-31 01:23:03,846 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins, /home/pi/.octoprint/plugins and installed plugin packages...

2018-08-31 01:23:03,866 - octoprint.plugin.core - WARNING - Plugin "OctoPi Support Plugin" did not pass check

2018-08-31 01:23:05,075 - octoprint.plugin.core - INFO - Found 10 plugin(s) providing 10 mixin implementations, 8 hook handlers

2018-08-31 01:23:05,080 - octoprint.printer.profile - ERROR - Profile _default does not exist, creating _default again and setting it as default

2018-08-31 01:23:05,334 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads...

2018-08-31 01:23:05,337 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully.

2018-08-31 01:23:08,640 - octoprint.util.pip - INFO - Using "/home/pi/utils/venv/bin/python2 -m pip" as command to invoke pip

2018-08-31 01:23:11,630 - octoprint.util.pip - INFO - Version of pip is 18.0

2018-08-31 01:23:11,633 - octoprint.util.pip - INFO - pip installs to /home/pi/utils/venv/lib/python2.7/site-packages (writable -> yes), --user flag needed -> no, virtual env -> yes

2018-08-31 01:23:11,635 - octoprint.util.pip - INFO - ==> pip ok -> yes

2018-08-31 01:23:11,644 - octoprint.plugin.core - INFO - Initialized 10 plugin implementation(s)

2018-08-31 01:23:11,764 - octoprint.plugin.core - INFO - 10 plugin(s) registered with the system:

|  Action Command Prompt Support (bundled) = /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins/action_command_prompt

|  Announcement Plugin (bundled) = /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins/announcements

|  Core Wizard (bundled) = /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins/corewizard

|  CuraEngine (<= 15.04) (bundled) = /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins/cura

|  Discovery (bundled) = /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins/discovery

|  Logging (bundled) = /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins/logging

|  Plugin Manager (bundled) = /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins/pluginmanager

|  Printer Safety Check (bundled) = /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins/printer_safety_check

|  Software Update (bundled) = /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins/softwareupdate

|  Virtual Printer (bundled) = /home/pi/utils/venv/lib/python2.7/site-packages/octoprint/plugins/virtual_printer

2018-08-31 01:23:11,797 - octoprint.environment - INFO - Detected environment is Python 2.7.13 under Linux (linux2). Details:

|  hardware:

|    cores: 4

|    freq: 1200.0

|    ram: 972230656

|  os:

|    id: linux

|    platform: linux2

|  python:

|    pip: '18.0'

|    version: 2.7.13

|    virtualenv: /home/pi/utils/venv

2018-08-31 01:23:11,813 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets...

2018-08-31 01:23:11,817 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache...

2018-08-31 01:23:12,197 - octoprint.server - INFO - Shutting down intermediary server...

2018-08-31 01:23:12,642 - octoprint.server - INFO - Intermediary server shut down

2018-08-31 01:23:12,648 - octoprint.events - INFO - Processing startup event, this is our first event

2018-08-31 01:23:12,650 - octoprint.events - INFO - Adding 0 events to queue that were held back before startup event

2018-08-31 01:23:12,654 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue...

2018-08-31 01:23:12,665 - octoprint.filemanager - INFO - Added 0 items from storage type "local" to analysis queue

2018-08-31 01:23:12,676 - octoprint.plugins.cura - INFO - Path to CuraEngine has not been configured or does not exist (currently set to None), Cura will not be selectable for slicing

2018-08-31 01:23:12,697 - octoprint.server - INFO - Listening on http://[::]:5000

2018-08-31 01:23:12,701 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance on rasp3-3d for SSDP

2018-08-31 01:23:14,385 - octoprint.plugins.announcements - INFO - Loaded channel _important from https://octoprint.org/feeds/important.xml in 1.6s

2018-08-31 01:23:14,842 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from https://plugins.octoprint.org/plugins.json

2018-08-31 01:23:16,757 - octoprint.plugins.announcements - INFO - Loaded channel _releases from https://octoprint.org/feeds/releases.xml in 1.7s

2018-08-31 01:23:17,211 - octoprint.util.pip - INFO - Using "/home/pi/utils/venv/bin/python2 -m pip" as command to invoke pip

2018-08-31 01:23:17,445 - octoprint.plugins.pluginmanager - INFO - Loaded plugin notices data from https://plugins.octoprint.org/notices.json

2018-08-31 01:23:20,138 - octoprint.plugins.announcements - INFO - Loaded channel _blog from https://octoprint.org/feeds/octoblog.xml in 3.2s

2018-08-31 01:23:22,029 - octoprint.plugins.announcements - INFO - Loaded channel _plugins from https://plugins.octoprint.org/feed.xml in 1.7s

2018-08-31 01:23:25,285 - octoprint.util.pip - INFO - pip installs to /home/pi/utils/venv/lib/python2.7/site-packages/ (writable -> yes), --user flag needed -> no, virtual env -> yes

2018-08-31 01:23:25,286 - octoprint.util.pip - INFO - ==> pip ok -> yes

2018-08-31 01:23:25,325 - octoprint.plugins.softwareupdate - INFO - Saved version cache to disk

2018-08-31 01:23:28,866 - octoprint.plugins.announcements - INFO - Loaded channel _octopi from https://octoprint.org/feeds/octopi.xml in 6.6s

뭔가 구동된듯 싶으니 5000 포트로 접속해봄

 

접속은 http://pi_ip:5000/

접속해보니 초기 설정페이지가 뜨는게 설치는 잘된 듯

 

우선은 설치한걸로 마무리하고 Anet A8이랑 연결하는건 다음에....

 


참고


반응형

관련글 더보기

댓글 영역