Skip to content

Instantly share code, notes, and snippets.

@ivlevdenis
Last active July 10, 2017 09:21
Show Gist options
  • Save ivlevdenis/e8cdbe748b1cc752964dc293e279df41 to your computer and use it in GitHub Desktop.
Save ivlevdenis/e8cdbe748b1cc752964dc293e279df41 to your computer and use it in GitHub Desktop.
django-mailbox test 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='1535436567'
py27 runtests: commands[0] | python manage.py test
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/di-erz/projects/opensource/django-mailbox/.tox/py27/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
utility.execute()
File "/home/di-erz/projects/opensource/django-mailbox/.tox/py27/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 307, in execute
settings.INSTALLED_APPS
File "/home/di-erz/projects/opensource/django-mailbox/.tox/py27/local/lib/python2.7/site-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/home/di-erz/projects/opensource/django-mailbox/.tox/py27/local/lib/python2.7/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/home/di-erz/projects/opensource/django-mailbox/.tox/py27/local/lib/python2.7/site-packages/django/conf/__init__.py", line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named config.settings.local
ERROR: InvocationError: '/home/di-erz/projects/opensource/django-mailbox/.tox/py27/bin/python manage.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='1535436567'
py35 runtests: commands[0] | python manage.py test
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
utility.execute()
File "/home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/site-packages/django/core/management/__init__.py", line 307, in execute
settings.INSTALLED_APPS
File "/home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/site-packages/django/conf/__init__.py", line 56, in __getattr__
self._setup(name)
File "/home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/site-packages/django/conf/__init__.py", line 41, in _setup
self._wrapped = Settings(settings_module)
File "/home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/site-packages/django/conf/__init__.py", line 110, in __init__
mod = importlib.import_module(self.SETTINGS_MODULE)
File "/home/di-erz/projects/opensource/django-mailbox/.tox/py35/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 944, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 944, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named 'config'
ERROR: InvocationError: '/home/di-erz/projects/opensource/django-mailbox/.tox/py35/bin/python manage.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='1535436567'
flake8 runtests: commands[0] | flake8 django_mailbox
django_mailbox/models.py:412:16: E714 test for object identity should be 'is not'
django_mailbox/tests/test_process_email.py:428:9: F841 local variable 'actual_email_object' is assigned to but never used
django_mailbox/tests/test_process_email.py:465:9: F841 local variable 'actual_email_object' is assigned to but never used
django_mailbox/tests/test_process_email.py:471:77: W292 no newline at end of file
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