Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ivlevdenis/01d6036ed9e7d1d9e00f62f8d451f44e to your computer and use it in GitHub Desktop.
Save ivlevdenis/01d6036ed9e7d1d9e00f62f8d451f44e to your computer and use it in GitHub Desktop.
django-mailbox tox errors
(venv) di-erz@worklap:~/projects/opensource/django-mailbox$ tox
GLOB sdist-make: /home/di-erz/projects/opensource/django-mailbox/setup.py
py27 create: /home/di-erz/projects/opensource/django-mailbox/.tox/py27
py27 installdeps: django, -r/home/di-erz/projects/opensource/django-mailbox/test_requirements.txt
py27 inst: /home/di-erz/projects/opensource/django-mailbox/.tox/dist/django-mailbox-4.5.4.zip
py27 installed: Django==1.11.3,django-mailbox==4.5.4,funcsigs==1.0.2,mock==2.0.0,pbr==3.1.1,pkg-resources==0.0.0,py==1.4.34,pytest==2.9.1,pytest-django==2.9.1,pytz==2017.2,six==1.10.0
py27 runtests: PYTHONHASHSEED='1643451349'
py27 runtests: commands[0] | py.test
======================================================================= test session starts ========================================================================
platform linux2 -- Python 2.7.12, pytest-2.9.1, py-1.4.34, pluggy-0.3.1
django settings: django_mailbox.tests.settings (from ini file)
rootdir: /home/di-erz/projects/opensource/django-mailbox, inifile: setup.cfg
plugins: django-2.9.1
collected 1 items / 5 errors
test_requirements.txt s
===================================================================== short test summary info ======================================================================
SKIP [1] /home/di-erz/projects/opensource/django-mailbox/.tox/py27/local/lib/python2.7/site-packages/_pytest/doctest.py:179: all tests skipped by +SKIP option
============================================================================== ERRORS ==============================================================================
__________________________________________________ ERROR collecting django_mailbox/tests/test_integration_imap.py __________________________________________________
import file mismatch:
imported module 'django_mailbox.tests.test_integration_imap' has this __file__ attribute:
/home/di-erz/projects/opensource/django-mailbox/.tox/py27/local/lib/python2.7/site-packages/django_mailbox/tests/test_integration_imap.py
which is not the same as the test file we want to collect:
/home/di-erz/projects/opensource/django-mailbox/django_mailbox/tests/test_integration_imap.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________ ERROR collecting django_mailbox/tests/test_mailbox.py _______________________________________________________
import file mismatch:
imported module 'django_mailbox.tests.test_mailbox' has this __file__ attribute:
/home/di-erz/projects/opensource/django-mailbox/.tox/py27/local/lib/python2.7/site-packages/django_mailbox/tests/test_mailbox.py
which is not the same as the test file we want to collect:
/home/di-erz/projects/opensource/django-mailbox/django_mailbox/tests/test_mailbox.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_________________________________________________ ERROR collecting django_mailbox/tests/test_message_flattening.py _________________________________________________
import file mismatch:
imported module 'django_mailbox.tests.test_message_flattening' has this __file__ attribute:
/home/di-erz/projects/opensource/django-mailbox/.tox/py27/local/lib/python2.7/site-packages/django_mailbox/tests/test_message_flattening.py
which is not the same as the test file we want to collect:
/home/di-erz/projects/opensource/django-mailbox/django_mailbox/tests/test_message_flattening.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
___________________________________________________ ERROR collecting django_mailbox/tests/test_process_email.py ____________________________________________________
import file mismatch:
imported module 'django_mailbox.tests.test_process_email' has this __file__ attribute:
/home/di-erz/projects/opensource/django-mailbox/.tox/py27/local/lib/python2.7/site-packages/django_mailbox/tests/test_process_email.py
which is not the same as the test file we want to collect:
/home/di-erz/projects/opensource/django-mailbox/django_mailbox/tests/test_process_email.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________ ERROR collecting django_mailbox/tests/test_transports.py _____________________________________________________
import file mismatch:
imported module 'django_mailbox.tests.test_transports' has this __file__ attribute:
/home/di-erz/projects/opensource/django-mailbox/.tox/py27/local/lib/python2.7/site-packages/django_mailbox/tests/test_transports.py
which is not the same as the test file we want to collect:
/home/di-erz/projects/opensource/django-mailbox/django_mailbox/tests/test_transports.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
================================================================ 1 skipped, 5 error in 0.25 seconds ================================================================
ERROR: InvocationError: '/home/di-erz/projects/opensource/django-mailbox/.tox/py27/bin/py.test'
py34 create: /home/di-erz/projects/opensource/django-mailbox/.tox/py34
ERROR: InterpreterNotFound: python3.4
py35 create: /home/di-erz/projects/opensource/django-mailbox/.tox/py35
py35 installdeps: django, -r/home/di-erz/projects/opensource/django-mailbox/test_requirements.txt
py35 inst: /home/di-erz/projects/opensource/django-mailbox/.tox/dist/django-mailbox-4.5.4.zip
py35 installed: Django==1.11.3,django-mailbox==4.5.4,mock==2.0.0,pbr==3.1.1,pkg-resources==0.0.0,py==1.4.34,pytest==2.9.1,pytest-django==2.9.1,pytz==2017.2,six==1.10.0
py35 runtests: PYTHONHASHSEED='1643451349'
py35 runtests: commands[0] | py.test
======================================================================= test session starts ========================================================================
platform linux -- Python 3.5.2, pytest-2.9.1, py-1.4.34, pluggy-0.3.1
django settings: django_mailbox.tests.settings (from ini file)
rootdir: /home/di-erz/projects/opensource/django-mailbox, inifile: setup.cfg
plugins: django-2.9.1
collected 1 items / 5 errors
test_requirements.txt s
===================================================================== short test summary info ======================================================================
SKIP [1] /home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/site-packages/_pytest/doctest.py:179: all tests skipped by +SKIP option
============================================================================== ERRORS ==============================================================================
__________________________________________________ ERROR collecting django_mailbox/tests/test_integration_imap.py __________________________________________________
import file mismatch:
imported module 'django_mailbox.tests.test_integration_imap' has this __file__ attribute:
/home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/site-packages/django_mailbox/tests/test_integration_imap.py
which is not the same as the test file we want to collect:
/home/di-erz/projects/opensource/django-mailbox/django_mailbox/tests/test_integration_imap.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________________________ ERROR collecting django_mailbox/tests/test_mailbox.py _______________________________________________________
import file mismatch:
imported module 'django_mailbox.tests.test_mailbox' has this __file__ attribute:
/home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/site-packages/django_mailbox/tests/test_mailbox.py
which is not the same as the test file we want to collect:
/home/di-erz/projects/opensource/django-mailbox/django_mailbox/tests/test_mailbox.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_________________________________________________ ERROR collecting django_mailbox/tests/test_message_flattening.py _________________________________________________
import file mismatch:
imported module 'django_mailbox.tests.test_message_flattening' has this __file__ attribute:
/home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/site-packages/django_mailbox/tests/test_message_flattening.py
which is not the same as the test file we want to collect:
/home/di-erz/projects/opensource/django-mailbox/django_mailbox/tests/test_message_flattening.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
___________________________________________________ ERROR collecting django_mailbox/tests/test_process_email.py ____________________________________________________
import file mismatch:
imported module 'django_mailbox.tests.test_process_email' has this __file__ attribute:
/home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/site-packages/django_mailbox/tests/test_process_email.py
which is not the same as the test file we want to collect:
/home/di-erz/projects/opensource/django-mailbox/django_mailbox/tests/test_process_email.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_____________________________________________________ ERROR collecting django_mailbox/tests/test_transports.py _____________________________________________________
import file mismatch:
imported module 'django_mailbox.tests.test_transports' has this __file__ attribute:
/home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/site-packages/django_mailbox/tests/test_transports.py
which is not the same as the test file we want to collect:
/home/di-erz/projects/opensource/django-mailbox/django_mailbox/tests/test_transports.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
================================================================ 1 skipped, 5 error in 0.28 seconds ================================================================
ERROR: InvocationError: '/home/di-erz/projects/opensource/django-mailbox/.tox/py35/bin/py.test'
flake8 create: /home/di-erz/projects/opensource/django-mailbox/.tox/flake8
flake8 installdeps: flake8
flake8 inst: /home/di-erz/projects/opensource/django-mailbox/.tox/dist/django-mailbox-4.5.4.zip
flake8 installed: django-mailbox==4.5.4,flake8==3.3.0,mccabe==0.6.1,pkg-resources==0.0.0,pycodestyle==2.3.1,pyflakes==1.5.0,six==1.10.0
flake8 runtests: PYTHONHASHSEED='1643451349'
flake8 runtests: commands[0] | flake8 django_mailbox
django_mailbox/models.py:396:16: E714 test for object identity should be 'is not'
ERROR: InvocationError: '/home/di-erz/projects/opensource/django-mailbox/.tox/flake8/bin/flake8 django_mailbox'
_____________________________________________________________________________ summary ______________________________________________________________________________
ERROR: py27: commands failed
ERROR: py34: InterpreterNotFound: python3.4
ERROR: py35: commands failed
ERROR: flake8: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment