AttributeError: 'module' object has no attribute 't1_dump'

145 views
Skip to first unread message

Loz

unread,
May 22, 2012, 1:09:50 PM5/22/12
to s3ql
Hi,

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'

Nikolaus Rath

unread,
May 22, 2012, 1:39:56 PM5/22/12
to s3...@googlegroups.com
On 05/22/2012 01:09 PM, Loz wrote:
> Hi,
>
> 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.�

PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6 02CF A9AD B7F8 AE4E 425C

Nikolaus Rath

unread,
May 22, 2012, 1:52:02 PM5/22/12
to s3...@googlegroups.com
On 05/22/2012 01:39 PM, Nikolaus Rath wrote:
> On 05/22/2012 01:09 PM, Loz wrote:
>> Hi,
>>
>> 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.

Loz

unread,
May 22, 2012, 3:20:15 PM5/22/12
to s3ql
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?

Thanks again
Lawrence

Nikolaus Rath

unread,
May 22, 2012, 3:51:00 PM5/22/12
to s3...@googlegroups.com
Hi Lawrence,

Please format your messages according to
http://email.about.com/cs/netiquettetips/qt/et090402.htm
Thanks!

Loz <lwilli...@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.
Reply all
Reply to author
Forward
0 new messages