Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install plugins #931

Closed
Findus23 opened this issue Jun 10, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@Findus23
Copy link

commented Jun 10, 2015

  1. What were you doing?

I wanted to install OctoPrint/OctoPrint-Pushbullet@50e8cea via GUI and pip.
2. What did you expect to happen?

Plugin installs successfully
3. What happened instead?

GUI: the following not helpful error occurs:

Etwas ist schief gegangen
Installation des Plugins von URL "unknown" fehlgeschlagen: Could not parse output from pip

pip:

pi@octopi ~/OctoPrint $ ~/oprint/bin/pip install https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip
Downloading/unpacking https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip
  Downloading master.zip
  Running setup.py egg_info for package from https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/tmp/pip-Pqvac6-build/setup.py", line 16, in <module>
        "pushbullet.py"
      File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.0_dev_931_g06fb249-py2.7.egg/octoprint_setuptools/__init__.py", line 494, in create_plugin_setup_parameters
        packages = find_packages(where=source_folder, exclude=ignored_packages, include=[package, "{package}.*".format(**locals())] + additional_packages)
    TypeError: find_packages() got an unexpected keyword argument 'include'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/tmp/pip-Pqvac6-build/setup.py", line 16, in <module>

    "pushbullet.py"

  File "/home/pi/oprint/local/lib/python2.7/site-packages/OctoPrint-1.2.0_dev_931_g06fb249-py2.7.egg/octoprint_setuptools/__init__.py", line 494, in create_plugin_setup_parameters

    packages = find_packages(where=source_folder, exclude=ignored_packages, include=[package, "{package}.*".format(**locals())] + additional_packages)

TypeError: find_packages() got an unexpected keyword argument 'include'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-Pqvac6-build
Storing complete log in /home/pi/.pip/pip.log
  1. Branch & Commit or Version of OctoPrint:

06fb249
5. Printer model & used firmware incl. version
(if applicable - always include if unsure):
K8200
6. Browser and Version of Browser, Operating
System running Browser (if applicable - always
include if unsure):
Chromium 43.0.2357.65 (most likely browser independent)
7. Link to octoprint.log on gist.github.com or pastebin.com
(ALWAYS INCLUDE AND DO NOT TRUNCATE):
https://gist.github.com/Findus23/1c887c370ecf1c6b5a28
I have read the FAQ.

Sorry for opening the issue in the wrong place. (OctoPrint/OctoPrint-Pushbullet#1)

@foosel

This comment has been minimized.

Copy link
Owner

commented Jun 10, 2015

I was just about to comment at the other ticket that this is an OctoPrint issue ;)

You should be able to fix this via ~/oprint/bin/pip install setuptools==7.0, I'll push a fix shortly (would have been the first RC ever without any issues ;))

@foosel foosel closed this in 6a7a858 Jun 10, 2015

@Findus23

This comment has been minimized.

Copy link
Author

commented Jun 10, 2015

Thanks for that quick fix.
Now I can install Salandora/OctoPrint-SystemCommandEditor@a910402 (but I had to force the install of setuptools with --upgrade).
But it seems as there is a second issue with OctoPrint-Pushbullet::

pi@octopi ~ $ ~/oprint/bin/pip install https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip
Downloading/unpacking https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip
  Downloading master.zip
  Running setup.py egg_info for package from https://github.com/OctoPrint/OctoPrint-Pushbullet/archive/master.zip

Requirement already satisfied (use --upgrade to upgrade): OctoPrint in ./oprint/lib/python2.7/site-packages/OctoPrint-1.2.0_dev_931_g06fb249-py2.7.egg (from OctoPrint-Pushbullet==0.1.0)
Requirement already satisfied (use --upgrade to upgrade): requests in ./oprint/lib/python2.7/site-packages (from OctoPrint-Pushbullet==0.1.0)
Downloading/unpacking pushbullet.py (from OctoPrint-Pushbullet==0.1.0)
  Running setup.py egg_info for package pushbullet.py
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "/home/pi/oprint/build/pushbullet.py/setup.py", line 15, in <module>
        install_reqs = parse_requirements("requirements.txt",  session=uuid.uuid1())
    TypeError: parse_requirements() got an unexpected keyword argument 'session'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in <module>

  File "/home/pi/oprint/build/pushbullet.py/setup.py", line 15, in <module>

    install_reqs = parse_requirements("requirements.txt",  session=uuid.uuid1())

TypeError: parse_requirements() got an unexpected keyword argument 'session'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/pi/oprint/build/pushbullet.py
Storing complete log in /home/pi/.pip/pip.log
@foosel

This comment has been minimized.

Copy link
Owner

commented Jun 10, 2015

You had to force although you did provide the ==7.0 part as well? Shouldn't be the case...

The error above now in turn is caused by a 3rd party dependency of the pushbullet plugin, so let's discuss further in OctoPrint/OctoPrint-Pushbullet#1 :)

foosel added a commit that referenced this issue Jun 10, 2015

Better fix for #931, stays backwards compatible to older setuptools v…
…ersions

python-setuptools on OctoPi is quite old and trying to update in a local virtualenv apparently CAN cause problems (we had this with python-serial too a while back), so a backwards compatible solution is better here.
@adammhaile

This comment has been minimized.

Copy link

commented Sep 27, 2016

This is back as of 1.2.16 for me. Running on Pi2 from the OctoPi distro. Cannot install any plugins.

plugin_pluginmanager_console.txt

@foosel

This comment has been minimized.

Copy link
Owner

commented Sep 27, 2016

Your log begs to differ and contains several "installed successfully" messages. And it also does not contain the error that was present in this issue so it's not the same problem in any case. Red herring :)

Please open a new ticket and fill out the full template. Also include screenshots showing the problem (apparently you are coming to the conclusion the install failed even though the provided log says otherwise, so my guess is there's some message on your screen that indicates file) and octoprint.log. Also state from what version you upgraded to 1.2.16, since 1.2.15 to 1.2.16 contains absolutely no changes in the plugin manager. Give as full of a picture as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.