Hi Dne Tue, 08 Feb 2011 15:58:21 +0100 Torquil Macdonald Sørensen <torq...@gmail.com> napsal(a):
> Package: python-pyexiv2 > Version: 0.3.0-2 > Severity: grave > Justification: renders package unusable > > It seems that python-pyexiv2 is unusable. A simple python script > consisting only of the line: > > import pyexiv2 > > fails with the following error message: > > Traceback (most recent call last): > File "/home/tmac/scripts/camera.py", line 11, in <module> > import pyexiv2 > File "/usr/lib/pymodules/python2.6/pyexiv2/__init__.py", line 62, in <module> > from pyexiv2.metadata import ImageMetadata > File "/usr/lib/pymodules/python2.6/pyexiv2/metadata.py", line 40, in <module> > from pyexiv2.exif import ExifTag, ExifThumbnail > File "/usr/lib/pymodules/python2.6/pyexiv2/exif.py", line 33, in <module> > from pyexiv2.utils import is_fraction, make_fraction, fraction_to_string, \ > File "/usr/lib/pymodules/python2.6/pyexiv2/utils.py", line 39, in <module> > from fractions import Fraction > File "/usr/lib/python2.6/fractions.py", line 14, in <module> > Rational = numbers.Rational > AttributeError: 'module' object has no attribute 'Rational' And what happens when you try just "import fractions"? I guess it will be broken as well, so there is something wrong with your code. Most likely it looks like something is hiding standard module numbers, perhaps you have one named in same way in your current directory? You can run python -v -c 'import fractions' to see what is actually being imported. -- Michal Čihař | http://cihar.com | http://blog.cihar.com
signature.asc
Description: PGP signature