had to unpack and remove by hand: `helpers.pyc` then setup worked
Activity
scanny commentedon Apr 20, 2015
What was the full path and what symptom did you observe when it was in place?
Qu-Bit commentedon Apr 20, 2015
trying install
$ sudo pypi-install python-docx[sudo] password for mxyzptlk:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running the following command in directory: deb_dist/tmp_py2dsc/python-docx-0.8.5
/usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/tmp/user/0/tmpGTOP_A/deb_dist --use-premade-distfile=/tmp/user/0/tmpGTOP_A/python-docx-0.8.5.tar.gz bdist_deb
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
running sdist_dsc
running egg_info
writing requirements to python_docx.egg-info/requires.txt
writing python_docx.egg-info/PKG-INFO
writing top-level names to python_docx.egg-info/top_level.txt
writing dependency_links to python_docx.egg-info/dependency_links.txt
reading manifest file 'python_docx.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'python_docx.egg-info/SOURCES.txt'
Traceback (most recent call last):
File "setup.py", line 81, in
setup(**params)
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/lib/python2.7/dist-packages/stdeb/command/sdist_dsc.py", line 123, in run
raise RuntimeError('original source dist cannot '
RuntimeError: original source dist cannot contain .pyc files
ERROR running: /usr/bin/python setup.py --command-packages stdeb.command sdist_dsc --dist-dir=/tmp/user/0/tmpGTOP_A/deb_dist --use-premade-distfile=/tmp/user/0/tmpGTOP_A/python-docx-0.8.5.tar.gz bdist_deb
ERROR in deb_dist/tmp_py2dsc/python-docx-0.8.5
Traceback (most recent call last):
File "/usr/bin/pypi-install", line 67, in
main()
File "/usr/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 python-docx-0.8.5.tar.gz' returned non-zero exit status 1
look at the source package
$ tar -xzvf python-docx-0.8.5.tar.gz$ cd python-docx-0.8.5/try a build inside
$
python setup.py --command-packages=stdeb.command bdist_deb... RuntimeError: original source dist cannot contain .pyc fileswhere is it ?
$ find . -name '*.pyc'./features/steps/helpers.pyc
./deb_dist/tmp_sdist_dsc/python-docx-0.8.5/features/steps/helpers.pyc
./deb_dist/python-docx-0.8.5/features/steps/helpers.pyc
removal of the file
./features/steps/helpers.pycscanny commentedon Aug 18, 2018
Fixed in release v0.8.7 circa Aug 18 2018.
fix: #175 refine MANIFEST.ini
fix: #175 refine MANIFEST.ini