make test and make dmg failing

310 views
Skip to first unread message

David Y

unread,
Mar 6, 2013, 7:48:16 PM3/6/13
to simian-...@googlegroups.com
This is all new to me. My build system is running 10.8.2. Here's the error I'm hitting in both cases:

...
OK
Traceback (most recent call last):
  File "setup.py", line 83, in <module>
    google_test_dir = 'src/tests',
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 975, in run_commands
    self.run_command(cmd)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/dist.py", line 995, in run_command
    cmd_obj.run()
  File "/Users/test/Downloads/simian-2.1/VE/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/test.py", line 121, in run
    self.with_project_on_sys_path(self.run_tests)
  File "/Users/test/Downloads/simian-2.1/VE/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg/setuptools/command/test.py", line 101, in with_project_on_sys_path
    func()
  File "/Users/test/Downloads/simian-2.1/google_apputils-0.3.0-py2.6.egg/google/apputils/setup_command.py", line 157, in run_tests
    ok &= self._RunTestModule(file_path)
  File "/Users/test/Downloads/simian-2.1/google_apputils-0.3.0-py2.6.egg/google/apputils/setup_command.py", line 123, in _RunTestModule
    module = imp.load_module(module_name, *import_tuple)
  File "src/tests/simian/mac/admin/panic_test.py", line 30, in <module>
    from simian.mac.admin import panic
  File "/Users/test/Downloads/simian-2.1/src/simian/mac/admin/__init__.py", line 18, in <module>
    from google.appengine.ext.webapp import template
  File "/Users/test/Downloads/simian-2.1/src/tests/gae_server.zip/google/appengine/ext/webapp/template.py", line 61, in <module>
  File "/Users/test/Downloads/simian-2.1/src/tests/gae_server.zip/google/appengine/ext/webapp/__init__.py", line 158, in _django_setup
  File "/Users/test/Downloads/simian-2.1/Django-1.5-py2.6.egg/django/conf/__init__.py", line 52, in __getattr__
    self._setup(name)
  File "/Users/test/Downloads/simian-2.1/Django-1.5-py2.6.egg/django/conf/__init__.py", line 45, in _setup
    % (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured: Requested setting FAKE_ATTR, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
make: *** [test] Error 1

Justin McWilliams

unread,
Mar 7, 2013, 5:18:35 AM3/7/13
to simian-...@googlegroups.com
David,

I was able to reproduce this issue, and it seems related to Django1.5.
There's a one-line work around to get things functional again, by
simply requiring Django1.4 for the tests:
https://code.google.com/p/simian/source/detail?r=215

And I'll submit a more permanent fix when I can take a closer look for
fixing this for Django1.5.

Do note that this only effects tests, and has no baring on which
Django version is used for the deployed server.

- Justin
> --
> You received this message because you are subscribed to the Google Groups
> "Simian Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to simian-discus...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

David Y

unread,
Mar 7, 2013, 6:21:55 PM3/7/13
to simian-...@googlegroups.com
Works, thanks!

Adam Connor

unread,
May 6, 2013, 10:43:41 PM5/6/13
to simian-...@googlegroups.com
Hi all,
I am having the same problem
make test fails due to this Django issue (also make test fails due to lack of 'SWIG' which was easy to correct)

I have installed Django 1.4.5 but still having the same make test fail

Also I understood (probably incorrectly) from this thread that the error was not important, and tried 
make install < this line is missing from the setup guide
and got no joy- the folder /etc/simian is not created

I am really not sure what I'm doing here or what to do next, any help would be appreciated, thanks!

Adam
*following are from the log-

Testing settings_test
......................................ERROR:root:Configuration not found: name
.ERROR:root:Configuration directory not found: /Applications/Munki/simian-2.1/etc/simian/
ERROR:root:Configuration not found: name
.ERROR:root:Configuration not found: name
.ERROR:root:Configuration not found: name

Testing util_test
....CRITICAL:root:'module' object has no attribute 'BAR_REQUIRED_ISSUER'
ERROR:root:'module' object has no attribute 'BAR_REQUIRED_ISSUER'
Traceback (most recent call last):
  File "/Applications/Munki/simian-2.1/src/simian/auth/util.py", line 129, in GetCaParameters
    v = getattr(settings, settings_k)
AttributeError: 'module' object has no attribute 'BAR_REQUIRED_ISSUER'


  File "/Applications/Munki/simian-2.1/Django-1.5.1-py2.6.egg/django/conf/__init__.py", line 46, in _setup

Justin McWilliams

unread,
May 7, 2013, 10:35:28 AM5/7/13
to simian-...@googlegroups.com
Adam,

From what I can tell, your logs don't indicate the same django problem that was reported in this thread.  Unless you're also seeing "django.core.exceptions.ImproperlyConfigured"?

The log output you pasted is simply debug logging for handled exception cases, not the test itself failing; I see the same output, yet at the end I see "ALL TESTS COMPLETED SUCCESSFULLY."

If you want to send the full "make test" output, I can have a closer look and better guide you.

- Justin

Adam Connor

unread,
May 8, 2013, 12:18:33 AM5/8/13
to simian-...@googlegroups.com
Thanks for your offer of help, I have attached the log as a textedit doc, please let me know if you need more info. Machine is a Mac mini running 10.8.3

cheers

Adam
simian make test log 8.5.13 v1

Justin McWilliams

unread,
May 8, 2013, 8:17:15 AM5/8/13
to simian-...@googlegroups.com
So you _are_ getting the same Django error, but it's clearly using 1.5:

  File "/Applications/Munki/simian-2.1/Django-1.5.1-py2.6.egg/django/conf/__init__.py", line 46, in _setup
    % (desc, ENVIRONMENT_VARIABLE))
django.core.exceptions.ImproperlyConfigured


I'm guessing you downloaded the Simian tarball, which we haven't updated yet.  You can either checkout the source from SVN, or try to manually apply this change: https://code.google.com/p/simian/source/detail?r=215

Let us know if that helps,

- Justin


--
Reply all
Reply to author
Forward
0 new messages