Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pypi-install package always fails on dpkg-source #121

Open
st-claude opened this issue Jun 6, 2016 · 0 comments
Open

pypi-install package always fails on dpkg-source #121

st-claude opened this issue Jun 6, 2016 · 0 comments

Comments

@st-claude
Copy link

Hi

i'm using latest version of stdeb 0.8.5 that i installed by pip

every time i run pypi-install package (pypi-install pyproj in this case) it fails on the dpkg-source

dpkg-source: info: using options from pyproj-1.9.5.1/debian/source/options: --extend-diff-ignore=\.egg-info$
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: info: building pyproj using existing ./pyproj_1.9.5.1.orig.tar.gz
dpkg-source: error: cannot represent change to lib/pyproj/data/FL: binary file contents changed
dpkg-source: error: add lib/pyproj/data/FL in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/MD: binary file contents changed
dpkg-source: error: add lib/pyproj/data/MD in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/TN: binary file contents changed
dpkg-source: error: add lib/pyproj/data/TN in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/WI: binary file contents changed
dpkg-source: error: add lib/pyproj/data/WI in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/WO: binary file contents changed
dpkg-source: error: add lib/pyproj/data/WO in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/alaska: binary file contents changed
dpkg-source: error: add lib/pyproj/data/alaska in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/conus: binary file contents changed
dpkg-source: error: add lib/pyproj/data/conus in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/hawaii: binary file contents changed
dpkg-source: error: add lib/pyproj/data/hawaii in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/null: binary file contents changed
dpkg-source: error: add lib/pyproj/data/null in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/prvi: binary file contents changed
dpkg-source: error: add lib/pyproj/data/prvi in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/stgeorge: binary file contents changed
dpkg-source: error: add lib/pyproj/data/stgeorge in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/stlrnc: binary file contents changed
dpkg-source: error: add lib/pyproj/data/stlrnc in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to lib/pyproj/data/stpaul: binary file contents changed
dpkg-source: error: add lib/pyproj/data/stpaul in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to nad2bin: binary file contents changed
dpkg-source: error: add nad2bin in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to nad2bin.o: binary file contents changed
dpkg-source: error: add nad2bin.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: cannot represent change to src/pj_malloc.o: binary file contents changed
dpkg-source: error: add src/pj_malloc.o in debian/source/include-binaries if you want to store the modified binary in the debian tarball
dpkg-source: error: unrepresentable changes to source
dpkg-buildpackage: error: dpkg-source -b pyproj-1.9.5.1 gave error exit status 2
Traceback (most recent call last):
  File "setup.py", line 118, in <module>
    package_data      = package_data
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/dist-packages/stdeb/command/sdist_dsc.py", line 140, in run
    remove_expanded_source_dir=self.remove_expanded_source_dir,
  File "/usr/local/lib/python2.7/dist-packages/stdeb/util.py", line 1421, in build_dsc
    dpkg_genchanges(cwd=fullpath_repackaged_dirname)
  File "/usr/local/lib/python2.7/dist-packages/stdeb/util.py", line 538, in dpkg_genchanges
    process_command(args,cwd=cwd)
  File "/usr/local/lib/python2.7/dist-packages/stdeb/util.py", line 183, in process_command
    check_call(args, cwd=cwd)
  File "/usr/local/lib/python2.7/dist-packages/stdeb/util.py", line 46, in check_call
    raise CalledProcessError(retcode)
stdeb.util.CalledProcessError: 2
ERROR running: /usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/tmp/tmp3oRBJA/deb_dist --use-premade-distfile=/tmp/tmp3oRBJA/pyproj-1.9.5.1.tar.gz bdist_deb
ERROR in deb_dist/tmp_py2dsc/pyproj-1.9.5.1
Traceback (most recent call last):
  File "/usr/local/bin/pypi-install", line 67, in <module>
    main()
  File "/usr/local/bin/pypi-install", line 53, in main
    subprocess.check_call(cmd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'py2dsc-deb pyproj-1.9.5.1.tar.gz' returned non-zero exit status 1

but if i do :

pypi-download pyproj
py2dsc-deb pyproj-1.9.5.1.tar.gz
cd deb_dist/tmp_py2dsc/pyproj-1.9.5.1
dpkg-buildpackage -kXXXXXXXX -rfakeroot -b (avoiding source)

the package is created

is this something i do wrong or is there a switch to avoid building source ? i'm kind of stuck here and any help would be appreciated :)

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant