Mock Version: 1.2.13 ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/pyshp.spec'], chrootPath='/var/lib/mock/epel-1-armhfp-9a22362559cb55df6c93b6ccc3bfbd09c69bc507/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=996) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/pyshp.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False sh: /usr/bin/python: No such file or directory sh: /usr/bin/python: No such file or directory Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/pyshp-1.2.1-1.el7.src.rpm Child return code was: 0 LEAVE do --> ENTER do(['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/pyshp.spec '], chrootPath='/var/lib/mock/epel-1-armhfp-9a22362559cb55df6c93b6ccc3bfbd09c69bc507/root'shell=Falseuid=996env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/pyshp.spec '] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.SB10I4 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf pyshp-1.2.1 + /usr/bin/unzip -qq /builddir/build/SOURCES/pyshp-1.2.1.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd pyshp-1.2.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i 's/.$//' README.txt changelog.txt + rm -rf pyshp.egg-info + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wtZrE4 + umask 022 + cd /builddir/build/BUILD + cd pyshp-1.2.1 + /usr/bin/python setup.py build running build running build_py creating build creating build/lib copying shapefile.py -> build/lib + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.XqX3Wu + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch '!=' / ']' + rm -rf /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch ++ dirname /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch + cd pyshp-1.2.1 + /usr/bin/python setup.py install --skip-build --root /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch running install running install_lib creating /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr creating /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr/lib creating /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr/lib/python2.7 creating /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr/lib/python2.7/site-packages copying build/lib/shapefile.py -> /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr/lib/python2.7/site-packages byte-compiling /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr/lib/python2.7/site-packages/shapefile.py to shapefile.pyc running install_egg_info running egg_info creating pyshp.egg-info writing pyshp.egg-info/PKG-INFO writing top-level names to pyshp.egg-info/top_level.txt writing dependency_links to pyshp.egg-info/dependency_links.txt writing manifest file 'pyshp.egg-info/SOURCES.txt' reading manifest file 'pyshp.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' no previously-included directories found matching 'shapefiles' writing manifest file 'pyshp.egg-info/SOURCES.txt' Copying pyshp.egg-info to /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr/lib/python2.7/site-packages/pyshp-1.2.1-py2.7.egg-info running install_scripts + /usr/lib/rpm/find-debuginfo.sh --strict-build-id -m --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 /builddir/build/BUILD/pyshp-1.2.1 /usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 0 CRC32s did match. find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-compress + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 Bytecompiling .py files below /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr/lib/python2.7 using /usr/bin/python2.7 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.9MdNSn + umask 022 + cd /builddir/build/BUILD + cd pyshp-1.2.1 + /usr/bin/python shapefile.py Trying: import shapefile Expecting nothing ok Trying: sf = shapefile.Reader("shapefiles/blockgroups") Expecting nothing ********************************************************************** File "README.txt", line 67, in README.txt Failed example: sf = shapefile.Reader("shapefiles/blockgroups") Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in sf = shapefile.Reader("shapefiles/blockgroups") File "/builddir/build/BUILD/pyshp-1.2.1/shapefile.py", line 230, in __init__ self.load(args[0]) File "/builddir/build/BUILD/pyshp-1.2.1/shapefile.py", line 263, in load raise ShapefileException("Unable to open %s.shp" % shapeName) ShapefileException: Unable to open shapefiles/blockgroups.shp Trying: sf = shapefile.Reader("shapefiles/blockgroups.shp") Expecting nothing ********************************************************************** File "README.txt", line 72, in README.txt Failed example: sf = shapefile.Reader("shapefiles/blockgroups.shp") Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in sf = shapefile.Reader("shapefiles/blockgroups.shp") File "/builddir/build/BUILD/pyshp-1.2.1/shapefile.py", line 230, in __init__ self.load(args[0]) File "/builddir/build/BUILD/pyshp-1.2.1/shapefile.py", line 263, in load raise ShapefileException("Unable to open %s.shp" % shapeName) ShapefileException: Unable to open shapefiles/blockgroups.shp Trying: sf = shapefile.Reader("shapefiles/blockgroups.dbf") Expecting nothing ********************************************************************** File "README.txt", line 77, in README.txt Failed example: sf = shapefile.Reader("shapefiles/blockgroups.dbf") Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in sf = shapefile.Reader("shapefiles/blockgroups.dbf") File "/builddir/build/BUILD/pyshp-1.2.1/shapefile.py", line 230, in __init__ self.load(args[0]) File "/builddir/build/BUILD/pyshp-1.2.1/shapefile.py", line 263, in load raise ShapefileException("Unable to open %s.shp" % shapeName) ShapefileException: Unable to open shapefiles/blockgroups.shp Trying: myshp = open("shapefiles/blockgroups.shp", "rb") Expecting nothing ********************************************************************** File "README.txt", line 91, in README.txt Failed example: myshp = open("shapefiles/blockgroups.shp", "rb") Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in myshp = open("shapefiles/blockgroups.shp", "rb") IOError: [Errno 2] No such file or directory: 'shapefiles/blockgroups.shp' Trying: mydbf = open("shapefiles/blockgroups.dbf", "rb") Expecting nothing ********************************************************************** File "README.txt", line 92, in README.txt Failed example: mydbf = open("shapefiles/blockgroups.dbf", "rb") Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in mydbf = open("shapefiles/blockgroups.dbf", "rb") IOError: [Errno 2] No such file or directory: 'shapefiles/blockgroups.dbf' Trying: r = shapefile.Reader(shp=myshp, dbf=mydbf) Expecting nothing ********************************************************************** File "README.txt", line 93, in README.txt Failed example: r = shapefile.Reader(shp=myshp, dbf=mydbf) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in r = shapefile.Reader(shp=myshp, dbf=mydbf) NameError: name 'myshp' is not defined Trying: shapes = sf.shapes() Expecting nothing ********************************************************************** File "README.txt", line 111, in README.txt Failed example: shapes = sf.shapes() Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in shapes = sf.shapes() NameError: name 'sf' is not defined Trying: len(shapes) Expecting: 663 ********************************************************************** File "README.txt", line 116, in README.txt Failed example: len(shapes) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in len(shapes) NameError: name 'shapes' is not defined Trying: len(list(sf.iterShapes())) Expecting: 663 ********************************************************************** File "README.txt", line 121, in README.txt Failed example: len(list(sf.iterShapes())) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in len(list(sf.iterShapes())) NameError: name 'sf' is not defined Trying: for name in dir(shapes[3]): if not name.startswith('__'): name Expecting: 'bbox' 'parts' 'points' 'shapeType' ********************************************************************** File "README.txt", line 126, in README.txt Failed example: for name in dir(shapes[3]): if not name.startswith('__'): name Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in for name in dir(shapes[3]): NameError: name 'shapes' is not defined Trying: shapes[3].shapeType Expecting: 5 ********************************************************************** File "README.txt", line 137, in README.txt Failed example: shapes[3].shapeType Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in shapes[3].shapeType NameError: name 'shapes' is not defined Trying: bbox = shapes[3].bbox Expecting nothing ********************************************************************** File "README.txt", line 147, in README.txt Failed example: bbox = shapes[3].bbox Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in bbox = shapes[3].bbox NameError: name 'shapes' is not defined Trying: ['%.3f' % coord for coord in bbox] Expecting: ['-122.486', '37.787', '-122.446', '37.811'] ********************************************************************** File "README.txt", line 148, in README.txt Failed example: ['%.3f' % coord for coord in bbox] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in ['%.3f' % coord for coord in bbox] NameError: name 'bbox' is not defined Trying: shapes[3].parts Expecting: [0] ********************************************************************** File "README.txt", line 155, in README.txt Failed example: shapes[3].parts Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in shapes[3].parts NameError: name 'shapes' is not defined Trying: len(shapes[3].points) Expecting: 173 ********************************************************************** File "README.txt", line 161, in README.txt Failed example: len(shapes[3].points) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in len(shapes[3].points) NameError: name 'shapes' is not defined Trying: shape = shapes[3].points[7] Expecting nothing ********************************************************************** File "README.txt", line 165, in README.txt Failed example: shape = shapes[3].points[7] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in shape = shapes[3].points[7] NameError: name 'shapes' is not defined Trying: ['%.3f' % coord for coord in shape] Expecting: ['-122.471', '37.787'] ********************************************************************** File "README.txt", line 166, in README.txt Failed example: ['%.3f' % coord for coord in shape] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in ['%.3f' % coord for coord in shape] NameError: name 'shape' is not defined Trying: s = sf.shape(7) Expecting nothing ********************************************************************** File "README.txt", line 173, in README.txt Failed example: s = sf.shape(7) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in s = sf.shape(7) NameError: name 'sf' is not defined Trying: ['%.3f' % coord for coord in s.bbox] Expecting: ['-122.450', '37.801', '-122.442', '37.808'] ********************************************************************** File "README.txt", line 177, in README.txt Failed example: ['%.3f' % coord for coord in s.bbox] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in ['%.3f' % coord for coord in s.bbox] NameError: name 's' is not defined Trying: fields = sf.fields Expecting nothing ********************************************************************** File "README.txt", line 205, in README.txt Failed example: fields = sf.fields Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in fields = sf.fields NameError: name 'sf' is not defined Trying: assert fields == [("DeletionFlag", "C", 1, 0), ["AREA", "N", 18, 5], ["BKG_KEY", "C", 12, 0], ["POP1990", "N", 9, 0], ["POP90_SQMI", "N", 10, 1], ["HOUSEHOLDS", "N", 9, 0], ["MALES", "N", 9, 0], ["FEMALES", "N", 9, 0], ["WHITE", "N", 9, 0], ["BLACK", "N", 8, 0], ["AMERI_ES", "N", 7, 0], ["ASIAN_PI", "N", 8, 0], ["OTHER", "N", 8, 0], ["HISPANIC", "N", 8, 0], ["AGE_UNDER5", "N", 8, 0], ["AGE_5_17", "N", 8, 0], ["AGE_18_29", "N", 8, 0], ["AGE_30_49", "N", 8, 0], ["AGE_50_64", "N", 8, 0], ["AGE_65_UP", "N", 8, 0], ["NEVERMARRY", "N", 8, 0], ["MARRIED", "N", 9, 0], ["SEPARATED", "N", 7, 0], ["WIDOWED", "N", 8, 0], ["DIVORCED", "N", 8, 0], ["HSEHLD_1_M", "N", 8, 0], ["HSEHLD_1_F", "N", 8, 0], ["MARHH_CHD", "N", 8, 0], ["MARHH_NO_C", "N", 8, 0], ["MHH_CHILD", "N", 7, 0], ["FHH_CHILD", "N", 7, 0], ["HSE_UNITS", "N", 9, 0], ["VACANT", "N", 7, 0], ["OWNER_OCC", "N", 8, 0], ["RENTER_OCC", "N", 8, 0], ["MEDIAN_VAL", "N", 7, 0], ["MEDIANRENT", "N", 4, 0], ["UNITS_1DET", "N", 8, 0], ["UNITS_1ATT", "N", 7, 0], ["UNITS2", "N", 7, 0], ["UNITS3_9", "N", 8, 0], ["UNITS10_49", "N", 8, 0], ["UNITS50_UP", "N", 8, 0], ["MOBILEHOME", "N", 7, 0]] Expecting nothing ********************************************************************** File "README.txt", line 207, in README.txt Failed example: assert fields == [("DeletionFlag", "C", 1, 0), ["AREA", "N", 18, 5], ["BKG_KEY", "C", 12, 0], ["POP1990", "N", 9, 0], ["POP90_SQMI", "N", 10, 1], ["HOUSEHOLDS", "N", 9, 0], ["MALES", "N", 9, 0], ["FEMALES", "N", 9, 0], ["WHITE", "N", 9, 0], ["BLACK", "N", 8, 0], ["AMERI_ES", "N", 7, 0], ["ASIAN_PI", "N", 8, 0], ["OTHER", "N", 8, 0], ["HISPANIC", "N", 8, 0], ["AGE_UNDER5", "N", 8, 0], ["AGE_5_17", "N", 8, 0], ["AGE_18_29", "N", 8, 0], ["AGE_30_49", "N", 8, 0], ["AGE_50_64", "N", 8, 0], ["AGE_65_UP", "N", 8, 0], ["NEVERMARRY", "N", 8, 0], ["MARRIED", "N", 9, 0], ["SEPARATED", "N", 7, 0], ["WIDOWED", "N", 8, 0], ["DIVORCED", "N", 8, 0], ["HSEHLD_1_M", "N", 8, 0], ["HSEHLD_1_F", "N", 8, 0], ["MARHH_CHD", "N", 8, 0], ["MARHH_NO_C", "N", 8, 0], ["MHH_CHILD", "N", 7, 0], ["FHH_CHILD", "N", 7, 0], ["HSE_UNITS", "N", 9, 0], ["VACANT", "N", 7, 0], ["OWNER_OCC", "N", 8, 0], ["RENTER_OCC", "N", 8, 0], ["MEDIAN_VAL", "N", 7, 0], ["MEDIANRENT", "N", 4, 0], ["UNITS_1DET", "N", 8, 0], ["UNITS_1ATT", "N", 7, 0], ["UNITS2", "N", 7, 0], ["UNITS3_9", "N", 8, 0], ["UNITS10_49", "N", 8, 0], ["UNITS50_UP", "N", 8, 0], ["MOBILEHOME", "N", 7, 0]] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in assert fields == [("DeletionFlag", "C", 1, 0), ["AREA", "N", 18, 5], NameError: name 'fields' is not defined Trying: records = sf.records() Expecting nothing ********************************************************************** File "README.txt", line 228, in README.txt Failed example: records = sf.records() Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in records = sf.records() NameError: name 'sf' is not defined Trying: len(records) Expecting: 663 ********************************************************************** File "README.txt", line 230, in README.txt Failed example: len(records) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in len(records) NameError: name 'records' is not defined Trying: len(list(sf.iterRecords())) Expecting: 663 ********************************************************************** File "README.txt", line 236, in README.txt Failed example: len(list(sf.iterRecords())) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in len(list(sf.iterRecords())) NameError: name 'sf' is not defined Trying: records[3][1:3] Expecting: ['060750601001', 4715] ********************************************************************** File "README.txt", line 246, in README.txt Failed example: records[3][1:3] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in records[3][1:3] NameError: name 'records' is not defined Trying: rec = sf.record(3) Expecting nothing ********************************************************************** File "README.txt", line 251, in README.txt Failed example: rec = sf.record(3) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in rec = sf.record(3) NameError: name 'sf' is not defined Trying: rec[1:3] Expecting: ['060750601001', 4715] ********************************************************************** File "README.txt", line 253, in README.txt Failed example: rec[1:3] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in rec[1:3] NameError: name 'rec' is not defined Trying: shapeRecs = sf.shapeRecords() Expecting nothing ********************************************************************** File "README.txt", line 268, in README.txt Failed example: shapeRecs = sf.shapeRecords() Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in shapeRecs = sf.shapeRecords() NameError: name 'sf' is not defined Trying: shapeRecs[3].record[1:3] Expecting: ['060750601001', 4715] ********************************************************************** File "README.txt", line 271, in README.txt Failed example: shapeRecs[3].record[1:3] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in shapeRecs[3].record[1:3] NameError: name 'shapeRecs' is not defined Trying: points = shapeRecs[3].shape.points[0:2] Expecting nothing ********************************************************************** File "README.txt", line 276, in README.txt Failed example: points = shapeRecs[3].shape.points[0:2] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in points = shapeRecs[3].shape.points[0:2] NameError: name 'shapeRecs' is not defined Trying: len(points) Expecting: 2 ********************************************************************** File "README.txt", line 278, in README.txt Failed example: len(points) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in len(points) NameError: name 'points' is not defined Trying: shapeRec = sf.shapeRecord(3) Expecting nothing ********************************************************************** File "README.txt", line 284, in README.txt Failed example: shapeRec = sf.shapeRecord(3) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in shapeRec = sf.shapeRecord(3) NameError: name 'sf' is not defined Trying: shapeRec.record[1:3] Expecting: ['060750601001', 4715] ********************************************************************** File "README.txt", line 288, in README.txt Failed example: shapeRec.record[1:3] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in shapeRec.record[1:3] NameError: name 'shapeRec' is not defined Trying: points = shapeRec.shape.points[0:2] Expecting nothing ********************************************************************** File "README.txt", line 291, in README.txt Failed example: points = shapeRec.shape.points[0:2] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in points = shapeRec.shape.points[0:2] NameError: name 'shapeRec' is not defined Trying: len(points) Expecting: 2 ********************************************************************** File "README.txt", line 293, in README.txt Failed example: len(points) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in len(points) NameError: name 'points' is not defined Trying: w = shapefile.Writer() Expecting nothing ok Trying: w = shapefile.Writer(shapeType=1) Expecting nothing ok Trying: w = shapefile.Writer(shapefile.POINT) Expecting nothing ok Trying: w.shapeType Expecting: 1 ok Trying: w.shapeType = 3 Expecting nothing ok Trying: w.shapeType Expecting: 3 ok Trying: w.autoBalance = 1 Expecting nothing ok Trying: w = shapefile.Writer() Expecting nothing ok Trying: w.null() Expecting nothing ok Trying: assert w.shapes()[0].shapeType == shapefile.NULL Expecting nothing ok Trying: w = shapefile.Writer(shapefile.POINT) Expecting nothing ok Trying: w.point(122, 37) # No elevation or measure values Expecting nothing ok Trying: w.shapes()[0].points Expecting: [[122, 37, 0, 0]] ok Trying: w.point(118, 36, 4, 8) Expecting nothing ok Trying: w.shapes()[1].points Expecting: [[118, 36, 4, 8]] ok Trying: w = shapefile.Writer(shapefile.POLYGON) Expecting nothing ok Trying: w.poly(shapeType=3, parts=[[[122,37,4,9], [117,36,3,4]], [[115,32,8,8], [118,20,6,4], [113,24]]]) Expecting nothing ok Trying: w = shapefile.Writer(shapefile.POLYGON) Expecting nothing ok Trying: outer_ring = [[10,10],[50,50],[100,10],[50,-50],[10,10]] Expecting nothing ok Trying: inner_ring = [[40,10],[50,30],[70,10],[50,-30],[40,10]] Expecting nothing ok Trying: inner_ring.reverse() Expecting nothing ok Trying: # Clockwise ring shapefile.signed_area(outer_ring) Expecting: -4500.0 ok Trying: # Counter-clockwise ring shapefile.signed_area(inner_ring) Expecting: 900.0 ok Trying: w = shapefile.Writer(shapeType=shapefile.POLYGONZ) Expecting nothing ok Trying: w.poly([[[-89.0, 33, 12], [-90, 31, 11], [-91, 30, 12]]], shapeType=15) Expecting nothing ok Trying: w.field("NAME") Expecting nothing ok Trying: w.record("PolyZTest") Expecting nothing ok Trying: w.save("shapefiles/test/MyPolyZ") Expecting nothing ok Trying: r = shapefile.Reader("shapefiles/test/MyPolyZ") Expecting nothing ok Trying: s = r.shape(0) Expecting nothing ok Trying: s.points Expecting: [[-89.0, 33.0], [-90.0, 31.0], [-91.0, 30.0], [-89.0, 33.0]] ok Trying: s.z Expecting: [12.0, 11.0, 12.0, 12.0] ok Trying: w = shapefile.Writer(shapefile.POINT) Expecting nothing ok Trying: w.point(1,1) Expecting nothing ok Trying: w.point(3,1) Expecting nothing ok Trying: w.point(4,3) Expecting nothing ok Trying: w.point(2,2) Expecting nothing ok Trying: w.field('FIRST_FLD') Expecting nothing ok Trying: w.field('SECOND_FLD','C','40') Expecting nothing ok Trying: w.record('First','Point') Expecting nothing ok Trying: w.record('Second','Point') Expecting nothing ok Trying: w.record('Third','Point') Expecting nothing ok Trying: w.record('Fourth','Point') Expecting nothing ok Trying: w.save('shapefiles/test/point') Expecting nothing ok Trying: w = shapefile.Writer(shapefile.POLYGON) Expecting nothing ok Trying: w.poly(parts=[[[1,5],[5,5],[5,1],[3,3],[1,1]]]) Expecting nothing ok Trying: w.field('FIRST_FLD','C','40') Expecting nothing ok Trying: w.field('SECOND_FLD','C','40') Expecting nothing ok Trying: w.record('First','Polygon') Expecting nothing ok Trying: w.save('shapefiles/test/polygon') Expecting nothing ok Trying: w = shapefile.Writer(shapefile.POLYLINE) Expecting nothing ok Trying: w.line(parts=[[[1,5],[5,5],[5,1],[3,3],[1,1]]]) Expecting nothing ok Trying: w.poly(parts=[[[1,3],[5,3]]], shapeType=shapefile.POLYLINE) Expecting nothing ok Trying: w.field('FIRST_FLD','C','40') Expecting nothing ok Trying: w.field('SECOND_FLD','C','40') Expecting nothing ok Trying: w.record('First','Line') Expecting nothing ok Trying: w.record('Second','Line') Expecting nothing ok Trying: w.save('shapefiles/test/line') Expecting nothing ok Trying: w = shapefile.Writer(shapefile.POLYLINE) Expecting nothing ok Trying: w.line(parts=[[[1,5],[5,5],[5,1],[3,3],[1,1]]]) Expecting nothing ok Trying: w.field('FIRST_FLD','C','40') Expecting nothing ok Trying: w.field('SECOND_FLD','C','40') Expecting nothing ok Trying: w.record(FIRST_FLD='First', SECOND_FLD='Line') Expecting nothing ok Trying: w.save('shapefiles/test/line') Expecting nothing ok Trying: targetName = w.save() Expecting nothing ok Trying: assert("shapefile_" in targetName) Expecting nothing ok Trying: try: from StringIO import StringIO except ImportError: from io import BytesIO as StringIO Expecting nothing ok Trying: shp = StringIO() Expecting nothing ok Trying: shx = StringIO() Expecting nothing ok Trying: dbf = StringIO() Expecting nothing ok Trying: w.saveShp(shp) Expecting nothing ok Trying: w.saveShx(shx) Expecting nothing ok Trying: w.saveDbf(dbf) Expecting nothing ok Trying: shp = shx = dbf = None Expecting nothing ok Trying: e = shapefile.Editor(shapefile="shapefiles/test/point.shp") Expecting nothing ok Trying: e.point(0,0,10,2) Expecting nothing ok Trying: e.record("Appended","Point") Expecting nothing ok Trying: e.shapeType = shapefile.POINTZ Expecting nothing ok Trying: e.save('shapefiles/test/point') Expecting nothing ok Trying: e = shapefile.Editor(shapefile="shapefiles/test/point.shp") Expecting nothing ok Trying: for s in enumerate(e.records): i, record = s if record[0] == "Appended": geom = e._shapes[i] # Change the y value to 5 geom.points[0][1] = 5 # Change the z value to 9 if hasattr(geom, "z"): geom.z = (9,) else: geom.points[0][2] = 9 Expecting nothing ok Trying: e.save('shapefiles/test/point') Expecting nothing ok Trying: e = shapefile.Editor(shapefile="shapefiles/test/line.shp") Expecting nothing ok Trying: e.line(parts=[[[10,5],[15,5],[15,1],[13,3],[11,1]]]) Expecting nothing ok Trying: e.record('Appended','Line') Expecting nothing ok Trying: e.save('shapefiles/test/line') Expecting nothing ok Trying: e = None Expecting nothing ok Trying: e = shapefile.Editor(shapefile="shapefiles/test/polygon.shp") Expecting nothing ok Trying: e.poly(parts=[[[5.1,5],[9.9,5],[9.9,1],[7.5,3],[5.1,1]]]) Expecting nothing ok Trying: e.record("Appended","Polygon") Expecting nothing ok Trying: e.save('shapefiles/test/polygon') Expecting nothing ok Trying: e = None Expecting nothing ok Trying: e = shapefile.Editor(shapefile="shapefiles/test/point.shp") Expecting nothing ok Trying: e.delete(0) Expecting nothing ok Trying: e.save('shapefiles/test/point') Expecting nothing ok Trying: e = None Expecting nothing ok Trying: e = shapefile.Editor(shapefile="shapefiles/test/polygon.shp") Expecting nothing ok Trying: e.delete(-1) Expecting nothing ok Trying: e.save('shapefiles/test/polygon') Expecting nothing ok Trying: e = None Expecting nothing ok Trying: s = sf.shape(0) Expecting nothing ********************************************************************** File "README.txt", line 652, in README.txt Failed example: s = sf.shape(0) Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in s = sf.shape(0) NameError: name 'sf' is not defined Trying: s.__geo_interface__["type"] Expecting: 'MultiPolygon' ********************************************************************** File "README.txt", line 653, in README.txt Failed example: s.__geo_interface__["type"] Exception raised: Traceback (most recent call last): File "/usr/lib/python2.7/doctest.py", line 1289, in __run compileflags, 1) in test.globs File "", line 1, in s.__geo_interface__["type"] AttributeError: 'tuple' object has no attribute '__geo_interface__' ********************************************************************** 1 items had failures: 37 of 138 in README.txt 138 tests in 1 items. 101 passed and 37 failed. ***Test Failed*** 37 failures. Processing files: pyshp-1.2.1-1.el7.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.8G6duT + exit 0 + umask 022 + cd /builddir/build/BUILD + cd pyshp-1.2.1 + DOCDIR=/builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr/share/doc/pyshp-1.2.1 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr/share/doc/pyshp-1.2.1 + cp -pr changelog.txt /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr/share/doc/pyshp-1.2.1 + cp -pr README.txt /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch/usr/share/doc/pyshp-1.2.1 + exit 0 Provides: pyshp = 1.2.1-1.el7 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: python(abi) = 2.7 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch Wrote: /builddir/build/RPMS/pyshp-1.2.1-1.el7.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.e2OGG6 + umask 022 + cd /builddir/build/BUILD + cd pyshp-1.2.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/pyshp-1.2.1-1.el7.noarch + exit 0 Child return code was: 0 LEAVE do -->