Comments (9)
Hello,
can you please specify on which OS/release are you trying to run this ?
from gandi.cli.
I think you forgot to install python-dev and libpython-dev for your python version.
from gandi.cli.
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.
I tried again with sudo and it worked. Sorry for the trouble, thanks so much for the willingness to support.
from gandi.cli.
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.
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.
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.
Can you $ pip freeze | grep click
and try $ sudo pip install --upgrade distribute
?
from gandi.cli.
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)
- dns update command reports "Remote API service is unreachable" HOT 1
- gandi dnssec create --help raises error HOT 2
- Order domain name via API V5
- Spelling errors in manual page HOT 1
- Domain listing is incomplete HOT 3
- gandi setup output HOT 10
- Execute a command after deployment
- Run `update` instead of `install` on composer deployments
- Unable to manage domain records HOT 3
- Import Error: The 'packaging.requirements' package is required; HOT 1
- Running under nohup causes 'Bad file descriptor'
- How to list certificates? HOT 3
- Readme "Getting started" outdated HOT 4
- 289รท17=17squared
- Deprecate tool if abandonned HOT 5
- version 1.6 fails to run on Python 3.8 HOT 3
- FR: Domain Availability - Lookup by price
- Migrating `gandi domain` to v5 HOT 2
- [domain list] - Invalid API key, please use 'gandi setup' command. HOT 2
- are there any alternative api clients or client libraries? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gandi.cli.