Project

General

Profile

Cleanup #5106

ceph_deploy: install/compile error on wheezy

Added by Anonymous almost 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Incompatible syntax with python 2.6 compiler:

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

History

#1 Updated by Sage Weil almost 11 years ago

  • Priority changed from Normal to High

let's just disable these tests.. dan and i don't even know how to run them.

#2 Updated by Anonymous almost 11 years ago

  • Tracker changed from Bug to Cleanup

#3 Updated by Anonymous almost 11 years ago

  • Status changed from New to In Progress

commit 61b610fbc841c6943e41f23569ed5f6835d8caed
Author: Gary Lowell <>
Date: Thu May 23 09:23:14 2013 -0700

ceph-deploy:  Don't ship test directory.
Don't include the test directory in packages.  It is not compatible
with all versions of Python. (Fixes #5106)
Signed-off-by: Gary Lowell  &lt;&gt;

#4 Updated by Anonymous almost 11 years ago

  • Status changed from In Progress to Resolved

The was happening do to syntax in the test programs that wasn't supported on Python 2.6. Not shipping the test directories solves the problem.

Also available in: Atom PDF