Page 1 of 1

Python problem on Octoprint install

Posted: Sun Feb 14, 2016 9:09 pm
by Mister Fab
Hi all.

As I want to use my raspberry pi 2 to control my 3d printer, and still use ubuntu mate, I tried to follow this tutorial:

https://github.com/foosel/OctoPrint/wik ... g-Raspbian

I installed python 2.7.1, got the octoprint package, but when lauching the command "./venv/bin/python setup.py install" I get errors, and my linux level is not high enough to find out where the problem comes from.

It would be nice if someone could help me to understand.

commands used:

Code: Select all

cd ~
sudo apt-get install python-pip python-dev python-setuptools python-virtualenv git libyaml-dev build-essential
git clone https://github.com/foosel/OctoPrint.git
cd OctoPrint
virtualenv --system-site-packages venv
./venv/bin/python setup.py install
mkdir ~/.octoprint
errors::

Code: Select all

running install
Traceback (most recent call last):
  File "setup.py", line 157, in <module>
    setup(**params())
  File "/usr/local/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/fab/OctoPrint/venv/lib/python2.7/site-packages/setuptools/command/install.py", line 67, in run
    self.do_egg_install()
  File "/home/fab/OctoPrint/venv/lib/python2.7/site-packages/setuptools/command/install.py", line 103, in do_egg_install
    cmd.ensure_finalized()  # finalize before bdist_egg munges install cmd
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "/home/fab/OctoPrint/venv/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 287, in finalize_options
    'install_lib', ('install_dir', 'install_dir')
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 298, in set_undefined_options
    src_cmd_obj.ensure_finalized()
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 109, in ensure_finalized
    self.finalize_options()
  File "/home/fab/OctoPrint/venv/lib/python2.7/site-packages/setuptools/command/install_lib.py", line 17, in finalize_options
    self.set_undefined_options('install',('install_layout','install_layout'))
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 302, in set_undefined_options
    getattr(src_cmd_obj, src_option))
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 105, in __getattr__
    raise AttributeError, attr
AttributeError: install_layout

Re: Python problem on Octoprint install

Posted: Mon Feb 15, 2016 7:45 pm
by davef21370
Have you tried this... http://octoprint.org/download/
Apparently... "Guy Sheffer maintains “OctoPi”, a Raspbian based SD card image for the Raspberry Pi that already includes OctoPrint plus everything you need to run it:"
May be an easier option.

Dave.