ImportError: No module named defaults with python27 SCL
Hi everyone
I am new user to graphite and i don't know python.
My goal is to build CentOS rpms for graphite family. I also want to use python27 from RedHat(and now CentOS) Software collection. Using python from software collection is mandatory in my case.
Briefly: i am running graphite-web development server and once it got a request, it reports this message: ImportError: No module named defaults
The long story follows.
BACKGROUND
Software collections (SCL) is the way to have as many concurent versions of software as i want in CentOS . In my case i have standard python2.6 which is heavily used by centos packaging system and is hard to replace in production. With SCL i can use python33 or python27 for any single program i want. For example, when i build graphite-web, i am running command
scl enable python27 'python check-dependenc
STORY
I built some rpms for python27 libraries which are required by carbon and graphite-web
I have python27-
I was able to run carbon under python27 and it seems to work fine and accept data.
Then i faced with problems running graphite-web via uwsgi. Going deeper and deeper i aned up with a clean Centos 6.5 chrooted environment where i install my packages and building graphite-web from source.
I am using latest version available, 0.9.12. scl enable python27 'python check-dependenc
Then i install graphite-web with
scl enable python27 'python setup.py install'
Here is my changes to config, i only set SECRET_KEY:
diff -u local_settings.
--- local_settings.
+++ local_settings.py 2014-01-09 13:11:39.956498364 +0400
@@ -10,7 +10,7 @@
# install. This key is used for salting of hashes used in auth tokens,
# CRSF middleware, cookie storage, etc. This should be set identically among
# instances if used behind a load balancer.
-#SECRET_KEY = 'UNSAFE_DEFAULT'
+SECRET_KEY = '3ufosjdfeu89r4
# In Django 1.5+ set this to the list of hosts your graphite instances is
# accessible as. See:
Next, i am running devel server with
scl enable python27 '/opt/graphite/
And here is the output after one request sent
Running Graphite from /opt/graphite under django development server
/opt/rh/
Validating models...
0 errors found
January 09, 2014 - 03:12:01
Django version 1.6.1, using settings 'graphite.settings'
Starting development server at http://
Quit the server with CONTROL-C.
Traceback (most recent call last):
File "/opt/rh/
self.result = application(
File "/opt/rh/
response = self.get_
File "/opt/rh/
response = self.handle_
File "/opt/rh/
if resolver.
File "/opt/rh/
self.
File "/opt/rh/
__import_
File "/opt/graphite/
from django.
ImportError: No module named defaults
[09/Jan/2014 03:12:04] "GET / HTTP/1.0" 500 59
Traceback (most recent call last):
File "/opt/rh/
self.result = application(
File "/opt/rh/
response = self.get_
File "/opt/rh/
response = self.handle_
File "/opt/rh/
if resolver.
File "/opt/rh/
self.
File "/opt/rh/
__import_
File "/opt/graphite/
from django.
ImportError: No module named defaults
And now i have no idea where to look information on how to handle this problem.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Maxim
- Solved:
- Last query:
- Last reply: