stanford-rc / sasutils

Serial Attached SCSI (SAS) Linux utilities and Python library
Apache License 2.0
62 stars 17 forks source link

.deb from mkdeb.sh: SyntaxError: invalid syntax #4

Closed joachimtingvold closed 7 years ago

joachimtingvold commented 7 years ago

Hi,

Trying to install this as a .deb-package, but yields an error trying to install the .deb-file.

root@gridlock:~# cd bin/
root@gridlock:~/bin# git clone https://github.com/stanford-rc/sasutils.git
Cloning into 'sasutils'...
remote: Counting objects: 473, done.
remote: Total 473 (delta 0), reused 0 (delta 0), pack-reused 473
Receiving objects: 100% (473/473), 91.73 KiB | 0 bytes/s, done.
Resolving deltas: 100% (328/328), done.
Checking connectivity... done.
root@gridlock:~/bin# cd sasutils/
root@gridlock:~/bin/sasutils# apt-get install python3-setuptools python3-stdeb

Then building it;

root@gridlock:~/bin/sasutils# ./mkdeb.sh 
running bdist_deb
running sdist_dsc
running egg_info
creating sasutils.egg-info
writing sasutils.egg-info/PKG-INFO
writing dependency_links to sasutils.egg-info/dependency_links.txt
writing top-level names to sasutils.egg-info/top_level.txt
writing entry points to sasutils.egg-info/entry_points.txt
writing manifest file 'sasutils.egg-info/SOURCES.txt'
reading manifest file 'sasutils.egg-info/SOURCES.txt'
writing manifest file 'sasutils.egg-info/SOURCES.txt'
running sdist
running check
creating sasutils-0.3.2
creating sasutils-0.3.2/sasutils
creating sasutils-0.3.2/sasutils.egg-info
creating sasutils-0.3.2/sasutils/cli
making hard links in sasutils-0.3.2...
hard linking README.rst -> sasutils-0.3.2
hard linking setup.py -> sasutils-0.3.2
hard linking sasutils/__init__.py -> sasutils-0.3.2/sasutils
hard linking sasutils/sas.py -> sasutils-0.3.2/sasutils
hard linking sasutils/scsi.py -> sasutils-0.3.2/sasutils
hard linking sasutils/ses.py -> sasutils-0.3.2/sasutils
hard linking sasutils/smp.py -> sasutils-0.3.2/sasutils
hard linking sasutils/sysfs.py -> sasutils-0.3.2/sasutils
hard linking sasutils/vpd.py -> sasutils-0.3.2/sasutils
hard linking sasutils.egg-info/PKG-INFO -> sasutils-0.3.2/sasutils.egg-info
hard linking sasutils.egg-info/SOURCES.txt -> sasutils-0.3.2/sasutils.egg-info
hard linking sasutils.egg-info/dependency_links.txt -> sasutils-0.3.2/sasutils.egg-info
hard linking sasutils.egg-info/entry_points.txt -> sasutils-0.3.2/sasutils.egg-info
hard linking sasutils.egg-info/top_level.txt -> sasutils-0.3.2/sasutils.egg-info
hard linking sasutils/cli/__init__.py -> sasutils-0.3.2/sasutils/cli
hard linking sasutils/cli/sas_counters.py -> sasutils-0.3.2/sasutils/cli
hard linking sasutils/cli/sas_devices.py -> sasutils-0.3.2/sasutils/cli
hard linking sasutils/cli/sas_discover.py -> sasutils-0.3.2/sasutils/cli
hard linking sasutils/cli/sas_mpath_snic_alias.py -> sasutils-0.3.2/sasutils/cli
hard linking sasutils/cli/sas_sd_snic_alias.py -> sasutils-0.3.2/sasutils/cli
hard linking sasutils/cli/ses_report.py -> sasutils-0.3.2/sasutils/cli
Writing sasutils-0.3.2/setup.cfg
creating dist
Creating tar archive
removing 'sasutils-0.3.2' (and everything under it)
This version of stdeb requires python-all >= 2.6.6-3, but you do not have this package installed. Could not check compatibility.
CALLING dpkg-source -b sasutils-0.3.2 sasutils_0.3.2.orig.tar.gz (in dir deb_dist)
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building sasutils using existing ./sasutils_0.3.2.orig.tar.gz
dpkg-source: info: building sasutils in sasutils_0.3.2-1.debian.tar.xz
dpkg-source: info: building sasutils in sasutils_0.3.2-1.dsc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package sasutils
dpkg-buildpackage: source version 0.3.2-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Stephane Thiell <sthiell@stanford.edu>
 dpkg-source --before-build sasutils-0.3.2
 fakeroot debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:170: python3.4 setup.py clean 
running clean
removing '/root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.4' does not exist -- can't clean it
   dh_clean -O--buildsystem=pybuild
 dpkg-source -b sasutils-0.3.2
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building sasutils using existing ./sasutils_0.3.2.orig.tar.gz
dpkg-source: warning: ignoring deletion of directory sasutils.egg-info
dpkg-source: warning: ignoring deletion of file sasutils.egg-info/dependency_links.txt, use --include-removal to override
dpkg-source: warning: ignoring deletion of file sasutils.egg-info/top_level.txt, use --include-removal to override
dpkg-source: warning: ignoring deletion of file sasutils.egg-info/entry_points.txt, use --include-removal to override
dpkg-source: warning: ignoring deletion of file sasutils.egg-info/PKG-INFO, use --include-removal to override
dpkg-source: warning: ignoring deletion of file sasutils.egg-info/SOURCES.txt, use --include-removal to override
dpkg-source: info: building sasutils in sasutils_0.3.2-1.debian.tar.xz
dpkg-source: info: building sasutils in sasutils_0.3.2-1.dsc
 dpkg-genchanges -S -sa >../sasutils_0.3.2-1_source.changes
dpkg-genchanges: including full source code in upload
 dpkg-source --after-build sasutils-0.3.2
dpkg-buildpackage: full upload (original source is included)
dpkg-source: warning: extracting unsigned source package (sasutils_0.3.2-1.dsc)
dpkg-source: info: extracting sasutils in sasutils-0.3.2
dpkg-source: info: unpacking sasutils_0.3.2.orig.tar.gz
dpkg-source: info: unpacking sasutils_0.3.2-1.debian.tar.xz
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package sasutils
dpkg-buildpackage: source version 0.3.2-1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Stephane Thiell <sthiell@stanford.edu>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build sasutils-0.3.2
 fakeroot debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:170: python3.4 setup.py clean 
running clean
removing '/root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.4' does not exist -- can't clean it
   dh_clean -O--buildsystem=pybuild
 debian/rules build
dh build --with python3 --buildsystem=pybuild
   dh_testdir -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:170: python3.4 setup.py config 
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:170: /usr/bin/python3 setup.py build 
running build
running build_py
creating /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils
copying sasutils/sas.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils
copying sasutils/scsi.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils
copying sasutils/sysfs.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils
copying sasutils/ses.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils
copying sasutils/smp.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils
copying sasutils/vpd.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils
copying sasutils/__init__.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils
creating /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli
copying sasutils/cli/sas_counters.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli
copying sasutils/cli/ses_report.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli
copying sasutils/cli/sas_devices.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli
copying sasutils/cli/sas_mpath_snic_alias.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli
copying sasutils/cli/__init__.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli
copying sasutils/cli/sas_sd_snic_alias.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli
copying sasutils/cli/sas_discover.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:170: cd /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build; python3.4 -m unittest discover -v 

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK
 fakeroot debian/rules binary
dh binary --with python3 --buildsystem=pybuild
   dh_testroot -O--buildsystem=pybuild
   dh_prep -O--buildsystem=pybuild
   dh_auto_install -O--buildsystem=pybuild
I: pybuild base:170: /usr/bin/python3 setup.py install --root /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils 
running install
running build
running build_py
running install_lib
creating /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr
creating /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib
creating /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4
creating /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages
creating /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/sysfs.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/__init__.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/ses.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/vpd.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/smp.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/scsi.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/sas.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils
creating /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli/sas_sd_snic_alias.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli/sas_devices.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli/sas_counters.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli/sas_mpath_snic_alias.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli/ses_report.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli/__init__.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli
copying /root/bin/sasutils/deb_dist/sasutils-0.3.2/.pybuild/pythonX.Y_3.4/build/sasutils/cli/sas_discover.py -> /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/sysfs.py to sysfs.cpython-34.pyc
  File "/usr/lib/python3.4/dist-packages/sasutils/sysfs.py", line 131
    except IOError, exc:
                  ^
SyntaxError: invalid syntax

byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/__init__.py to __init__.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/ses.py to ses.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/vpd.py to vpd.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/smp.py to smp.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/scsi.py to scsi.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/sas.py to sas.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli/sas_sd_snic_alias.py to sas_sd_snic_alias.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli/sas_devices.py to sas_devices.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli/sas_counters.py to sas_counters.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli/sas_mpath_snic_alias.py to sas_mpath_snic_alias.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli/ses_report.py to ses_report.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli/__init__.py to __init__.cpython-34.pyc
byte-compiling /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils/cli/sas_discover.py to sas_discover.cpython-34.pyc
running install_egg_info
running egg_info
creating sasutils.egg-info
writing dependency_links to sasutils.egg-info/dependency_links.txt
writing entry points to sasutils.egg-info/entry_points.txt
writing sasutils.egg-info/PKG-INFO
writing top-level names to sasutils.egg-info/top_level.txt
writing manifest file 'sasutils.egg-info/SOURCES.txt'
reading manifest file 'sasutils.egg-info/SOURCES.txt'
writing manifest file 'sasutils.egg-info/SOURCES.txt'
Copying sasutils.egg-info to /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/lib/python3.4/dist-packages/sasutils-0.3.2.egg-info
running install_scripts
Installing sas_mpath_snic_alias script to /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/bin
Installing sas_sd_snic_alias script to /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/bin
Installing sas_counters script to /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/bin
Installing sas_devices script to /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/bin
Installing sas_discover script to /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/bin
Installing ses_report script to /root/bin/sasutils/deb_dist/sasutils-0.3.2/debian/python3-sasutils/usr/bin
   dh_installdocs -O--buildsystem=pybuild
   dh_installchangelogs -O--buildsystem=pybuild
   dh_python3 -O--buildsystem=pybuild
   dh_perl -O--buildsystem=pybuild
   dh_link -O--buildsystem=pybuild
   dh_compress -O--buildsystem=pybuild
   dh_fixperms -O--buildsystem=pybuild
   dh_installdeb -O--buildsystem=pybuild
   dh_gencontrol -O--buildsystem=pybuild
   dh_md5sums -O--buildsystem=pybuild
   dh_builddeb -O--buildsystem=pybuild
dpkg-deb: building package `python3-sasutils' in `../python3-sasutils_0.3.2-1_all.deb'.
 dpkg-genchanges -b >../sasutils_0.3.2-1_amd64.changes
dpkg-genchanges: binary-only upload (no source code included)
 dpkg-source --after-build sasutils-0.3.2
dpkg-buildpackage: binary-only upload (no source included)

Then installing...

root@gridlock:~/bin/sasutils# dpkg -i deb_dist/python3-sasutils_0.3.2-1_all.deb 
Selecting previously unselected package python3-sasutils.
(Reading database ... 119148 files and directories currently installed.)
Preparing to unpack .../python3-sasutils_0.3.2-1_all.deb ...
Unpacking python3-sasutils (0.3.2-1) ...
Setting up python3-sasutils (0.3.2-1) ...
  File "/usr/lib/python3/dist-packages/sasutils/sysfs.py", line 131
    except IOError, exc:
                  ^
SyntaxError: invalid syntax

dpkg: error processing package python3-sasutils (--install):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 python3-sasutils

Installed python-related packages;

root@gridlock:~/bin/sasutils# dpkg --list|grep python
ii  dh-python                      1.20141111-2                   all          Debian helper tools for packaging Python libraries and applications
ii  libpython-stdlib:amd64         2.7.9-1                        amd64        interactive high-level object-oriented language (default python version)
ii  libpython2.7:amd64             2.7.9-2+deb8u1                 amd64        Shared Python runtime library (version 2.7)
ii  libpython2.7-minimal:amd64     2.7.9-2+deb8u1                 amd64        Minimal subset of the Python language (version 2.7)
ii  libpython2.7-stdlib:amd64      2.7.9-2+deb8u1                 amd64        Interactive high-level object-oriented language (standard library, version 2.7)
ii  libpython3-stdlib:amd64        3.4.2-2                        amd64        interactive high-level object-oriented language (default python3 version)
ii  libpython3.4-minimal:amd64     3.4.2-1                        amd64        Minimal subset of the Python language (version 3.4)
ii  libpython3.4-stdlib:amd64      3.4.2-1                        amd64        Interactive high-level object-oriented language (standard library, version 3.4)
ii  python                         2.7.9-1                        amd64        interactive high-level object-oriented language (default version)
ii  python-apt                     0.9.3.12                       amd64        Python interface to libapt-pkg
ii  python-apt-common              0.9.3.12                       all          Python interface to libapt-pkg (locales)
ii  python-ceph                    0.80.7-2+deb8u2                amd64        Python libraries for the Ceph distributed filesystem
ii  python-chardet                 2.3.0-1                        all          universal character encoding detector for Python2
ii  python-debian                  0.1.27                         all          Python modules to work with Debian-related data formats
ii  python-debianbts               1.12                           all          Python interface to Debian's Bug Tracking System
ii  python-defusedxml              0.4.1-2                        all          XML bomb protection for Python stdlib modules (for Python 2)
ii  python-docutils                0.12+dfsg-1                    all          text processing system for reStructuredText (implemented in Python 2)
ii  python-flask                   0.10.1-2                       all          micro web framework based on Werkzeug, Jinja2 and good intentions
ii  python-ipaddr                  2.1.11-2                       all          Python module for working with IP addresses, both IPv4 and IPv6
ii  python-itsdangerous            0.24+dfsg1-1                   all          Various helpers to pass trusted data to untrusted environment - python 2.x
ii  python-jinja2                  2.7.3-1                        all          small but fast and easy to use stand-alone template engine
ii  python-markupsafe              0.23-1+b1                      amd64        HTML/XHTML/XML string library for Python
ii  python-minimal                 2.7.9-1                        amd64        minimal subset of the Python language (default version)
ii  python-pkg-resources           5.5.1-1                        all          Package Discovery and Resource Access using pkg_resources
ii  python-protobuf                2.6.1-1                        amd64        Python bindings for protocol buffers
ii  python-pyinotify               0.9.4-1                        all          simple Linux inotify Python bindings
ii  python-reportbug               6.6.3                          all          Python modules for interacting with bug tracking systems
ii  python-requests                2.4.3-6                        all          elegant and simple HTTP library for Python2, built for human beings
ii  python-roman                   2.0.0-1                        all          module for generating/analyzing Roman numerals for Python 2
ii  python-six                     1.8.0-1                        all          Python 2 and 3 compatibility library (Python 2 interface)
ii  python-soappy                  0.12.22-1                      all          SOAP Support for Python
ii  python-support                 1.0.15                         all          automated rebuilding support for Python modules
ii  python-talloc                  2.1.2-0+deb8u1                 amd64        hierarchical pool based memory allocator - Python bindings
ii  python-urllib3                 1.9.1-3                        all          HTTP library with thread-safe connection pooling for Python
ii  python-werkzeug                0.9.6+dfsg-1+deb8u1            all          collection of utilities for WSGI applications
ii  python-wstools                 0.4.3-2                        all          WSDL parsing tools Python module
ii  python2.7                      2.7.9-2+deb8u1                 amd64        Interactive high-level object-oriented language (version 2.7)
ii  python2.7-minimal              2.7.9-2+deb8u1                 amd64        Minimal subset of the Python language (version 2.7)
ii  python3                        3.4.2-2                        amd64        interactive high-level object-oriented language (default python3 version)
ii  python3-all                    3.4.2-2                        amd64        package depending on all supported Python 3 runtime versions
ii  python3-chardet                2.3.0-1                        all          universal character encoding detector for Python3
ii  python3-minimal                3.4.2-2                        amd64        minimal subset of the Python language (default python3 version)
ii  python3-pkg-resources          5.5.1-1                        all          Package Discovery and Resource Access using pkg_resources
ii  python3-requests               2.4.3-6                        all          elegant and simple HTTP library for Python3, built for human beings
iF  python3-sasutils               0.3.2-1                        all          Serial Attached SCSI (SAS) Linux utilities
ii  python3-setuptools             5.5.1-1                        all          Python3 Distutils Enhancements
ii  python3-six                    1.8.0-1                        all          Python 2 and 3 compatibility library (Python 3 interface)
ii  python3-stdeb                  0.8.2-4                        all          Python to Debian source package conversion plugins for distutils
ii  python3-urllib3                1.9.1-3                        all          HTTP library with thread-safe connection pooling for Python3
ii  python3.4                      3.4.2-1                        amd64        Interactive high-level object-oriented language (version 3.4)
ii  python3.4-minimal              3.4.2-1                        amd64        Minimal subset of the Python language (version 3.4)
joachimtingvold commented 7 years ago

Works by removing , exc;

root@gridlock:~/bin/sasutils# diff -u /usr/lib/python3/dist-packages/sasutils/sysfs.py.old /usr/lib/python3/dist-packages/sasutils/sysfs.py
--- /usr/lib/python3/dist-packages/sasutils/sysfs.py.old    2017-05-02 19:32:08.380021366 +0200
+++ /usr/lib/python3/dist-packages/sasutils/sysfs.py    2017-05-02 19:34:16.007126348 +0200
@@ -128,7 +128,7 @@
                 found = True
                 with open(path, 'w') as fp:
                     fp.write(str(value))
-            except IOError, exc:
+            except IOError:
                 if not ignore_errors:
                     raise
         if not found and not ignore_errors:
thiell commented 7 years ago

@jallakim Thanks! We'll fix that.