Hi, I'm trying to understand this error during the build (my debug statements 
in bold):


The "True" output is printing 
'staticbundles.py' in os.listdir( sys.path[ 1 ] )
, so the file is clearly there. You can also see it in the last line.


DEBUG: running build_media*DEBUG: build-media.py's default sys.path: 
['/builddir/build/BUILD/ReviewBoard-3.0.14/contrib/internal', 
'/usr/lib64/python27.zip', '/usr/lib64/python2.7', 
'/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', 
'/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', 
'/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages']
DEBUG: build-media.py's modified sys.path: 
['/builddir/build/BUILD/ReviewBoard-3.0.14/', 
'/builddir/build/BUILD/ReviewBoard-3.0.14/reviewboard/', 
'/builddir/build/BUILD/ReviewBoard-3.0.14/contrib/internal', 
'/usr/lib64/python27.zip', '/usr/lib64/python2.7', 
'/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', 
'/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', 
'/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages']
DEBUG: True
*DEBUG: Traceback (most recent call last):
DEBUG:   File "contrib/internal/build-media.py", line 35, in <module>
DEBUG:     ret = call_command('collectstatic', interactive=False, verbosity=2)
DEBUG:   File 
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
137, in call_command
DEBUG:     app_name = get_commands()[name]
DEBUG:   File 
"/usr/lib/python2.7/site-packages/django/core/management/__init__.py", line 
107, in get_commands
DEBUG:     apps = settings.INSTALLED_APPS
DEBUG:   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 
54, in __getattr__
DEBUG:     self._setup(name)
DEBUG:   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 
49, in _setup
DEBUG:     self._wrapped = Settings(settings_module)
DEBUG:   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 
132, in __init__
DEBUG:     % (self.SETTINGS_MODULE, e)
DEBUG: ImportError: Could not import settings 'reviewboard.settings' (Is it on 
sys.path? Is there an import error in the settings file?): No module named 
staticbundles
*DEBUG: reviewboard path: /builddir/build/BUILD/ReviewBoard-3.0.14/reviewboard, 
contents: ['extensions', '__init__.py', 'ssh', 'changedescs', 'templates', 
'attachments', 'manage.py', 'dependencies.py', 'dependencies.pyc', 
'rb_platform.py', 'htdocs', 'testing', 'features', 'registries', 'avatars', 
'site', 'staticbundles.py', 'nose.cfg', 'static', 'cmdline', 'search', 
'deprecation.py', 'scmtools', 'notifications', 'settings.py', 'admin', 
'datagrids', 'diffviewer', 'urls.py', 'test.py', 'hostingsvcs', 'reviews', 
'signals.py', 'perforce_mock.py', 'accounts', '__init__.pyc', 'oauth', 
'tests.py', 'locale', 'integrations', 'webapi']*



It's failing at this line: 
ret = call_command('collectstatic', interactive=False, verbosity=2)
, which is a django command. Since sys.path was modified to include these paths 
(see bold lines at top) before call_command was called, I'm curious as to why 
it's still seeing the import error?


I'm currently stuck on this for a while, would be happy to get some tips.


Thanks!

Tony

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to