I am a developer in the UK trying to use the S3QL package on a Linux
EC2 box.
I have tried (for hours!) to get it installed but keep hitting this on
the python setup.py test install for S3QL.
Have you any suggestions?
TIA
Lawrence
copying build/lib.linux-x86_64-2.6/s3ql/_deltadump.so -> src/s3ql
Uncaught top-level exception -- and tb handler failed!
Traceback (most recent call last):
File "setup.py", line 317, in <module>
main()
File "setup.py", line 175, in main
command_options={ 'sdist': { 'formats': ('setup.py', 'bztar') } },
File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib64/python2.6/distutils/dist.py", line 975, in
run_commands
self.run_command(cmd)
File "/usr/lib64/python2.6/distutils/dist.py", line 995, in
run_command
cmd_obj.run()
File "build/bdist.linux-x86_64/egg/setuptools/command/test.py", line
137, in run
self.with_project_on_sys_path(self.run_tests)
File "build/bdist.linux-x86_64/egg/setuptools/command/test.py", line
117, in with_project_on_sys_path
func()
File "setup.py", line 296, in run_tests
testLoader=ScanningLoader())
File "/tmp/s3ql-1.11.1/unittest2-0.5.1-py2.6.egg/unittest2/main.py",
line 97, in __init__
self.parseArgs(argv)
File "/tmp/s3ql-1.11.1/unittest2-0.5.1-py2.6.egg/unittest2/main.py",
line 152, in parseArgs
self.createTests()
File "/tmp/s3ql-1.11.1/unittest2-0.5.1-py2.6.egg/unittest2/main.py",
line 161, in createTests
self.module)
File "/tmp/s3ql-1.11.1/unittest2-0.5.1-py2.6.egg/unittest2/
loader.py", line 148, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File "/tmp/s3ql-1.11.1/unittest2-0.5.1-py2.6.egg/unittest2/
loader.py", line 123, in loadTestsFromName
return self.loadTestsFromModule(obj)
File "setup.py", line 288, in loadTestsFromModule
tests.append(self.loadTestsFromName(submodule))
File "/tmp/s3ql-1.11.1/unittest2-0.5.1-py2.6.egg/unittest2/
loader.py", line 120, in loadTestsFromName
parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 't1_dump'
> I am a developer in the UK trying to use the S3QL package on a Linux
> EC2 box.
> I have tried (for hours!) to get it installed but keep hitting this on
> the python setup.py test install for S3QL.
You seem to be running Python 2.6. S3QL requires Python 2.7. If you use
Ubuntu, you may get away with Python 2.6 because the Ubuntu packages in
the PPA have been specially patched to work with Python 2.6 as well.
Best,
-Nikolaus
-- Time flies like an arrow, fruit flies like a Banana.
>> I am a developer in the UK trying to use the S3QL package on a Linux
>> EC2 box.
>> I have tried (for hours!) to get it installed but keep hitting this on
>> the python setup.py test install for S3QL.
> You seem to be running Python 2.6. S3QL requires Python 2.7. If you use
> Ubuntu, you may get away with Python 2.6 because the Ubuntu packages in
> the PPA have been specially patched to work with Python 2.6 as well.
..but otherwise you need to either use Python 2.7 or manually make the
necessary changes. The later is of course not recommended, not
supported, and at your own risk.
Best,
-Nikolaus
-- Time flies like an arrow, fruit flies like a Banana.
> >> I am a developer in the UK trying to use the S3QL package on a Linux
> >> EC2 box.
> >> I have tried (for hours!) to get it installed but keep hitting this on
> >> the python setup.py test install for S3QL.
> > You seem to be running Python 2.6. S3QL requires Python 2.7. If you use
> > Ubuntu, you may get away with Python 2.6 because the Ubuntu packages in
> > the PPA have been specially patched to work with Python 2.6 as well.
> ..but otherwise you need to either use Python 2.7 or manually make the
> necessary changes. The later is of course not recommended, not
> supported, and at your own risk.
> Best,
> -Nikolaus
> --
> Time flies like an arrow, fruit flies like a Banana.
Loz <lwilliams0...@googlemail.com> writes:
>> > You seem to be running Python 2.6. S3QL requires Python 2.7. If you use
>> > Ubuntu, you may get away with Python 2.6 because the Ubuntu packages in
>> > the PPA have been specially patched to work with Python 2.6 as well.
>> ..but otherwise you need to either use Python 2.7 or manually make the
>> necessary changes. The later is of course not recommended, not
>> supported, and at your own risk.
> Thanks for the steer - the issue i have is other software depends on
> 2.6 - including yum.
> Is there anyway to make s3ql run off a separate 2.7 installation?
S3QL can run with any Python installation you want. By default, it uses
whatever Python is installed under the "python" command. If you want to
use e.g. "python2.7" instead, you can install S3QL with
# python2.7 setup.py [...]
instead of
# ./setup.py [...]
and it will use the python2.7 interpreter instead.
The real challenge might be to install two different Python versions in
parallel. With Debian and Ubuntu, this is supported out of the box, but
I have heard that this isn't the norm with every distribution.
Best,
-Nikolaus
-- »Time flies like an arrow, fruit flies like a Banana.«