Skip to content

Instantly share code, notes, and snippets.

@rbrito
Created June 4, 2015 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rbrito/59736ed280e569619e84 to your computer and use it in GitHub Desktop.
Save rbrito/59736ed280e569619e84 to your computer and use it in GitHub Desktop.
Output from tox on edx-downloader
$ tox
GLOB sdist-make: /home/rbrito/Desktop/cursos/edx-downloader/setup.py
py27 inst-nodeps: /home/rbrito/Desktop/cursos/edx-downloader/.tox/dist/edx-dl-0.0.zip
py27 runtests: PYTHONHASHSEED='3787261654'
py27 runtests: commands[0] | py.test -v --junitxml=/home/rbrito/Desktop/cursos/edx-downloader/.tox/py27/log/result.xml .
======================================================= test session starts ========================================================
platform linux2 -- Python 2.7.10 -- py-1.4.28 -- pytest-2.7.1 -- /home/rbrito/Desktop/cursos/edx-downloader/.tox/py27/bin/python2.7
rootdir: /home/rbrito/Desktop/cursos/edx-downloader, inifile:
collected 7 items
test_edx_dl.py::TestEdX::test_extract_units_from_html_multiple_units PASSED
test_edx_dl.py::TestEdX::test_extract_units_from_html_single_unit PASSED
test_edx_dl.py::TestEdX::test_failed_login PASSED
test_parsing.py::TestParsing::test_abridged01_json_subtitle PASSED
test_parsing.py::TestParsing::test_abridged02_json_subtitle PASSED
test_parsing.py::TestParsing::test_empty_json_subtitle PASSED
test_parsing.py::TestParsing::test_minimal_json_subtitle <- ../../../../../usr/lib/python2.7/unittest/case.py SKIPPED
--------------------- generated xml file: /home/rbrito/Desktop/cursos/edx-downloader/.tox/py27/log/result.xml ----------------------
=============================================== 6 passed, 1 skipped in 2.22 seconds ================================================
py34 inst-nodeps: /home/rbrito/Desktop/cursos/edx-downloader/.tox/dist/edx-dl-0.0.zip
py34 runtests: PYTHONHASHSEED='3787261654'
py34 runtests: commands[0] | py.test -v --junitxml=/home/rbrito/Desktop/cursos/edx-downloader/.tox/py34/log/result.xml .
======================================================= test session starts ========================================================
platform linux -- Python 3.4.3 -- py-1.4.28 -- pytest-2.7.1 -- /home/rbrito/Desktop/cursos/edx-downloader/.tox/py34/bin/python3.4
rootdir: /home/rbrito/Desktop/cursos/edx-downloader, inifile:
collected 7 items
test_edx_dl.py::TestEdX::test_extract_units_from_html_multiple_units PASSED
test_edx_dl.py::TestEdX::test_extract_units_from_html_single_unit PASSED
test_edx_dl.py::TestEdX::test_failed_login PASSED
test_parsing.py::TestParsing::test_abridged01_json_subtitle PASSED
test_parsing.py::TestParsing::test_abridged02_json_subtitle PASSED
test_parsing.py::TestParsing::test_empty_json_subtitle PASSED
test_parsing.py::TestParsing::test_minimal_json_subtitle SKIPPED
--------------------- generated xml file: /home/rbrito/Desktop/cursos/edx-downloader/.tox/py34/log/result.xml ----------------------
=============================================== 6 passed, 1 skipped in 1.46 seconds ================================================
pypy inst-nodeps: /home/rbrito/Desktop/cursos/edx-downloader/.tox/dist/edx-dl-0.0.zip
pypy runtests: PYTHONHASHSEED='3787261654'
pypy runtests: commands[0] | py.test -v --junitxml=/home/rbrito/Desktop/cursos/edx-downloader/.tox/pypy/log/result.xml .
======================================================= test session starts ========================================================
platform linux2 -- Python 2.7.9[pypy-2.5.1-final] -- py-1.4.28 -- pytest-2.7.1 -- /home/rbrito/Desktop/cursos/edx-downloader/.tox/pypy/bin/pypy
rootdir: /home/rbrito/Desktop/cursos/edx-downloader, inifile:
collected 7 items
test_edx_dl.py::TestEdX::test_extract_units_from_html_multiple_units PASSED
test_edx_dl.py::TestEdX::test_extract_units_from_html_single_unit PASSED
test_edx_dl.py::TestEdX::test_failed_login PASSED
test_parsing.py::TestParsing::test_abridged01_json_subtitle PASSED
test_parsing.py::TestParsing::test_abridged02_json_subtitle PASSED
test_parsing.py::TestParsing::test_empty_json_subtitle PASSED
test_parsing.py::TestParsing::test_minimal_json_subtitle <- ../../../../../usr/lib/pypy/lib-python/2.7/unittest/case.py SKIPPED
--------------------- generated xml file: /home/rbrito/Desktop/cursos/edx-downloader/.tox/pypy/log/result.xml ----------------------
=============================================== 6 passed, 1 skipped in 1.88 seconds ================================================
_____________________________________________________________ summary ______________________________________________________________
py27: commands succeeded
py34: commands succeeded
pypy: commands succeeded
congratulations :)
@iemejia
Copy link

iemejia commented Jun 4, 2015

This is the output of my execution, maybe it is an issue of the version I am using (2.0.1) instlled via pip.

$ tox --version
2.0.1 imported from /usr/local/lib/python2.7/dist-packages/tox/__init__.pyc

$ tox 
GLOB sdist-make: /home/ismael/projects/edx-downloader/setup.py
ERROR: invocation failed (exit code 1), logfile: /home/ismael/projects/edx-downloader/.tox/log/tox-0.log
ERROR: actionid: tox
msg: packaging
cmdargs: ['/usr/bin/python', local('/home/ismael/projects/edx-downloader/setup.py'), 'sdist', '--formats=zip', '--dist-dir', local('/home/ismael/projects/edx-downloader/.tox/dist')]
env: None

Traceback (most recent call last):
  File "setup.py", line 33, in <module>
    long_description=open('README.rst', 'r').read(),
IOError: [Errno 2] No such file or directory: 'README.rst'

ERROR: FAIL could not package project - v = InvocationError('/usr/bin/python /home/ismael/projects/edx-downloader/setup.py sdist --formats=zip --dist-dir /home/ismael/projects/edx-downloader/.tox/dist (see /home/ismael/projects/edx-downloader/.tox/log/tox-0.log)', 1)

@iemejia
Copy link

iemejia commented Jun 4, 2015

I uninstalled it and reinstalled it via apt-get, and the same results:

$ sudo apt-get install python-tox
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  python-py python-virtualenv
Suggested packages:
  python-pytest python-pytest-xdist
The following NEW packages will be installed:
  python-py python-tox python-virtualenv
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,684 kB of archives.
After this operation, 3,017 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://bouyguestelecom.ubuntu.lafibre.info/ubuntu/ trusty/main python-py all 1.4.20-1 [62.4 kB]
Get:2 http://bouyguestelecom.ubuntu.lafibre.info/ubuntu/ trusty/universe python-virtualenv all 1.11.4-1 [1,485 kB]
Get:3 http://bouyguestelecom.ubuntu.lafibre.info/ubuntu/ trusty-proposed/universe python-tox all 1.6.0-1ubuntu1 [136 kB]
Fetched 1,684 kB in 2min 1s (13.9 kB/s)                                        
Selecting previously unselected package python-py.
(Reading database ... 395669 files and directories currently installed.)
Preparing to unpack .../python-py_1.4.20-1_all.deb ...
Unpacking python-py (1.4.20-1) ...
Selecting previously unselected package python-virtualenv.
Preparing to unpack .../python-virtualenv_1.11.4-1_all.deb ...
Unpacking python-virtualenv (1.11.4-1) ...
Selecting previously unselected package python-tox.
Preparing to unpack .../python-tox_1.6.0-1ubuntu1_all.deb ...
Unpacking python-tox (1.6.0-1ubuntu1) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for doc-base (0.10.5) ...
Processing 1 added doc-base file...
Registering documents with scrollkeeper...
Setting up python-py (1.4.20-1) ...
Setting up python-virtualenv (1.11.4-1) ...
Setting up python-tox (1.6.0-1ubuntu1) ...

$ tox 
GLOB sdist-make: /home/ismael/projects/edx-downloader/setup.py
ERROR: invocation failed, logfile: /home/ismael/projects/edx-downloader/.tox/log/tox-0.log
ERROR: actionid=tox
msg=packaging
cmdargs=['/usr/bin/python', local('/home/ismael/projects/edx-downloader/setup.py'), 'sdist', '--formats=zip', '--dist-dir', local('/home/ismael/projects/edx-downloader/.tox/dist')]
env=None
Traceback (most recent call last):
  File "setup.py", line 33, in <module>
    long_description=open('README.rst', 'r').read(),
IOError: [Errno 2] No such file or directory: 'README.rst'

ERROR: FAIL could not package project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment