Great news.  There was a patch committed to master last week that added 
python-setuptools to the dependency.  So the issue shouldn't happen with the 
next build.

Cheers,
Gary

On May 17, 2013, at 4:47 PM, Matt Chipman wrote:

> Hi Gary, 
> 
> after a bit of searching on the list I was able to resolve this by "aptitude 
> install python-setuptools".
> 
> seems it's a missing dependency on wheezy "ceph-deploy" install.
> 
> thanks for your help
> 
> -Matt
> 
> 
> On Sat, May 18, 2013 at 6:54 AM, Gary Lowell <glow...@sonic.net> wrote:
> Hi Matt -
> 
> Sorry, I just spotted at the end of your message that you are using python 
> 2.7.3.  But the modules are installing into the python2.6 directories.   I 
> don't know why that would be happening, and we'll have to dig into more.  
> Python is tripping over incompatible syntax for some reason.
> 
> Cheers,
> Gary
> 
> On May 17, 2013, at 1:41 PM, Gary Lowell wrote:
> 
>> Hi Matt -
>> 
>> 
>> I see in the message below that you are using python 2.6.   Ceph-deploy may 
>> have some syntax that is incompatible with that version of python.  On 
>> wheezy we tested with the default python 2.7.3 interpreter.  You might try 
>> using the newer interpreter, we will also do so more testing to see if we 
>> can get ceph-deploy working with python 2.6.
>> 
>> Cheers,
>> Gary
>> 
>> 
>> On May 17, 2013, at 6:23 AM, Matt Chipman wrote:
>> 
>>> Thanks Gary,
>>> 
>>> after you throwing me those clues I got furthur but it still isnt working.  
>>> It seems there are no i386 deb "python-pushy" packages in either of those 
>>> ceph repo's.  I also attempted using PIP and got pushy installed but the 
>>> ceph-deploy debs still refused to install.
>>> 
>>> I built another VM with 64bit Debian 7 and the packages were found and 
>>> installed however there is an error on compiling during install.
>>> 
>>> any ideas?
>>> 
>>> cheers
>>> 
>>> -Matt
>>> 
>>> administrator@ceph-admin:~$ sudo aptitude install ceph-deploy
>>> The following NEW packages will be installed:
>>>   ceph-deploy python-pushy{a}
>>> 0 packages upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
>>> Need to get 53.3 kB of archives. After unpacking 328 kB will be used.
>>> Do you want to continue? [Y/n/?]
>>> Get: 1 http://ceph.com/debian-cuttlefish/ wheezy/main python-pushy amd64 
>>> 0.5.1-1 [30.9 kB]
>>> Get: 2 http://ceph.com/debian-cuttlefish/ wheezy/main ceph-deploy all 0.1-1 
>>> [22.4 kB]
>>> Fetched 53.3 kB in 1s (33.2 kB/s)
>>> Selecting previously unselected package python-pushy.
>>> (Reading database ... 38969 files and directories currently installed.)
>>> Unpacking python-pushy (from .../python-pushy_0.5.1-1_amd64.deb) ...
>>> Selecting previously unselected package ceph-deploy.
>>> Unpacking ceph-deploy (from .../ceph-deploy_0.1-1_all.deb) ...
>>> Setting up python-pushy (0.5.1-1) ...
>>> Setting up ceph-deploy (0.1-1) ...
>>> Processing triggers for python-support ...
>>> Compiling /usr/lib/pymodules/python2.6/ceph_deploy/test/test_cli.py ...
>>> SyntaxError: ('invalid syntax', 
>>> ('/usr/lib/pymodules/python2.6/ceph_deploy/test/test_cli.py', 44, 26, '    
>>> assert {p.basename for p in tmpdir.listdir()} == set()\n'))
>>> 
>>> Compiling /usr/lib/pymodules/python2.6/ceph_deploy/test/test_cli_new.py ...
>>> SyntaxError: ('invalid syntax', 
>>> ('/usr/lib/pymodules/python2.6/ceph_deploy/test/test_cli_new.py', 33, 26, " 
>>>    assert {p.basename for p in tmpdir.listdir()} == {'ceph.conf'}\n"))
>>> 
>>> 
>>> administrator@ceph-admin:~$ ceph-deploy
>>> Traceback (most recent call last):
>>>   File "/usr/bin/ceph-deploy", line 19, in <module>
>>>     from ceph_deploy.cli import main
>>>   File "/usr/lib/pymodules/python2.7/ceph_deploy/cli.py", line 1, in 
>>> <module>
>>>     import pkg_resources
>>> ImportError: No module named pkg_resources
>>> administrator@ceph-admin:~$ python
>>> Python 2.7.3 (default, Jan  2 2013, 13:56:14)
>>> [GCC 4.7.2] on linux2
>>> 
>>> 
>>> 
>>> On Fri, May 17, 2013 at 9:10 AM, Gary Lowell <glow...@sonic.net> wrote:
>>> Hi Matt -
>>> 
>>> Sounds like you installed ceph-deploy by downloading from 
>>> github.com/ceph/ceph-deploy, then running the bootstrap script.
>>> 
>>> We have debian packages for ceph-deploy and python-pushy that are included 
>>> in the debian-cuttlefish repo, as well as 
>>> http://ceph.com/packages/ceph-deploy/debian.    You can install python-push 
>>> from those locations with apt, or you can install via pip:  sudo pip 
>>> python-pushy.
>>> 
>>> Let me know if you continue to have problems.
>>> 
>>> Cheers,
>>> Gary
>>> 
>>> On May 16, 2013, at 3:51 PM, Matt Chipman wrote:
>>> 
>>>> hi, 
>>>> I used ceph-deploy successfully a few days ago but recently reinstalled my 
>>>> admin machine from the same instructions 
>>>> http://ceph.com/docs/master/rados/deployment/preflight-checklist/
>>>> 
>>>> now getting the error below. Then I figured I'd just use the debs but they 
>>>> are missing the python-pushy dependancy.  Debian 7.0
>>>> 
>>>> Is there any way to solve either issue? 
>>>> 
>>>> thanks
>>>> 
>>>> administrator@cephadmin:~$ ceph-deploy
>>>> usage: ceph-deploy [-h] [-v | -q] [-n] [--overwrite-conf] [--cluster NAME]
>>>>                    COMMAND ...
>>>> ceph-deploy: error: too few arguments
>>>> administrator@cephadmin:~$ ceph-deploy install ceph00
>>>> Traceback (most recent call last):
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py",
>>>>  line 383, in __init__
>>>>     self.modules = AutoImporter(self)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py",
>>>>  line 236, in __init__
>>>>     remote_compile = self.__client.eval("compile")
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py",
>>>>  line 478, in eval
>>>>     return self.remote.eval(code, globals, locals)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/connection.py",
>>>>  line 54, in eval
>>>>     return self.send_request(MessageType.evaluate, args)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py",
>>>>  line 315, in send_request
>>>>     m = self.__waitForResponse(handler)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py",
>>>>  line 420, in __waitForResponse
>>>>     m = self.__recv()
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py",
>>>>  line 601, in __recv
>>>>     m = self.__istream.receive_message()
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py",
>>>>  line 104, in receive_message
>>>>     return Message.unpack(self.__file)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/message.py",
>>>>  line 96, in unpack
>>>>     header = read(file, Message.PACKING_SIZE)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/message.py",
>>>>  line 60, in read
>>>>     raise IOError, "End of file"
>>>> IOError: End of file
>>>> 
>>>> [remote] sudo: no tty present and no askpass program specified
>>>> 
>>>> Traceback (most recent call last):
>>>>   File "./ceph-deploy/ceph-deploy", line 9, in <module>
>>>>     load_entry_point('ceph-deploy==0.1', 'console_scripts', 
>>>> 'ceph-deploy')()
>>>>   File "/home/administrator/ceph-deploy/ceph_deploy/cli.py", line 112, in 
>>>> main
>>>>     return args.func(args)
>>>>   File "/home/administrator/ceph-deploy/ceph_deploy/install.py", line 202, 
>>>> in install
>>>>     sudo = args.pushy(get_transport(hostname))
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py",
>>>>  line 583, in connect
>>>>     return PushyClient(target, **kwargs)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py",
>>>>  line 383, in __init__
>>>>     self.modules = AutoImporter(self)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py",
>>>>  line 236, in __init__
>>>>     remote_compile = self.__client.eval("compile")
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/client.py",
>>>>  line 478, in eval
>>>>     return self.remote.eval(code, globals, locals)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/connection.py",
>>>>  line 54, in eval
>>>>     return self.send_request(MessageType.evaluate, args)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py",
>>>>  line 315, in send_request
>>>>     m = self.__waitForResponse(handler)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py",
>>>>  line 420, in __waitForResponse
>>>>     m = self.__recv()
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py",
>>>>  line 601, in __recv
>>>>     m = self.__istream.receive_message()
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/baseconnection.py",
>>>>  line 104, in receive_message
>>>>     return Message.unpack(self.__file)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/message.py",
>>>>  line 96, in unpack
>>>>     header = read(file, Message.PACKING_SIZE)
>>>>   File 
>>>> "/home/administrator/ceph-deploy/virtualenv/local/lib/python2.7/site-packages/pushy-0.5.1-py2.7.egg/pushy/protocol/message.py",
>>>>  line 60, in read
>>>>     raise IOError, "End of file"
>>>> IOError: End of file
>>>> administrator@cephadmin:~$
>>>> 
>>>> _______________________________________________
>>>> ceph-users mailing list
>>>> ceph-users@lists.ceph.com
>>>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>>> 
>>> 
>>> _______________________________________________
>>> ceph-users mailing list
>>> ceph-users@lists.ceph.com
>>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>> 
>> _______________________________________________
>> ceph-users mailing list
>> ceph-users@lists.ceph.com
>> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
> 
> 
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to