Giter VIP home page Giter VIP logo

Comments (9)

sayoun avatar sayoun commented on July 29, 2024

Hello,

can you please specify on which OS/release are you trying to run this ?

from gandi.cli.

zaurky avatar zaurky commented on July 29, 2024

I think you forgot to install python-dev and libpython-dev for your python version.

from gandi.cli.

romuald avatar romuald commented on July 29, 2024

This error occurs when you can't compile the C extension (missing libpython-dev / libyaml-dev)

But this should not prevent the installation (YAML will just be installed without its C extension).

Did it prevent the installation?

from gandi.cli.

robrecord avatar robrecord commented on July 29, 2024

I tried again with sudo and it worked. Sorry for the trouble, thanks so much for the willingness to support.

from gandi.cli.

robrecord avatar robrecord commented on July 29, 2024

Sorry, false start! It doesn't work.

I don't know how to verify that it was installed.

I am on Ubuntu 14.04. Latest version of gandi.cli, pip, virtualenv

I made sure that libpython-dev, libyaml-dev and python-dev were installed.

When I tried to install with sudo, I got:

$  sudo pip install gandi.cli

Requirement already satisfied (use --upgrade to upgrade): gandi.cli in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): pyyaml in /usr/lib/python2.7/dist-packages (from gandi.cli)
Downloading/unpacking click<=3.1 (from gandi.cli)
  Downloading click-3.1-py2.py3-none-any.whl (57kB): 57kB downloaded
Installing collected packages: click
Successfully installed click
Cleaning up...

When I try to do gandi setup I get:

(gandi.cli)root@robrecord:/home/robrecord# gandi setup
Traceback (most recent call last):
  File "/home/robrecord/gandi.cli/bin/gandi", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/home/robrecord/gandi.cli/local/lib/python2.7/site-packages/pkg_resources.py", line 2829, in <module>
    working_set = WorkingSet._build_master()
  File "/home/robrecord/gandi.cli/local/lib/python2.7/site-packages/pkg_resources.py", line 449, in _build_master
    ws.require(__requires__)
  File "/home/robrecord/gandi.cli/local/lib/python2.7/site-packages/pkg_resources.py", line 742, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/robrecord/gandi.cli/local/lib/python2.7/site-packages/pkg_resources.py", line 639, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: click<=3.1

from gandi.cli.

robrecord avatar robrecord commented on July 29, 2024

I also tried

$  sudo pip install --upgrade gandi.cli

Which gave a long list of stuff (no apparent errors) but gandi setup still gives the same output.

from gandi.cli.

sayoun avatar sayoun commented on July 29, 2024

Maybe because you installed using sudo it was installed for sudo user and not for your user, so what is the output of $ sudo gandi or $ sudo gandi setup ?

from gandi.cli.

kalou avatar kalou commented on July 29, 2024

Can you $ pip freeze | grep click and try $ sudo pip install --upgrade distribute ?

from gandi.cli.

robrecord avatar robrecord commented on July 29, 2024

Thanks sayoun. I tried su && gandi setup and it worked this time.

My original attempt, as you an see above, was performed as the root user. I assume that $ sudo pip install --upgrade gandi.cli is what solved the problem. But then I didn't do gandi setup with sudo (or as root) afterwards; my bad!

$ su
root@robrecord:/home/robrecord/gandi.cli# gandi setup
Welcome to GandiCLI, let's configure a few things before we start.

Api key: ###                                  
Environnment [production]/ote: 
SSH keyfile [~/.ssh/id_rsa.pub]: /home/robrecord/.ssh/id_rsa.pub

Setup completed. You can now:
* use 'gandi' to see all command.
* use 'gandi vm create' to create and access a Virtual Machine.
* use 'gandi paas create' to create and access a SimpleHosting instance.
$

Anyway I wonder what I've done to make it so that everything needs sudo or root to be installed or used.

kalou - I did what you suggested anyway:

$ su
root@robrecord:/home/robrecord/gandi.cli# pip freeze | grep click
click==3.1

Distribute installed with no problems; but since it works, I assume that it wasn't needed.

Again, thanks for your help!

On a side note, I had to cd into gandi.cli directory to be able to install the man pages. I guess that's obvious to some, but that step wasn't included in the install docs. Also sudo wouldn't allow it to work, but su did.

from gandi.cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.